canfd5 2.0.0.0
|
Functions | |
void | canfd5_cfg_setup (canfd5_cfg_t *cfg) |
Config Object Initialization function. | |
CANFD5_RETVAL | canfd5_init (canfd5_t *ctx, canfd5_cfg_t *cfg) |
Initialization function. | |
void | canfd5_generic_write (canfd5_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int32_t | canfd5_generic_read (canfd5_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
void | canfd5_set_slp_pin_state (canfd5_t *ctx, uint8_t slp_state) |
Set SLP pin state function. | |
void | canfd5_set_wak_pin_state (canfd5_t *ctx, uint8_t wak_state) |
Set WAK pin state function. | |
uint8_t | canfd5_get_cts_pin_state (canfd5_t *ctx) |
Set WAK pin state function. | |
void | canfd5_set_normal_operating_mode (canfd5_t *ctx) |
Set normal operating mode function. | |
void | canfd5_set_standby_operating_mode (canfd5_t *ctx) |
Set stand-by operating mode function. | |
void | canfd5_set_sleep_operating_mode (canfd5_t *ctx) |
Set sleep operating mode function. | |
void | canfd5_set_operating_mode (canfd5_t *ctx, uint8_t op_mode) |
Set operating mode function. | |
void canfd5_cfg_setup | ( | canfd5_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
int32_t canfd5_generic_read | ( | canfd5_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len ) |
Generic read function.
ctx | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
void canfd5_generic_write | ( | canfd5_t * | ctx, |
char * | data_buf, | ||
uint16_t | len ) |
Generic write function.
canfd5 | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
uint8_t canfd5_get_cts_pin_state | ( | canfd5_t * | ctx | ) |
Set WAK pin state function.
ctx | Click object. |
@description This function get state of the CTS ( INT ) pin of UJA1162A Self-supplied high-speed CAN transceiver on CAN FD 5 click board.
CANFD5_RETVAL canfd5_init | ( | canfd5_t * | ctx, |
canfd5_cfg_t * | cfg ) |
Initialization function.
canfd5 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void canfd5_set_normal_operating_mode | ( | canfd5_t * | ctx | ) |
Set normal operating mode function.
ctx | Click object. |
@description This function set normal operating mode of UJA1162A Self-supplied high-speed CAN transceiver on CAN FD 5 click board.
void canfd5_set_operating_mode | ( | canfd5_t * | ctx, |
uint8_t | op_mode ) |
Set operating mode function.
ctx | Click object. |
op_mode |
|
@description This function set desired operating mode of UJA1162A Self-supplied high-speed CAN transceiver on CAN FD 5 click board.
void canfd5_set_sleep_operating_mode | ( | canfd5_t * | ctx | ) |
Set sleep operating mode function.
ctx | Click object. |
@description This function set sleep operating mode of UJA1162A Self-supplied high-speed CAN transceiver on CAN FD 5 click board.
void canfd5_set_slp_pin_state | ( | canfd5_t * | ctx, |
uint8_t | slp_state ) |
Set SLP pin state function.
ctx | Click object. |
stb_state |
|
@description This function set state of the SLP ( CS ) pin of UJA1162A Self-supplied high-speed CAN transceiver on CAN FD 5 click board.
void canfd5_set_standby_operating_mode | ( | canfd5_t * | ctx | ) |
Set stand-by operating mode function.
ctx | Click object. |
@description This function set stand-by operating mode of UJA1162A Self-supplied high-speed CAN transceiver on CAN FD 5 click board.
void canfd5_set_wak_pin_state | ( | canfd5_t * | ctx, |
uint8_t | wak_state ) |
Set WAK pin state function.
ctx | Click object. |
stb_state |
|
@description This function set state of the WAK ( PWM ) pin of UJA1162A Self-supplied high-speed CAN transceiver on CAN FD 5 click board.