ambient2 2.0.0.0
|
Functions | |
void | ambient2_cfg_setup (ambient2_cfg_t *cfg) |
Configuration Object Setup function. | |
ambient2_err_t | ambient2_init (ambient2_t *ctx, ambient2_cfg_t *cfg) |
Click Initialization function. | |
void | ambient2_default_cfg (ambient2_t *ctx) |
Click Default Configuration function. | |
void | ambient2_generic_write (ambient2_t *ctx, ambient2_reg_addr_t reg_addr, ambient2_data_t data_in) |
Generic Write function. | |
ambient2_data_t | ambient2_generic_read (ambient2_t *ctx, ambient2_reg_addr_t reg_addr) |
Generic Read function. | |
void | ambient2_get_sens_results (ambient2_t *ctx) |
Sensor Results Read function. | |
uint8_t | ambient2_get_int (ambient2_t *ctx) |
INT Pin Check function. | |
void ambient2_cfg_setup | ( | ambient2_cfg_t * | cfg | ) |
Configuration Object Setup function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to initial state.
void ambient2_default_cfg | ( | ambient2_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes a default configuration for Ambient 2 click.
ambient2_data_t ambient2_generic_read | ( | ambient2_t * | ctx, |
ambient2_reg_addr_t | reg_addr ) |
Generic Read function.
ctx | Click object. |
reg_addr | Register address. |
@description This function allows user to perform a 16-bit data reading operation from the desired register.
void ambient2_generic_write | ( | ambient2_t * | ctx, |
ambient2_reg_addr_t | reg_addr, | ||
ambient2_data_t | data_in ) |
Generic Write function.
ctx | Click object. |
reg_addr | Register address. |
data_in | Data to be written. |
@description This function allows user to perform a 16-bit data writing operation to the desired register.
uint8_t ambient2_get_int | ( | ambient2_t * | ctx | ) |
INT Pin Check function.
ctx | Click object. |
@description This function returns the state of the INT pin.
void ambient2_get_sens_results | ( | ambient2_t * | ctx | ) |
Sensor Results Read function.
ctx | Click object. |
@description This function allows user to get sensor results data which consists of the ambient light measured data [lux], ambient light range data [lux] and ambient light data in percents.
ambient2_err_t ambient2_init | ( | ambient2_t * | ctx, |
ambient2_cfg_t * | cfg ) |
Click Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.