|
px-fwlib 0.10.0
Cross-platform embedded library and documentation for 8/16/32-bit microcontrollers generated with Doxygen 1.9.2
|
File(s):
Reference:
Data Structures | |
| struct | px_veml6075_data_t |
| Raw sensor data. More... | |
Macros | |
| #define | PX_VEML6075_I2C_SLA_ADR 0x10 |
| VEML6075 I2C Slave address. More... | |
Functions | |
| bool | px_veml6075_init (px_i2c_handle_t *handle) |
| Initialise driver. More... | |
| bool | px_veml6075_meas (px_veml6075_data_t *data) |
| Take UVA & UVB measurement. More... | |
| float | px_veml6075_uva (const px_veml6075_data_t *data) |
| Calculate UVA from raw sensor data. More... | |
| float | px_veml6075_uvb (const px_veml6075_data_t *data) |
| Calculate UVB from raw sensor data. More... | |
| float | px_veml6075_uvi (const px_veml6075_data_t *data) |
| Calculate UVI from raw sensor data. More... | |
| struct px_veml6075_data_t |
Raw sensor data.
Definition at line 51 of file px_veml6075.h.
| #define PX_VEML6075_I2C_SLA_ADR 0x10 |
VEML6075 I2C Slave address.
Definition at line 47 of file px_veml6075.h.
| bool px_veml6075_init | ( | px_i2c_handle_t * | handle | ) |
Initialise driver.
| handle | I2C handle of device |
| true | Device detected on I2C and ID value is correct |
| false | Device not detected on I2C bus |
Definition at line 120 of file px_veml6075.c.
| bool px_veml6075_meas | ( | px_veml6075_data_t * | data | ) |
Take UVA & UVB measurement.
| data | Pointer to structure to contain sensor data |
| true | Measurement made |
| false | Failure |
Definition at line 165 of file px_veml6075.c.
| float px_veml6075_uva | ( | const px_veml6075_data_t * | data | ) |
Calculate UVA from raw sensor data.
| data | Pointer to raw sensor data |
Definition at line 207 of file px_veml6075.c.
| float px_veml6075_uvb | ( | const px_veml6075_data_t * | data | ) |
Calculate UVB from raw sensor data.
| data | Pointer to raw sensor data |
Definition at line 218 of file px_veml6075.c.
| float px_veml6075_uvi | ( | const px_veml6075_data_t * | data | ) |
Calculate UVI from raw sensor data.
| data | Pointer to raw sensor data |
Definition at line 229 of file px_veml6075.c.