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. | |
void canisolator_cfg_setup | ( | canisolator_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void canisolator_generic_multi_read | ( | canisolator_t * | ctx, |
char * | data_buf, | ||
uint8_t | len ) |
Generic multi read function.
ctx | Click object. |
data_buf | Output data buffer. |
len | Number of the bytes in data buffer. |
@description This function reads data.
void canisolator_generic_multi_write | ( | canisolator_t * | ctx, |
char * | data_buf, | ||
uint8_t | len ) |
Generic multi write function.
ctx | Click object. |
data_buf | Input data buffer |
len | Number of the bytes in the data buffer |
@description This function writes data.
char canisolator_generic_single_read | ( | canisolator_t * | ctx | ) |
Generic single read function.
ctx | Click object. |
@description This function read one byte data.
void canisolator_generic_single_write | ( | canisolator_t * | ctx, |
char | tx_data ) |
Generic single write function.
ctx | Click object. |
tx_data | Input data |
@description This function write one byte data.
CANISOLATOR_RETVAL canisolator_init | ( | canisolator_t * | ctx, |
canisolator_cfg_t * | cfg ) |
Initialization function.
canisolator | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.