canfd3 2.0.0.0
canfd3.h File Reference

This file contains API for CAN FD 3 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  canfd3_t
 Click ctx object definition. More...
 
struct  canfd3_cfg_t
 Click configuration structure definition. More...
 

Macros

#define CANFD3_MAP_MIKROBUS(cfg, mikrobus)
 
#define CANFD3_RETVAL   uint8_t
 
#define CANFD3_OK   0x00
 
#define CANFD3_INIT_ERROR   0xFF
 
#define CANFD3_MODE_NORMAL   0
 
#define CANFD3_MODE_STAND_BY   1
 
#define DRV_RX_BUFFER_SIZE   500
 

Typedefs

typedef uint8_t canfd3_error_t
 Error type.
 

Functions

void canfd3_cfg_setup (canfd3_cfg_t *cfg)
 Config Object Initialization function.
 
CANFD3_RETVAL canfd3_init (canfd3_t *ctx, canfd3_cfg_t *cfg)
 Initialization function.
 
void canfd3_generic_write (canfd3_t *ctx, char *data_buf, uint16_t len)
 Generic write function.
 
int32_t canfd3_generic_read (canfd3_t *ctx, char *data_buf, uint16_t max_len)
 Generic read function.
 
void canfd3_set_cs_pin (canfd3_t *ctx, uint8_t mode)
 Sets the CS pin state.
 

Detailed Description

This file contains API for CAN FD 3 Click driver.