mcp2542 2.0.0.0
|
Functions | |
void | mcp2542_cfg_setup (mcp2542_cfg_t *cfg) |
Config Object Initialization function. | |
MCP2542_RETVAL | mcp2542_init (mcp2542_t *ctx, mcp2542_cfg_t *cfg) |
Initialization function. | |
void | mcp2542_default_cfg (mcp2542_t *ctx) |
Click Default Configuration function. | |
void | mcp2542_generic_multi_write (mcp2542_t *ctx, uint8_t *data_buf, uint8_t len) |
Generic multi write function. | |
void | mcp2542_generic_multi_read (mcp2542_t *ctx, uint8_t *data_buf, uint8_t len) |
Generic multi read function. | |
uint8_t | mcp2542_generic_single_read (mcp2542_t *ctx) |
Generic single read function. | |
void | mcp2542_generic_single_write (mcp2542_t *ctx, uint8_t tx_data) |
Generic single write function. | |
void | mcp2542_set_mode (mcp2542_t *ctx, uint8_t mode) |
Set device mode. | |
void mcp2542_cfg_setup | ( | mcp2542_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void mcp2542_default_cfg | ( | mcp2542_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for USB_UART click.
void mcp2542_generic_multi_read | ( | mcp2542_t * | ctx, |
uint8_t * | 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 mcp2542_generic_multi_write | ( | mcp2542_t * | ctx, |
uint8_t * | 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.
uint8_t mcp2542_generic_single_read | ( | mcp2542_t * | ctx | ) |
Generic single read function.
ctx | Click object. |
@description This function read one byte data.
void mcp2542_generic_single_write | ( | mcp2542_t * | ctx, |
uint8_t | tx_data ) |
Generic single write function.
ctx | Click object. |
tx_data | Input data |
@description This function write one byte data.
MCP2542_RETVAL mcp2542_init | ( | mcp2542_t * | ctx, |
mcp2542_cfg_t * | cfg ) |
Initialization function.
mcp2542 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void mcp2542_set_mode | ( | mcp2542_t * | ctx, |
uint8_t | mode ) |
Set device mode.
ctx | Click object. |
mode | Mode select. |
@description This function set device mode.