Download L1 SENSOR USER MANUAL
Transcript
L1 User Manual Syntax: LMI Technologies Inc. Also note that if you wish to commmunicate with the modified sensor after it is rebooted, you must call lxs_SetSerialBusAddress to update the serial bus address used by the LxSerial library. int LMIAPI lxs_WriteSerialBusAddress(LxSerialHandle channel, int newAddress); lxs_GetLastError Purpose: Input: Return: Comment: Reports information regarding the last recorded error. LxSerialHandle channel //valid handle to a serial //channel object, or 0 char description[LXS_MAX_DESCRIPTION] //returns error description char debugInfo[LXS_MAX_DESCRIPTION] //returns additional information An error code. If a valid handle is passed for the channel argument, the error data will correspond to the last error recorded for that channel. If 0 is passed for the channel argument, the error data will correspond to the last recored error not associated with a specific channel. The latter type of error can occur in calls to lxs_CreateSerialChannel or for other calls in which a valid channel handle is not supplied. The string returned by the description argument will be a user-friendly description of the error that occurred. The string returned by the debugInfo argument may contain additional information useful for debugging the error and may refer to aspects of this library's implementation. 0 may be passed for either or both of these arguments if the information is not needed. Syntax: The error codes listed at the top of this file represent a subset of the error codes that may be returned by this function. int LMIAPI lxs_GetLastError(LxSerialHandle channel, char description[LXS_MAX_DESCRIPTION], char debugInfo[LXS_MAX_DESCRIPTION]); Page 71 of 71