VL53L1 Init Functions. More...
Functions | |
VL53L1_Error | VL53L1_DataInit (VL53L1_DEV Dev) |
One time device initialization. More... | |
VL53L1_Error | VL53L1_SetDeviceAddress (VL53L1_DEV Dev, uint8_t DeviceAddress) |
Set new device address. More... | |
VL53L1_Error | VL53L1_StaticInit (VL53L1_DEV Dev) |
Do basic device init (and eventually patch loading) This function will change the VL53L1_State from VL53L1_STATE_WAIT_STATICINIT to VL53L1_STATE_IDLE. In this stage all default setting will be applied. More... | |
VL53L1_Error | VL53L1_WaitDeviceBooted (VL53L1_DEV Dev) |
Wait for device booted after chip enable (hardware standby) This function can be run only when VL53L1_State is VL53L1_STATE_POWERDOWN. More... | |
VL53L1 Init Functions.
VL53L1_Error VL53L1_DataInit | ( | VL53L1_DEV | Dev | ) |
One time device initialization.
To be called once and only once after device is brought out of reset (Chip enable) and booted see VL53L1_WaitDeviceBooted()
Dev | Device Handle |
Definition at line 758 of file vl53l1_api.c.
VL53L1_Error VL53L1_SetDeviceAddress | ( | VL53L1_DEV | Dev, |
uint8_t | DeviceAddress | ||
) |
Set new device address.
After completion the device will answer to the new address programmed. This function should be called when several devices are used in parallel before start programming the sensor. When a single device us used, there is no need to call this function.
When it is requested for multi devices system this function MUST be called prior to VL53L1_DataInit()
Dev | Device Handle |
DeviceAddress | The new Device address |
Definition at line 745 of file vl53l1_api.c.
VL53L1_Error VL53L1_StaticInit | ( | VL53L1_DEV | Dev | ) |
Do basic device init (and eventually patch loading) This function will change the VL53L1_State from VL53L1_STATE_WAIT_STATICINIT to VL53L1_STATE_IDLE. In this stage all default setting will be applied.
Dev | Device Handle |
Definition at line 811 of file vl53l1_api.c.
VL53L1_Error VL53L1_WaitDeviceBooted | ( | VL53L1_DEV | Dev | ) |
Wait for device booted after chip enable (hardware standby) This function can be run only when VL53L1_State is VL53L1_STATE_POWERDOWN.
Dev | Device Handle |
Definition at line 840 of file vl53l1_api.c.