17 #define VL53L5_I2C_TIMEOUT chTimeMS2I(100)
42 I2CDriver * i2cd = (I2CDriver *)
dev->i2cdev->reg_addr;
50 dev->buf[0] = (reg_addr & 0xFF00) >> 8;
51 dev->buf[1] = (reg_addr & 0x00FF);
54 cacheBufferFlush(
dev->buf, size+2);
70 I2CDriver * i2cd = (I2CDriver *)
dev->i2cdev->reg_addr;
77 dev->buf[0] = (reg_addr & 0xFF00) >> 8;
78 dev->buf[1] = (reg_addr & 0x00FF);
81 cacheBufferFlush(
dev->buf, 2);
83 cacheBufferInvalidate(
dev->buf, count);
99 for(i = 0; i < size; i = i + 4)
107 memcpy(&(buffer[i]), &tmp, 4);
116 chThdSleepMilliseconds(TimeMs);
static const float offset[]
static const struct usb_device_descriptor dev
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.