LinxVIEW论坛-斯科道

标题: LINX状态 [打印本页]

作者: Scadao    时间: 2019-6-18 00:04
标题: LINX状态
LINX相关运行状态和硬件接口状态

Common Statuses
Common Statuses

StatusMacroDescription
0x00L_OKOk (no error)
0x01L_FUNCTION_NOT_SUPPORTEDFunction not supported on this device
0x02L_REQUEST_RESENDRequest resend previous packet
0x03L_UNKNOWN_ERRORAn unknown error has occurred
0x04L_DISCONNECTThe connection has been lost
0x05 - 0x7F
-Reserved for future common statuses
0x80 - 0xFF
-Peripheral specific statuses

I2C

StatusMacroDescription
0x80LI2C_SADDRUnable to use the specified slave address
0x81LI2C_EOFSpecified EOF value not supported
0x82LI2C_WRITE_FAILFailed to write all bytes
0x83LI2C_READ_FAILFailed to read all bytes
0x84LI2C_CLOSE_FAILFailed to close the specified I2C channel
0x85LI2C_OPEN_FAIL
Failed to open the specified I2C channel



UART

StatusMacroDescription
0x80LUART_OPEN_FAILUnable to open the specified UART channel
0x81LUART_SET_BAUD_FAILUnable to set the UART baud rate
0x82LUART_AVAILABLE_FAILUnable to get the number of bytes available
0x83LUART_READ_FAILUnable to get the number of bytes available
0x84LUART_WRITE_FAILUnable to write to the specified UART channel
0x85LUART_CLOSE_FAIL
Unable to close the specified UART channel










欢迎光临 LinxVIEW论坛-斯科道 (http://iiotview.com/) Powered by Discuz! X3.2