This section describes the enumeration types defined by the LIN Slave.
enum mtb_lin_status_t |
The status of initialization of LIN middleware.
Enumerator | |
---|---|
MTB_LIN_STATUS_SUCCESS | Operation completed successfully. |
MTB_LIN_STATUS_BAD_PARAM | One or more input parameters are invalid. |
MTB_LIN_STATUS_SIGNAL_HANDLE | The size of the signals with the same handle ID is not equal. |
MTB_LIN_STATUS_SIGNAL_FRAME_ID | The value of frame_index field in signals array is greater or equal to number of frames. |
MTB_LIN_STATUS_SIGNAL_BIT_OFFSET | The value of the bit_offset field in signals array is above 64. |
MTB_LIN_STATUS_SIGNAL_SIZE | The value of the size field in the signals array is incorrect for corresponding signal type: for MTB_LIN_SIGNAL_TYPE_SCALAR_BOOL must be 1 bit; for MTB_LIN_SIGNAL_TYPE_SCALAR_U8: must be 2 - 8 bits; for MTB_LIN_SIGNAL_TYPE_SCALAR_BOOL: must be 9 - 16 bits; for MTB_LIN_SIGNAL_TYPE_SCALAR_BOOL: must be 1 - 8 bytes. |
MTB_LIN_STATUS_SIGNAL_PLACING | The mapping of the signals into the frame is incorrect, please check the frame size or signals overlap conditions. |
MTB_LIN_STATUS_IFC_IOCTL_WAKEUP | The MTB_LIN_IOCTL_SLEEP command of the l_ifc_ioctl() fails. |
MTB_LIN_STATUS_AUTO_BAUD_RATE_SYNC_DISABLED | The auto baud rate sync is disabled. |
MTB_LIN_STATUS_IFC_IOCTL_UNSUPPORTED_COMMAND | The specified l_ifc_ioctl()'s command is not supported within current configuration. |
MTB_LIN_STATUS_INVALID_NAD | The invalid NAD was specified. |
MTB_LIN_STATUS_INVALID_PID_INDEX | The invalid PID index was specified to the MTB_LIN_IOCTL_GET_FRAME_PID command of the l_ifc_ioctl() function. |
MTB_LIN_STATUS_INVALID_MESSAGE_ID | The invalid message ID was specified. |
MTB_LIN_STATUS_TOO_LOW_FREQUENCY | The frequency of the high-frequency clock for LIN operation is too low. Returns the status of l_sys_init(). |
MTB_LIN_STATUS_BAD_TOLERANCE | A combination of frequency of the high-frequency clock and LIN baud rate does not allow achieving acceptable tolerance of the baudrate. Returns the status of l_sys_init(). |
MTB_LIN_STATUS_BAD_BAUDRATE | The specified baud rate is out of range. |
MTB_LIN_STATUS_PROTOCOL_SPECIFICATION | An incorrect combination of protocol specifications. |
Slave Node states as defined in LIN 2.2a, section 5.5.
enum mtb_stc_lin_spec_t |
Slave Node states as defined in LIN 2.2a, section 5.5.