canfd2 2.0.0.0
|
This file contains API for CAN FD 2 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_uart.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | canfd2_t |
Click ctx object definition. More... | |
struct | canfd2_cfg_t |
Click configuration structure definition. More... | |
Typedefs | |
typedef uint8_t | canfd2_error_t |
Error type. | |
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. | |
This file contains API for CAN FD 2 Click driver.