canisolator 2.0.0.0
canisolator.h File Reference

This file contains API for CAN Isolator Click driver. More...

#include "drv_digital_out.h"
#include "drv_uart.h"

Go to the source code of this file.

Data Structures

struct  canisolator_t
 Click ctx object definition. More...
 
struct  canisolator_cfg_t
 Click configuration structure definition. More...
 

Macros

#define CANISOLATOR_MAP_MIKROBUS(cfg, mikrobus)
 
#define CANISOLATOR_RETVAL   uint8_t
 
#define CANISOLATOR_OK   0x00
 
#define CANISOLATOR_INIT_ERROR   0xFF
 
#define DRV_RX_BUFFER_SIZE   500
 

Functions

void canisolator_cfg_setup (canisolator_cfg_t *cfg)
 Config Object Initialization function.
 
CANISOLATOR_RETVAL canisolator_init (canisolator_t *ctx, canisolator_cfg_t *cfg)
 Initialization function.
 
void canisolator_generic_multi_write (canisolator_t *ctx, char *data_buf, uint8_t len)
 Generic multi write function.
 
void canisolator_generic_multi_read (canisolator_t *ctx, char *data_buf, uint8_t len)
 Generic multi read function.
 
char canisolator_generic_single_read (canisolator_t *ctx)
 Generic single read function.
 
void canisolator_generic_single_write (canisolator_t *ctx, char tx_data)
 Generic single write function.
 

Detailed Description

This file contains API for CAN Isolator Click driver.