Struct isotp_link_config¶
Link configuration passed to isotp_link_init .More...
#include <isotp_link.h>
Public Attributes¶
| Type | Name |
|---|---|
| void * | app_context Context for the three callbacks above. |
| uint8_t | block_size BS requested from the sender, 0 = unlimited. |
| uint32_t | n_bs_timeout_us N_Bs, 1..2^31-1 us. |
| uint32_t | n_cr_timeout_us N_Cr, 1..2^31-1 us. |
| isotp_message_handler_t | on_message Received message; NULL discards it. |
| isotp_result_fn | on_rx_error Failed reception; may be NULL. |
| isotp_result_fn | on_tx_done End of a transmission; may be NULL. |
| bool | padding Pad every sent frame to 8 bytes. |
| uint8_t | padding_value Padding byte, used when padding is true. |
| uint32_t | st_min_us STmin requested from the sender, 0..127000 us. |
| uint32_t | tx_id CAN ID of every frame this link sends. |
| uint8_t | wft_max N_WFTmax: Wait frames accepted in a row. |
| isotp_can_write_fn | write Frame writer (required). |
| void * | write_context Context for write. |
Detailed Description¶
Start from isotp_link_config_default, then set the CAN ID, the writer and the callbacks. The link keeps a copy.
Public Attributes Documentation¶
variable app_context¶
Context for the three callbacks above.
variable block_size¶
BS requested from the sender, 0 = unlimited.
variable n_bs_timeout_us¶
N_Bs, 1..2^31-1 us.
variable n_cr_timeout_us¶
N_Cr, 1..2^31-1 us.
variable on_message¶
Received message; NULL discards it.
variable on_rx_error¶
Failed reception; may be NULL.
variable on_tx_done¶
End of a transmission; may be NULL.
variable padding¶
Pad every sent frame to 8 bytes.
variable padding_value¶
Padding byte, used when padding is true.
variable st_min_us¶
STmin requested from the sender, 0..127000 us.
variable tx_id¶
CAN ID of every frame this link sends.
variable wft_max¶
N_WFTmax: Wait frames accepted in a row.
variable write¶
Frame writer (required).
variable write_context¶
Context for write.
The documentation for this class was generated from the following file inc/isotp_link.h