Vishay UV Sensor I2C library
VEML6075 Class Reference
UVA and UVB Light Sensor with I2C Interface I2C 7bit address: 0x10. More...
#include <VEML6075.h>
Public Member Functions | |
VEML6075 (PinName sda, PinName scl, int addr) | |
constructor | |
float | getUVA (void) |
get UVA | |
float | getUVA_CIE (void) |
get UVA_CIE | |
float | getUVB (void) |
get UVB | |
float | getUVB_CIE (void) |
get UVB_CIE | |
void | getUVConf (uint8_t *uvconf) |
get UVConf | |
void | setUVConf (uint8_t uvconf) |
set UVConf | |
void | getUVAData (uint16_t *uvadata) |
get raw UVA data | |
void | getUVBData (uint16_t *uvbdata) |
get raw UVB data | |
void | getUVDData (uint16_t *uvddata) |
get raw UVD data | |
void | getUVCOMP1Data (uint16_t *uvcomp1data) |
get UVCOMP1 data | |
void | getUVCOMP2Data (uint16_t *uvcomp2data) |
get UVCOMP2 data | |
float | UVI (void) |
get UVI UV Index | |
void | getID (uint16_t *id) |
get device ID |
Detailed Description
UVA and UVB Light Sensor with I2C Interface I2C 7bit address: 0x10.
Definition at line 17 of file VEML6075.h.
Constructor & Destructor Documentation
VEML6075 | ( | PinName | sda, |
PinName | scl, | ||
int | addr | ||
) |
constructor
- Parameters:
-
sda SDA pin scl SCL pin addr address of the I2C peripheral
Definition at line 36 of file VEML6075.cpp.
Member Function Documentation
void getID | ( | uint16_t * | id ) |
get device ID
- Parameters:
-
uint16_t *id device ID
- Returns:
- none
Definition at line 178 of file VEML6075.cpp.
float getUVA | ( | void | ) |
float getUVA_CIE | ( | void | ) |
get UVA_CIE
- Parameters:
-
none
- Returns:
- float UVA_CIE data
Definition at line 137 of file VEML6075.cpp.
void getUVAData | ( | uint16_t * | uvadata ) |
get raw UVA data
- Parameters:
-
uint16_t *uvadata
- Returns:
- none
Definition at line 86 of file VEML6075.cpp.
float getUVB | ( | void | ) |
float getUVB_CIE | ( | void | ) |
get UVB_CIE
- Parameters:
-
none
- Returns:
- float UVB_CIE data
Definition at line 155 of file VEML6075.cpp.
void getUVBData | ( | uint16_t * | uvbdata ) |
get raw UVB data
- Parameters:
-
uint16_t *rvbdata
- Returns:
- none
Definition at line 93 of file VEML6075.cpp.
void getUVCOMP1Data | ( | uint16_t * | uvcomp1data ) |
get UVCOMP1 data
- Parameters:
-
*uint16_t *uvcomp1data
- Returns:
- none
Definition at line 164 of file VEML6075.cpp.
void getUVCOMP2Data | ( | uint16_t * | uvcomp2data ) |
get UVCOMP2 data
- Parameters:
-
*uint16_t *uvcomp2data
- Returns:
- none
Definition at line 171 of file VEML6075.cpp.
void getUVConf | ( | uint8_t * | uvconf ) |
void getUVDData | ( | uint16_t * | uvddata ) |
get raw UVD data
- Parameters:
-
uint16_t *uvddata
- Returns:
- none
- Note:
- UVD was defined in the sample device datasheet
- but in the released device datasheet, it's gone
- so if you are using production version device
- make this function just return 0 to possible side effect.
Definition at line 100 of file VEML6075.cpp.
void setUVConf | ( | uint8_t | uvconf ) |
float UVI | ( | void | ) |
Generated on Wed Jul 13 2022 10:44:13 by 1.7.2