canfd3 2.0.0.0
|
Functions | |
void | canfd3_cfg_setup (canfd3_cfg_t *cfg) |
Config Object Initialization function. | |
CANFD3_RETVAL | canfd3_init (canfd3_t *ctx, canfd3_cfg_t *cfg) |
Initialization function. | |
void | canfd3_generic_write (canfd3_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int32_t | canfd3_generic_read (canfd3_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
void | canfd3_set_cs_pin (canfd3_t *ctx, uint8_t mode) |
Sets the CS pin state. | |
void canfd3_cfg_setup | ( | canfd3_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
int32_t canfd3_generic_read | ( | canfd3_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len ) |
Generic read function.
canfd3 | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
void canfd3_generic_write | ( | canfd3_t * | ctx, |
char * | data_buf, | ||
uint16_t | len ) |
Generic write function.
canfd3 | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
CANFD3_RETVAL canfd3_init | ( | canfd3_t * | ctx, |
canfd3_cfg_t * | cfg ) |
Initialization function.
canfd3 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void canfd3_set_cs_pin | ( | canfd3_t * | ctx, |
uint8_t | mode ) |
Sets the CS pin state.
mode | mode of the pin |