mcp2542 2.0.0.0
|
This file contains API for MCP2542 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 | mcp2542_t |
Click ctx object definition. More... | |
struct | mcp2542_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | MCP2542_MAP_MIKROBUS(cfg, mikrobus) |
#define | MCP2542_DRV_RX_BUFFER_SIZE 500 |
#define | MCP2542_DRV_TX_BUFFER_SIZE 500 |
#define | MCP2542_RETVAL uint8_t |
#define | MCP2542_OK 0x00 |
#define | MCP2542_INIT_ERROR 0xFF |
#define | MCP2542_STANDBY_MODE_ON 1 |
#define | MCP2542_STANDBY_MODE_OFF 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. | |
This file contains API for MCP2542 Click driver.