|
ambient3 2.2.0
|
Functions | |
| void | ambient3_cfg_setup (ambient3_cfg_t *cfg) |
| Config Object Initialization function. | |
| AMBIENT3_RETVAL | ambient3_init (ambient3_t *ctx, ambient3_cfg_t *cfg) |
| Initialization function. | |
| void | ambient3_default_cfg (ambient3_t *ctx) |
| Default Config Initialization function. | |
| void | ambient3_write_byte (ambient3_t *ctx, uint8_t virtual_reg, uint8_t data_buf) |
| Write function. | |
| uint8_t | ambient3_read_byte (ambient3_t *ctx, uint8_t virtual_reg) |
| Read function. | |
| void | ambient3_hardware_reset (ambient3_t *ctx) |
| Hardware reset function. | |
| uint8_t | ambient3_get_device_temperature (ambient3_t *ctx) |
| Getting temperature function. | |
| uint16_t | ambient3_get_data_in_lux (ambient3_t *ctx) |
| This function reads data in LUX. | |
| uint16_t | ambient3_get_cct_data (ambient3_t *ctx) |
| This function reads CCT data in K. | |
| uint8_t | ambient3_get_interrupt (ambient3_t *ctx) |
| This function reads interrupt state. | |
| void ambient3_cfg_setup | ( | ambient3_cfg_t * | cfg | ) |
Config Object Initialization function.
| cfg | Click configuration structure. |
@description This function initializes Click configuration structure to init state.
| void ambient3_default_cfg | ( | ambient3_t * | ctx | ) |
Default Config Initialization function.
| ctx | Click object. |
@description This function initializes Click configuration structure to init state.
| uint16_t ambient3_get_cct_data | ( | ambient3_t * | ctx | ) |
This function reads CCT data in K.
| ctx | Click object. |
@description This function create a 16 bit integer value for sensed CCT (Kelvin).
| uint16_t ambient3_get_data_in_lux | ( | ambient3_t * | ctx | ) |
This function reads data in LUX.
| ctx | Click object. |
@description This function reads data in LUX value.
| uint8_t ambient3_get_device_temperature | ( | ambient3_t * | ctx | ) |
Getting temperature function.
| ctx | Click object. |
@description This function reads device temperature.
| uint8_t ambient3_get_interrupt | ( | ambient3_t * | ctx | ) |
This function reads interrupt state.
| ctx | Click object. |
@description This function reads interrupt state.
| void ambient3_hardware_reset | ( | ambient3_t * | ctx | ) |
Hardware reset function.
| ctx | Click object. |
@description This function sets rst_pin to high.
| AMBIENT3_RETVAL ambient3_init | ( | ambient3_t * | ctx, |
| ambient3_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 ambient3_read_byte | ( | ambient3_t * | ctx, |
| uint8_t | virtual_reg ) |
Read function.
| ctx | Click object. |
| virtual_reg | Register address. |
@description This function reads byte from the desired register.
| void ambient3_write_byte | ( | ambient3_t * | ctx, |
| uint8_t | virtual_reg, | ||
| uint8_t | data_buf ) |
Write function.
| ctx | Click object. |
| virtual_reg | Register address. |
| data_buf | Data buf to be written. |
@description This function writes one byte to the desired register.