ambient
2.0.0.0
|
Functions | |
void | ambient_cfg_setup (ambient_cfg_t *cfg) |
Config Object Initialization function. More... | |
AMBIENT_RETVAL | ambient_init (ambient_t *ctx, ambient_cfg_t *cfg) |
Initialization function. More... | |
ambient_data_t | ambient_generic_read (ambient_t *ctx) |
Generic read function. More... | |
uint16_t | ambient_calculate_light_intensity (ambient_t *ctx, uint16_t adc_data, uint16_t vcc_val, uint16_t adc_res) |
Calculate light intensity function. More... | |
uint16_t ambient_calculate_light_intensity | ( | ambient_t * | ctx, |
uint16_t | adc_data, | ||
uint16_t | vcc_val, | ||
uint16_t | adc_res | ||
) |
Calculate light intensity function.
ctx | Click object. |
adc_data | 16-bit read ADC data. |
vcc_val | 16-bit VCC value. |
adc_res | 16-bit ADC resolution. |
calculate light intensity from ADC data, VCC value and ADC resolution of the Melexis MLX75305 IC on Ambient click board.
void ambient_cfg_setup | ( | ambient_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
ambient_data_t ambient_generic_read | ( | ambient_t * | ctx | ) |
Generic read function.
ctx | Click object. |
This function read ADC data.
AMBIENT_RETVAL ambient_init | ( | ambient_t * | ctx, |
ambient_cfg_t * | cfg | ||
) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
This function initializes all necessary pins and peripherals used for this click.