ambient11 2.0.0.0
|
Functions | |
void | ambient11_cfg_setup (ambient11_cfg_t *cfg) |
Config Object Initialization function. | |
AMBIENT11_RETVAL | ambient11_init (ambient11_t *ctx, ambient11_cfg_t *cfg) |
Initialization function. | |
void | ambient11_default_cfg (ambient11_t *ctx) |
Click Default Configuration function. | |
void | ambient11_generic_write (ambient11_t *ctx, uint8_t wr_cmd, uint16_t wr_data) |
Generic write function. | |
uint16_t | ambient11_generic_read (ambient11_t *ctx, uint8_t reg_addr) |
Generic read function. | |
float | ambient11_calc_illumination (ambient11_t *ctx, float typical_res) |
Calculate Illumination function. | |
uint8_t | ambient11_check_int (ambient11_t *ctx) |
Check interrupt function. | |
float ambient11_calc_illumination | ( | ambient11_t * | ctx, |
float | typical_res ) |
Calculate Illumination function.
[in] | typical_res | float value that defines resolution |
@description Function is used to calculate ambiental illumination.
void ambient11_cfg_setup | ( | ambient11_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t ambient11_check_int | ( | ambient11_t * | ctx | ) |
Check interrupt function.
@description Function checks interrupt occurence.
void ambient11_default_cfg | ( | ambient11_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Ambient11 click.
uint16_t ambient11_generic_read | ( | ambient11_t * | ctx, |
uint8_t | reg_addr ) |
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 ambient11_generic_write | ( | ambient11_t * | ctx, |
uint8_t | wr_cmd, | ||
uint16_t | wr_data ) |
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.
AMBIENT11_RETVAL ambient11_init | ( | ambient11_t * | ctx, |
ambient11_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.