|
Nol.A SDK Library 26.11.2
For IoT System Software Development
|
VL53L0 Platform Functions. More...
Topics | |
| PAL Register Access Functions | |
| PAL Register Access Functions. | |
| Basic type definition | |
| file vl53l0_types.h files hold basic type definition that may requires porting | |
Classes | |
| struct | VL53L0X_Dev_t |
| Generic PAL device type that does link between API and platform abstraction layer. More... | |
Macros | |
| #define | PALDevDataGet(Dev, field) |
| Get ST private structure VL53L0X_DevData_t data access. | |
| #define | PALDevDataSet(Dev, field, data) |
| Set ST private structure VL53L0X_DevData_t data field. | |
Typedefs | |
| typedef VL53L0X_Dev_t * | VL53L0X_DEV |
| Declare the device Handle as a pointer of the structure VL53L0X_Dev_t. | |
Functions | |
| VL53L0X_Error | VL53L0X_PollingDelay (VL53L0X_DEV Dev) |
| execute delay in all polling API call | |
VL53L0 Platform Functions.
| #define PALDevDataGet | ( | Dev, | |
| field ) |
Get ST private structure VL53L0X_DevData_t data access.
| Dev | Device Handle |
| field | ST structure field name It maybe used and as real data "ref" not just as "get" for sub-structure item like PALDevDataGet(FilterData.field)[i] or PALDevDataGet(FilterData.MeasurementIndex)++ |
| #define PALDevDataSet | ( | Dev, | |
| field, | |||
| data ) |
Set ST private structure VL53L0X_DevData_t data field.
| Dev | Device Handle |
| field | ST structure field name |
| data | Data to be set |
| VL53L0X_Error VL53L0X_PollingDelay | ( | VL53L0X_DEV | Dev | ) |
execute delay in all polling API call
A typical multi-thread or RTOs implementation is to sleep the task for some 5ms (with 100Hz max rate faster polling is not needed) if nothing specific is need you can define it as an empty/void macro
| Dev | Device Handle |