canfd2 2.0.0.0
|
Functions | |
void | canfd2_cfg_setup (canfd2_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | canfd2_init (canfd2_t *ctx, canfd2_cfg_t *cfg) |
Initialization function. | |
void | canfd2_generic_write (canfd2_t *ctx, uint8_t *data_buf, uint16_t len) |
Generic write function. | |
int32_t | canfd2_generic_read (canfd2_t *ctx, uint8_t *data_buf, uint16_t max_len) |
Generic read function. | |
void | canfd2_generic_transfer (canfd2_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
uint8_t | canfd2_read_data (canfd2_t *ctx, uint8_t reg_addr) |
Generic read the byte of data function. | |
void | canfd2_write_data (canfd2_t *ctx, uint8_t reg_addr, uint8_t write_data) |
Generic write the byte of data function. | |
void | canfd2_set_mode (canfd2_t *ctx, uint8_t op_mode) |
Set operating mode function. | |
uint8_t | canfd2_get_mode (canfd2_t *ctx) |
Get operating mode function. | |
void canfd2_cfg_setup | ( | canfd2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
int32_t canfd2_generic_read | ( | canfd2_t * | ctx, |
uint8_t * | data_buf, | ||
uint16_t | max_len ) |
Generic read function.
canfd2 | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
void canfd2_generic_transfer | ( | canfd2_t * | ctx, |
uint8_t * | wr_buf, | ||
uint16_t | wr_len, | ||
uint8_t * | rd_buf, | ||
uint16_t | rd_len ) |
Generic transfer function.
ctx | Click object. |
wr_buf | Write data buffer |
wr_len | Number of byte in write data buffer |
rd_buf | Read data buffer |
rd_len | Number of byte in read data buffer |
@description Generic SPI transfer, for sending and receiving packages
void canfd2_generic_write | ( | canfd2_t * | ctx, |
uint8_t * | data_buf, | ||
uint16_t | len ) |
Generic write function.
canfd2 | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
uint8_t canfd2_get_mode | ( | canfd2_t * | ctx | ) |
Get operating mode function.
ctx | Click object. |
@description This function set desired soperating mode of TLE9255W HS CAN Transceiver with Partial Networking on CAN FD 2 Click board.
err_t canfd2_init | ( | canfd2_t * | ctx, |
canfd2_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint8_t canfd2_read_data | ( | canfd2_t * | ctx, |
uint8_t | reg_addr ) |
Generic read the byte of data function.
ctx | Click object. |
reg_addr | 8-bit register address. |
@description This function read the the byte of data from the target 8-bit register address of TLE9255W HS CAN Transceiver with Partial Networking on CAN FD 2 Click board.
void canfd2_set_mode | ( | canfd2_t * | ctx, |
uint8_t | op_mode ) |
Set operating mode function.
ctx | Click object. |
op_mode |
|
@description This function set desired soperating mode of TLE9255W HS CAN Transceiver with Partial Networking on CAN FD 2 Click board.
void canfd2_write_data | ( | canfd2_t * | ctx, |
uint8_t | reg_addr, | ||
uint8_t | write_data ) |
Generic write the byte of data function.
ctx | Click object. |
reg_addr | 8-bit register address. |
write_data | Byte of data to write. |
@description This function write the byte of data to the target 8-bit register address of TLE9255W HS CAN Transceiver with Partial Networking on CAN FD 2 Click board.