Skip to content

Struct isotp_link_config

ClassList > 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.

void* isotp_link_config::app_context;


variable block_size

BS requested from the sender, 0 = unlimited.

uint8_t isotp_link_config::block_size;


variable n_bs_timeout_us

N_Bs, 1..2^31-1 us.

uint32_t isotp_link_config::n_bs_timeout_us;


variable n_cr_timeout_us

N_Cr, 1..2^31-1 us.

uint32_t isotp_link_config::n_cr_timeout_us;


variable on_message

Received message; NULL discards it.

isotp_message_handler_t isotp_link_config::on_message;


variable on_rx_error

Failed reception; may be NULL.

isotp_result_fn isotp_link_config::on_rx_error;


variable on_tx_done

End of a transmission; may be NULL.

isotp_result_fn isotp_link_config::on_tx_done;


variable padding

Pad every sent frame to 8 bytes.

bool isotp_link_config::padding;


variable padding_value

Padding byte, used when padding is true.

uint8_t isotp_link_config::padding_value;


variable st_min_us

STmin requested from the sender, 0..127000 us.

uint32_t isotp_link_config::st_min_us;


variable tx_id

CAN ID of every frame this link sends.

uint32_t isotp_link_config::tx_id;


variable wft_max

N_WFTmax: Wait frames accepted in a row.

uint8_t isotp_link_config::wft_max;


variable write

Frame writer (required).

isotp_can_write_fn isotp_link_config::write;


variable write_context

Context for write.

void* isotp_link_config::write_context;



The documentation for this class was generated from the following file inc/isotp_link.h