![]() |
IoT Drivers
v3.3.0 (S2022)
Engineering in Software Technology
|
How to initialise the driver. More...
Functions | |
tsl2591_returnCode_t | tsl2591_initialise (void(*callBack)(tsl2591_returnCode_t)) |
Initialise the driver. More... | |
tsl2591_returnCode_t | tsl2591_destroy (void) |
Destroy the TSL2591 driver. More... | |
How to initialise the driver.
tsl2591_returnCode_t tsl2591_destroy | ( | void | ) |
Destroy the TSL2591 driver.
Destroys the driver after use. The HEAP memory used for the driver will be freed again.
TSL2591_OK | The driver is destroyed. |
TSL2591_DRIVER_NOT_INITIALISED | The driver must be initialised before it can be destroyed. |
tsl2591_returnCode_t tsl2591_initialise | ( | void(*)(tsl2591_returnCode_t) | callBack | ) |
Initialise the driver.
Initialise the TSL2591 Driver.
[in] | callBack | function pointer to call back function, or NULL if no call back function is used. |
The call back function must have this signature:
The callback function will be called every time a command involving communication with the sensor is completed.