 |
IoT Drivers
v3.3.0 (S2022)
Engineering in Software Technology
|
tsl2591_returnCode_t tsl2591_initialise(void(*callBack)(tsl2591_returnCode_t))
Initialise the driver.
uint16_t fullSpectrumRaw
Definition: tsl2591.h:98
@ TSL2591_INTEGRATION_TIME_200MS
Definition: tsl2591.h:81
tsl2591_returnCode_t
TSL2591 Driver return codes.
Definition: tsl2591.h:110
@ TSL2591_OUT_OF_HEAP
Definition: tsl2591.h:119
tsl2591_gain_t tsl2591_getGain(void)
Retrieve the TSL2591 sensor's current gain setting.
uint16_t infraredRaw
Definition: tsl2591.h:99
@ TSL2591_GAIN_MAX
Definition: tsl2591.h:69
@ TSL2591_GAIN_HIGH
Definition: tsl2591.h:68
@ TSL2591_INTEGRATION_TIME_400MS
Definition: tsl2591.h:83
tsl2591_gain_t
TSL2591 Gain configuration.
Definition: tsl2591.h:65
tsl2591_returnCode_t tsl259_getVisibleRaw(uint16_t *visible)
Retrieve the latest visible light spectrum as raw data fetched from the TSL2591 sensor.
@ TSL2591_INTEGRATION_TIME_600MS
Definition: tsl2591.h:85
tsl2591_integrationTime_t
TSL2591 Integration time configuration.
Definition: tsl2591.h:79
uint8_t tsl2591_getDeviceId(void)
Retrieve the TSL2591 sensor's device ID.
tsl2591_returnCode_t tsl2591_fetchData(void)
Start fetching the TSL2591 sensor's light data.
tsl2591_returnCode_t tsl2591_disable(void)
Disable/Power down the TSL2591 sensor.
@ TSL2591_INTEGRATION_TIME_500MS
Definition: tsl2591.h:84
@ TSL2591_DRIVER_NOT_INITIALISED
Definition: tsl2591.h:118
@ TSL2591_GAIN_MED
Definition: tsl2591.h:67
tsl2591_integrationTime_t tsl2591_getIntegrationTime(void)
Retrieve the TSL2591 sensor's current integration time.
tsl2591_returnCode_t tsl2591_setGainAndIntegrationTime(tsl2591_gain_t gain, tsl2591_integrationTime_t integrationTime)
Sets the TSL2591 sensor's Gain and Integration time.
@ TSL2591_ERROR
Definition: tsl2591.h:117
tsl2591_returnCode_t tsl2591_getCombinedDataRaw(tsl2591_combinedData_t *combinedData)
Retrieve the latest combined light spectrum's as raw data fetched from the TSL2591 sensor.
@ TSL2591_BUSY
Definition: tsl2591.h:116
@ TSL2591_OVERFLOW
Definition: tsl2591.h:114
tsl2591_returnCode_t tsl2591_destroy(void)
Destroy the TSL2591 driver.
TSL2591 Light measure data struct.
Definition: tsl2591.h:97
@ TSL2591_INTEGRATION_TIME_300MS
Definition: tsl2591.h:82
@ TSL2591_UNDERFLOW
Definition: tsl2591.h:115
tsl2591_returnCode_t tsl2591_getInfraredRaw(uint16_t *infrared)
Retrieve the latest infrared light spectrum as raw data fetched from the TSL2591 sensor.
tsl2591_returnCode_t tsl2591_fetchDeviceId(void)
Start fetching the TSL2591 sensor's device ID.
uint16_t visibleRaw
Definition: tsl2591.h:100
tsl2591_returnCode_t tsl2591_getFullSpectrumRaw(uint16_t *fullSpectrum)
Retrieve the latest full light spectrum as raw data fetched from the TSL2591 sensor.
@ TSL2591_INTEGRATION_TIME_100MS
Definition: tsl2591.h:80
tsl2591_returnCode_t tsl2591_getLux(float *lux)
Retrieve the latest visible light spectrum as lux fetched from the TSL2591 sensor.
@ TSL2591_DATA_READY
Definition: tsl2591.h:112
@ TSL2591_DEV_ID_READY
Definition: tsl2591.h:113
tsl2591_returnCode_t tsl2591_enable(void)
Enable/Power up the TSL2591 sensor.
@ TSL2591_OK
Definition: tsl2591.h:111
@ TSL2591_GAIN_LOW
Definition: tsl2591.h:66