canfd4 2.0.0.0
canfd4.h File Reference

This file contains API for CAN FD4 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  canfd4_t
 Click ctx object definition. More...
 
struct  canfd4_cfg_t
 Click configuration structure definition. More...
 

Macros

#define CANFD4_MAP_MIKROBUS(cfg, mikrobus)
 
#define CANFD4_RETVAL   uint8_t
 
#define CANFD4_OK   0x00
 
#define CANFD4_INIT_ERROR   0xFF
 
#define CANFD4_NORMAL_MODE   0
 
#define CANFD4_STANDBY_MODE   1
 
#define DRV_RX_BUFFER_SIZE   500
 

Typedefs

typedef uint8_t canfd4_error_t
 Error type.
 

Functions

void canfd4_cfg_setup (canfd4_cfg_t *cfg)
 Config Object Initialization function.
 
CANFD4_RETVAL canfd4_init (canfd4_t *ctx, canfd4_cfg_t *cfg)
 Initialization function.
 
void canfd4_generic_write (canfd4_t *ctx, char *data_buf, uint16_t len)
 Generic write function.
 
int32_t canfd4_generic_read (canfd4_t *ctx, char *data_buf, uint16_t max_len)
 Generic read function.
 
void canfd4_set_dev_mode (canfd4_t *ctx, uint8_t mode)
 Set mode function.
 

Detailed Description

This file contains API for CAN FD4 Click driver.