mcp2003b 2.1.0.0
|
This file contains API for MCP2003B 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 | mcp2003b_t |
MCP2003B Click context object. More... | |
struct | mcp2003b_cfg_t |
MCP2003B Click configuration object. More... | |
Macros | |
#define | MCP2003B_TX_DRV_BUFFER_SIZE 100 |
MCP2003B driver buffer size. | |
#define | MCP2003B_RX_DRV_BUFFER_SIZE 300 |
#define | MCP2003B_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | mcp2003b_return_value_t { MCP2003B_OK = 0 , MCP2003B_ERROR = -1 } |
MCP2003B Click return value data. More... | |
Functions | |
void | mcp2003b_cfg_setup (mcp2003b_cfg_t *cfg) |
MCP2003B configuration object setup function. | |
err_t | mcp2003b_init (mcp2003b_t *ctx, mcp2003b_cfg_t *cfg) |
MCP2003B initialization function. | |
err_t | mcp2003b_generic_write (mcp2003b_t *ctx, uint8_t *data_in, uint16_t len) |
MCP2003B data writing function. | |
err_t | mcp2003b_generic_read (mcp2003b_t *ctx, uint8_t *data_out, uint16_t len) |
MCP2003B data reading function. | |
void | mcp2003b_set_cs_pin (mcp2003b_t *ctx, uint8_t state) |
MCP2003B set cs pin function. | |
This file contains API for MCP2003B Click Driver.