canfd7 2.1.0.0
|
This file contains API for CAN FD 7 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_uart.h"
Go to the source code of this file.
Data Structures | |
struct | canfd7_t |
CAN FD 7 Click context object. More... | |
struct | canfd7_cfg_t |
CAN FD 7 Click configuration object. More... | |
Macros | |
#define | CANFD7_STANDBY_ON 0x01 |
CAN FD 7 control commands. | |
#define | CANFD7_STANDBY_OFF 0x00 |
#define | CANFD7_TX_DRV_BUFFER_SIZE 100 |
CAN FD 7 driver buffer size. | |
#define | CANFD7_RX_DRV_BUFFER_SIZE 300 |
#define | CANFD7_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | canfd7_return_value_t { CANFD7_OK = 0 , CANFD7_ERROR = -1 } |
CAN FD 7 Click return value data. More... | |
Functions | |
void | canfd7_cfg_setup (canfd7_cfg_t *cfg) |
CAN FD 7 configuration object setup function. | |
err_t | canfd7_init (canfd7_t *ctx, canfd7_cfg_t *cfg) |
CAN FD 7 initialization function. | |
void | canfd7_default_cfg (canfd7_t *ctx) |
CAN FD 7 default configuration function. | |
err_t | canfd7_generic_write (canfd7_t *ctx, uint8_t *data_in, uint16_t len) |
CAN FD 7 data writing function. | |
err_t | canfd7_generic_read (canfd7_t *ctx, uint8_t *data_out, uint16_t len) |
CAN FD 7 data reading function. | |
void | canfd7_set_stb_pin (canfd7_t *ctx, uint8_t pin_state) |
CAN FD 7 set STB pin function. | |
This file contains API for CAN FD 7 Click Driver.