lin
2.0.0.0
|
Functions | |
void | lin_cfg_setup (lin_cfg_t *cfg) |
Config Object Initialization function. More... | |
LIN_RETVAL | lin_init (lin_t *ctx, lin_cfg_t *cfg) |
Initialization function. More... | |
void | lin_generic_multi_write (lin_t *ctx, lin_data_t *data_buf, uart_length_t len) |
Generic multi write function. More... | |
void | lin_generic_multi_read (lin_t *ctx, lin_data_t *data_buf, uart_length_t len) |
Generic multi read function. More... | |
lin_data_t | lin_generic_single_read (lin_t *ctx) |
Generic single read function. More... | |
void | lin_generic_single_write (lin_t *ctx, lin_data_t tx_data) |
Generic single write function. More... | |
uint8_t | lin_enable_pin_set (lin_t *ctx, uint8_t state) |
Sets state of pin. More... | |
uint8_t | lin_inhibit_pin_set (lin_t *ctx, uint8_t state) |
Sets state of pin. More... | |
uint8_t | lin_wake_pin_set (lin_t *ctx, uint8_t state) |
Sets state of pin. More... | |
void lin_cfg_setup | ( | lin_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t lin_enable_pin_set | ( | lin_t * | ctx, |
uint8_t | state | ||
) |
Sets state of pin.
ctx | Click object. |
state | Can be LIN_PIN_STATE_LOW or LIN_PIN_STATE_HIGH |
@description This function sets state of the pin to high or low depending on state value and returns info.
void lin_generic_multi_read | ( | lin_t * | ctx, |
lin_data_t * | data_buf, | ||
uart_length_t | len | ||
) |
Generic multi read function.
ctx | Click object. |
data_buf | Output data buffer. |
len | Number of the bytes in data buffer. |
@description This function reads data.
void lin_generic_multi_write | ( | lin_t * | ctx, |
lin_data_t * | data_buf, | ||
uart_length_t | len | ||
) |
Generic multi write function.
ctx | Click object. |
data_buf | Input data buffer |
len | Number of the bytes in the data buffer |
@description This function writes data.
lin_data_t lin_generic_single_read | ( | lin_t * | ctx | ) |
Generic single read function.
ctx | Click object. |
@description This function read one byte data.
void lin_generic_single_write | ( | lin_t * | ctx, |
lin_data_t | tx_data | ||
) |
Generic single write function.
ctx | Click object. |
tx_data | Input data |
@description This function write one byte data.
uint8_t lin_inhibit_pin_set | ( | lin_t * | ctx, |
uint8_t | state | ||
) |
Sets state of pin.
ctx | Click object. |
state | Can be LIN_PIN_STATE_LOW or LIN_PIN_STATE_HIGH |
@description This function sets state of the pin to high or low depending on state value and returns info.
LIN_RETVAL lin_init | ( | lin_t * | ctx, |
lin_cfg_t * | cfg | ||
) |
Initialization function.
lin | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint8_t lin_wake_pin_set | ( | lin_t * | ctx, |
uint8_t | state | ||
) |
Sets state of pin.
ctx | Click object. |
state | Can be LIN_PIN_STATE_LOW or LIN_PIN_STATE_HIGH |
@description This function sets state of the pin to high or low depending on state value and returns info.