Documentation ¶
Index ¶
- Constants
- Variables
- func BashOutput(write string) (string, error)
- func CRC16CheckSum(data []byte) uint16
- func CRC16RFIDSum(data []byte) uint16
- func ChangeNetworInterfaces(newIP, newGate, newMak string)
- func DnsSet(dns1, dns2 string)
- func GetBetweenStr(str, start, end string) string
- func GetCurrentTime() int64
- func GetEthIp(lan string) string
- func GetEthIpByte(lan string) []byte
- func GetEthMac(lan string) (string, error)
- func GetEthMacByte(lan string) []byte
- func GetEthStatus(lan string) (bool, error)
- func GetExpendTime(startTime time.Time) int64
- func GetInterfaces(lan string) (net.Interface, error)
- func GetInterval(lasttime int64) int64
- func GetIpFormXaddr(xaddr string) string
- func GetPlatform() string
- func GetPlatformValue() string
- func GetSetSystem(url string) bool
- func GetTimeInterval(startTime time.Time, endTime time.Time) int64
- func GetWorkPath() string
- func GetuIntString(digit uint) string
- func RebootSystem()
- func SetSystemTime(dateTime string)
- func SetTimeToHardSystem()
Constants ¶
View Source
const ( Windows = "windows" Linux_a7 = "linux_a7" Linux_nano = "linux_nano" Linux_nano46 = "linux_nano_46" Linux_rk3568 = "linux_rk3568" //4.19.193 // Linux_nx = "linux_nx" Linux_3352 = "linux_3352" //3.2.0 Linux_desk = "Linux_desk" Linux_jetson_5 = "linux_jetson_5" )
Variables ¶
View Source
var CRC16Table = []uint16{}/* 256 elements not displayed */
View Source
var CRC16TableRfid = [256]uint16{}/* 256 elements not displayed */
Functions ¶
func BashOutput ¶
************************************************************************* * 函数名称: BashOutput * 功能描述: bash脚本输出得到信息 * 输入参数: write 要输出脚本的写入值 * 返 回 值: string 返回值 * 其它说明: 无 *************************************************************************
func CRC16CheckSum ¶
func CRC16RFIDSum ¶
func ChangeNetworInterfaces ¶
func ChangeNetworInterfaces(newIP, newGate, newMak string)
修改/etc/network/interfaces文件
func GetBetweenStr ¶
func GetIpFormXaddr ¶
func GetPlatform ¶
func GetPlatform() string
************************************************************************* * 函数名称: GetPlatform * 功能描述: 获取当前所在的平台 * 输入参数: 无 * 返 回 值: string 所在平台名称 * 其它说明: 无 *************************************************************************
func GetWorkPath ¶
func GetWorkPath() string
func GetuIntString ¶
func RebootSystem ¶
func RebootSystem()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.