dualee 2.0.0.0
|
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. | |
void dualee_cfg_setup | ( | dualee_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void dualee_generic_read | ( | dualee_t * | ctx, |
uint8_t * | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
data_buf | Output data buf |
len | Number of the bytes to be read |
@description This function reads data from the desired register.
void dualee_generic_write | ( | dualee_t * | ctx, |
uint8_t * | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic write function.
ctx | Click object. |
reg | Register address. |
data_buf | Data buf to be written. |
len | Number of the bytes in data buf. |
@description This function writes data to the desired register.
DUALEE_RETVAL dualee_init | ( | dualee_t * | ctx, |
dualee_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint8_t dualee_read | ( | dualee_t * | ctx, |
uint32_t | reg_address, | ||
uint8_t * | data_buff, | ||
uint8_t | n_bytes ) |
Generic write data function.
ctx | Click object. |
reg_address | Address from where data will be read |
data_buff | OUTPUT buffer data |
n_bytes | Number of bytes data |
@description either _DUALEE_SUCCESSFUL_RW or _DUALEE_ERROR_RW.
uint8_t dualee_write | ( | dualee_t * | ctx, |
uint32_t | reg_address, | ||
uint8_t * | data_buff, | ||
uint8_t | n_bytes ) |
Generic write data function.
ctx | Click object. |
reg_address | Address from where data will be written |
data_buff | INPUT buffer data |
n_bytes | Number of bytes data |
@description either _DUALEE_SUCCESSFUL_RW or _DUALEE_ERROR_RW.