canisolator 2.0.0.0

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

Function Documentation

◆ canisolator_cfg_setup()

void canisolator_cfg_setup ( canisolator_cfg_t * cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

@description This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ canisolator_generic_multi_read()

void canisolator_generic_multi_read ( canisolator_t * ctx,
char * data_buf,
uint8_t len )

Generic multi read function.

Parameters
ctxClick object.
data_bufOutput data buffer.
lenNumber of the bytes in data buffer.

@description This function reads data.

◆ canisolator_generic_multi_write()

void canisolator_generic_multi_write ( canisolator_t * ctx,
char * data_buf,
uint8_t len )

Generic multi write function.

Parameters
ctxClick object.
data_bufInput data buffer
lenNumber of the bytes in the data buffer

@description This function writes data.

◆ canisolator_generic_single_read()

char canisolator_generic_single_read ( canisolator_t * ctx)

Generic single read function.

Parameters
ctxClick object.
Returns
one byte data

@description This function read one byte data.

◆ canisolator_generic_single_write()

void canisolator_generic_single_write ( canisolator_t * ctx,
char tx_data )

Generic single write function.

Parameters
ctxClick object.
tx_dataInput data

@description This function write one byte data.

◆ canisolator_init()

CANISOLATOR_RETVAL canisolator_init ( canisolator_t * ctx,
canisolator_cfg_t * cfg )

Initialization function.

Parameters
canisolatorClick object.
cfgClick configuration structure.

@description This function initializes all necessary pins and peripherals used for this click.