VL53L0 Platform Functions.
More...
|
struct | VL53L0X_Dev_t |
| Generic PAL device type that does link between API and platform abstraction layer. More...
|
|
VL53L0 Platform Functions.
◆ PALDevDataGet
#define PALDevDataGet |
( |
|
Dev, |
|
|
|
field |
|
) |
| (Dev->Data.field) |
Get ST private structure VL53L0X_DevData_t data access.
- Parameters
-
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)++ |
◆ PALDevDataSet
#define PALDevDataSet |
( |
|
Dev, |
|
|
|
field, |
|
|
|
data |
|
) |
| (Dev->Data.field)=(data) |
Set ST private structure VL53L0X_DevData_t data field.
- Parameters
-
Dev | Device Handle |
field | ST structure field name |
data | Data to be set |
◆ VL53L0X_PollingDelay()
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
#define VL53L0X_PollingDelay(...) (void)0
- Parameters
-
- Returns
- VL53L0X_ERROR_NONE Success
-
"Other error code" See ::VL53L0X_Error