

VL53L0X API Specification
1.0.2.4823vl53l0x_i2c_platform.h
Go to the documentation of this file.
int32_t VL53L0X_read_multi(uint8_t address, uint8_t index, uint8_t *pdata, int32_t count)
Reads the requested number of bytes from the device.
int32_t VL53L0X_write_word(uint8_t address, uint8_t index, uint16_t data)
Writes a single word (16-bit unsigned) to the device.
int32_t VL53L0X_get_timer_frequency(int32_t *ptimer_freq_hz)
Get the frequency of the timer used for ranging results time stamps.
int32_t VL53L0X_write_multi(uint8_t address, uint8_t index, uint8_t *pdata, int32_t count)
Writes the supplied byte buffer to the device.
int32_t VL53L0X_read_byte(uint8_t address, uint8_t index, uint8_t *pdata)
Reads a single byte from the device.
int32_t VL53L0X_read_word(uint8_t address, uint8_t index, uint16_t *pdata)
Reads a single word (16-bit unsigned) from the device.
int32_t VL53L0X_read_dword(uint8_t address, uint8_t index, uint32_t *pdata)
Reads a single dword (32-bit unsigned) from the device.
int32_t VL53L0X_comms_initialise(uint8_t comms_type, uint16_t comms_speed_khz)
Initialise platform comms.
int32_t VL53L0X_get_timer_value(int32_t *ptimer_count)
Get the timer value in units of timer_freq_hz (see VL53L0X_get_timestamp_frequency()) ...
int32_t VL53L0X_write_byte(uint8_t address, uint8_t index, uint8_t data)
Writes a single byte to the device.
int32_t VL53L0X_write_dword(uint8_t address, uint8_t index, uint32_t data)
Writes a single dword (32-bit unsigned) to the device.
int32_t VL53L0X_platform_wait_us(int32_t wait_us)
Implements a programmable wait in us.
Type definitions for VL53L0X API.