Advertisement
Guest User

Untitled

a guest
Dec 13th, 2016
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. VL53L0X_WrByte:
  2. 0001ee70: VL53L0X_WrByte+0 movs r3, #174 ; 0xae
  3. 146 VL53L0X_Error VL53L0X_WrByte(VL53L0X_DEV Dev, uint8_t index, uint8_t data){
  4. 0001ee72: VL53L0X_WrByte+2 push {r4, lr}
  5. 151 deviceAddress = Dev->I2cDevAddr;
  6. 0001ee74: VL53L0X_WrByte+4 lsls r3, r3, #1
  7. 153 status_int = VL53L0X_write_byte(deviceAddress, index, data);
  8. 0001ee76: VL53L0X_WrByte+6 ldrb r0, [r0, r3]
  9. 0001ee78: VL53L0X_WrByte+8 bl 0x1ed14 <VL53L0X_write_byte>
  10. 147 VL53L0X_Error Status = VL53L0X_ERROR_NONE;
  11. 0001ee7c: VL53L0X_WrByte+12 movs r3, #0
  12. 155 if (status_int != 0)
  13. 0001ee7e: VL53L0X_WrByte+14 cmp r0, #0
  14. 0001ee80: VL53L0X_WrByte+16 bne.n 0x1ee86 <VL53L0X_WrByte+22>
  15. 159 }
  16. 0001ee82: VL53L0X_WrByte+18 movs r0, r3
  17. 0001ee84: VL53L0X_WrByte+20 pop {r4, pc}
  18. 156 Status = VL53L0X_ERROR_CONTROL_INTERFACE;
  19. 0001ee86: VL53L0X_WrByte+22 subs r3, #20
  20. 0001ee88: VL53L0X_WrByte+24 b.n 0x1ee82 <VL53L0X_WrByte+18>
  21. 0001ee8a: nop ; (mov r8, r8)
  22. 166 deviceAddress = Dev->I2cDevAddr;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement