dualee 2.0.0.0
|
This file contains API for Dual EE Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | dualee_t |
Click ctx object definition. More... | |
struct | dualee_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | DUALEE_MAP_MIKROBUS(cfg, mikrobus) |
#define | DUALEE_RETVAL uint8_t |
#define | DUALEE_OK 0x00 |
#define | DUALEE_INIT_ERROR 0xFF |
#define | DUALEE_SLAVEADDRESS_1 0x50 |
#define | DUALEE_SLAVEADDRESS_2 0x54 |
#define | DUALEE_ADDRESS_START 0x00000000 |
#define | DUALEE_ADDRESS_END 0x0007FFFE |
#define | DUALEE_PAGE_START_OF_FIRST 0x00000000 |
#define | DUALEE_PAGE_END_OF_FIRST 0x0003FFFF |
#define | DUALEE_PAGE_START_OF_SECOND 0x00040000 |
#define | DUALEE_PAGE_END_OF_SECOND 0x0007FFFE |
#define | DUALEE_MAXIMUM_DATA 251 |
#define | DUALEE_ERROR_RW 0 |
#define | DUALEE_SUCCESSFUL_RW 1 |
Functions | |
void | dualee_cfg_setup (dualee_cfg_t *cfg) |
Config Object Initialization function. | |
DUALEE_RETVAL | dualee_init (dualee_t *ctx, dualee_cfg_t *cfg) |
Initialization function. | |
void | dualee_generic_write (dualee_t *ctx, uint8_t *reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | dualee_generic_read (dualee_t *ctx, uint8_t *reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | dualee_write (dualee_t *ctx, uint32_t reg_address, uint8_t *data_buff, uint8_t n_bytes) |
Generic write data function. | |
uint8_t | dualee_read (dualee_t *ctx, uint32_t reg_address, uint8_t *data_buff, uint8_t n_bytes) |
Generic write data function. | |
This file contains API for Dual EE Click driver.