The raw API is operating on PDU level and it is typically used to gateway PDUs between CAN and LIN.
Usually, a FIFO is used to buffer PDUs in order to handle the different bus speeds.
Functions | |
void | ld_put_raw (l_ifc_handle iii, const l_u8 *const data) |
Queue the transmission of 8 bytes of data in one frame. More... | |
void | ld_get_raw (l_ifc_handle iii, l_u8 *const data) |
Copy the oldest received diagnostic frame data to the memory specified by data. More... | |
l_u8 | ld_raw_tx_status (l_ifc_handle iii) |
Get the status of the raw frame transmission function. More... | |
l_u8 | ld_raw_rx_status (l_ifc_handle iii) |
Get the status of the raw frame receive function. More... | |
void ld_get_raw | ( | l_ifc_handle | iii, |
l_u8 *const | data | ||
) |
Copy the oldest received diagnostic frame data to the memory specified by data.
[in] | iii | Interface name |
[in] | data | Buffer for the data to be transmitted |
Copy the oldest received diagnostic frame data to the memory specified by data. The data returned is received from master request frame for slave node and the slave response frame for master node.
Definition at line 168 of file lin_commontl_api.c.
void ld_put_raw | ( | l_ifc_handle | iii, |
const l_u8 *const | data | ||
) |
Queue the transmission of 8 bytes of data in one frame.
[in] | iii | Interface name |
[in] | data | Buffer for the data to be transmitted |
Queue the transmission of 8 bytes of data in one frame The data is sent in the next suitable frame.
Definition at line 134 of file lin_commontl_api.c.
l_u8 ld_raw_rx_status | ( | l_ifc_handle | iii | ) |
Get the status of the raw frame receive function.
[in] | iii | Interface name |
Get the status of the raw frame receive function: LD_NO_DATA The receive queue is empty.(For LIN2.1 and above only) LD_DATA_AVAILABLE The receive queue contains data that can be read. LD_RECEIVE_ERROR LIN protocol errors occurred during the transfer; initialize and redo the transfer.(For LIN2.1 and above only). LD_TRANSFER_ERROR: (For LIN2.0 and J2602 only) LIN protocol errors occurred during the transfer; initialize and redo the transfer.
Definition at line 200 of file lin_commontl_api.c.
l_u8 ld_raw_tx_status | ( | l_ifc_handle | iii | ) |
Get the status of the raw frame transmission function.
[in] | iii | Interface name |
Get the status of the raw frame transmission function: This function is available for < br / > LD_QUEUE_EMPTY : The transmit queue is empty. In case previous calls to < br / > ld_put_raw, all frames in the queue have been < br / > transmitted. < br / > LD_QUEUE_AVAILABLE: The transmit queue contains entries, but is not full. < br / > (For LIN2.1 and above only). LD_QUEUE_FULL : The transmit queue is full and can not accept further < br / > frames. < br / > LD_TRANSMIT_ERROR : (For LIN2.1 and above only) LIN protocol errors occurred during the transfer; initialize and redo the transfer. LD_TRANSFER_ERROR: (For LIN2.0 and J2602 only) LIN protocol errors occurred during the transfer; initialize and redo the transfer.
Definition at line 185 of file lin_commontl_api.c.