Guest User

Untitled

a guest
Dec 13th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.36 KB | None | 0 0
  1. VL53L0X_Error VL53L0X_WrByte(VL53L0X_DEV Dev, uint8_t index, uint8_t data){
  2.   VL53L0X_Error Status = VL53L0X_ERROR_NONE;
  3.   int32_t status_int;
  4.     uint8_t deviceAddress;
  5.  
  6.     deviceAddress = Dev->I2cDevAddr;
  7.  
  8.     status_int = VL53L0X_write_byte(deviceAddress, index, data);
  9.  
  10.     if (status_int != 0)
  11.         Status = VL53L0X_ERROR_CONTROL_INTERFACE;
  12.  
  13.     return Status;
  14. }
Add Comment
Please, Sign In to add comment