lin 2.0.0.0
|
Functions | |
void | lin_cfg_setup (lin_cfg_t *cfg) |
Config Object Initialization function. | |
LIN_RETVAL | lin_init (lin_t *ctx, lin_cfg_t *cfg) |
Initialization function. | |
void | lin_generic_write (lin_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int32_t | lin_generic_read (lin_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
void | lin_set_enable (lin_t *ctx, uint8_t state) |
Set enable pin state. | |
void | lin_set_wake_up (lin_t *ctx, uint8_t state) |
Set wake up pin state. | |
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.
int32_t lin_generic_read | ( | lin_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len ) |
Generic read function.
lin | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
void lin_generic_write | ( | lin_t * | ctx, |
char * | data_buf, | ||
uint16_t | len ) |
Generic write function.
lin | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
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.
void lin_set_enable | ( | lin_t * | ctx, |
uint8_t | state ) |
Set enable pin state.
lin | Click object. |
state | State. |
void lin_set_wake_up | ( | lin_t * | ctx, |
uint8_t | state ) |
Set wake up pin state.
lin | Click object. |
state | State. |