ambient4 2.0.0.0
|
Functions | |
void | ambient4_cfg_setup (ambient4_cfg_t *cfg) |
Config Object Initialization function. | |
AMBIENT4_RETVAL | ambient4_init (ambient4_t *ctx, ambient4_cfg_t *cfg) |
Initialization function. | |
void | ambient4_default_cfg (ambient4_t *ctx) |
Click Default Configuration function. | |
void | ambient4_generic_write (ambient4_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | ambient4_generic_read (ambient4_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | ambient4_send_command (ambient4_t *ctx, uint8_t cmd) |
Function for send command. | |
uint16_t | ambient4_read_data (ambient4_t *ctx) |
Function for read 16bit data. | |
void | ambient4_device_reset (ambient4_t *ctx) |
Function for device reset. | |
void ambient4_cfg_setup | ( | ambient4_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void ambient4_default_cfg | ( | ambient4_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Ambient4 click.
void ambient4_device_reset | ( | ambient4_t * | ctx | ) |
Function for device reset.
ctx | Click object. |
@description This function for device reset.
void ambient4_generic_read | ( | ambient4_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 ambient4_generic_write | ( | ambient4_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.
AMBIENT4_RETVAL ambient4_init | ( | ambient4_t * | ctx, |
ambient4_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.
uint16_t ambient4_read_data | ( | ambient4_t * | ctx | ) |
Function for read 16bit data.
ctx | Click object. |
@description This function for read 16bit data.
void ambient4_send_command | ( | ambient4_t * | ctx, |
uint8_t | cmd ) |
Function for send command.
ctx | Click object. |
cmd | Command. |
@description This function for send command.