Thundersoft
/
VL6180XA1_for_TT_Mxx
Creating a project about VL6180XA1 for TT_Mxx
common_define.h@3:7a97a01bad5e, 2019-04-26 (annotated)
- Committer:
- ThunderSoft
- Date:
- Fri Apr 26 09:34:53 2019 +0000
- Revision:
- 3:7a97a01bad5e
- Parent:
- 0:293917667c17
"update the mbed-os code to support TT_M4G9"
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ThunderSoft | 0:293917667c17 | 1 | #ifndef COMMON_DEFINE_H |
ThunderSoft | 0:293917667c17 | 2 | #define COMMON_DEFINE_H |
ThunderSoft | 0:293917667c17 | 3 | |
ThunderSoft | 0:293917667c17 | 4 | |
ThunderSoft | 0:293917667c17 | 5 | #include "mbed.h" |
ThunderSoft | 0:293917667c17 | 6 | |
ThunderSoft | 0:293917667c17 | 7 | |
ThunderSoft | 0:293917667c17 | 8 | #define TwoWire I2C |
ThunderSoft | 0:293917667c17 | 9 | #define delay(x) wait_ms(x) |
ThunderSoft | 0:293917667c17 | 10 | |
ThunderSoft | 0:293917667c17 | 11 | |
ThunderSoft | 0:293917667c17 | 12 | void i2cWrite(I2C * dev_i2c,uint8_t address,uint8_t* pBuffer, uint8_t RegisterAddr, uint16_t NumByteToWrite); |
ThunderSoft | 0:293917667c17 | 13 | |
ThunderSoft | 0:293917667c17 | 14 | void i2cRead(I2C * dev_i2c,uint8_t address,uint8_t* pBuffer, uint8_t RegisterAddr, uint16_t NumByteToRead); |
ThunderSoft | 0:293917667c17 | 15 | |
ThunderSoft | 0:293917667c17 | 16 | void i2cWriteForVL6180X(I2C * dev_i2c,uint8_t address,uint8_t* pBuffer, uint16_t RegisterAddr, uint16_t NumByteToWrite); |
ThunderSoft | 0:293917667c17 | 17 | |
ThunderSoft | 0:293917667c17 | 18 | void i2cReadForVL6180X(I2C * dev_i2c,uint8_t address,uint8_t* pBuffer, uint16_t RegisterAddr, uint16_t NumByteToRead); |
ThunderSoft | 0:293917667c17 | 19 | |
ThunderSoft | 0:293917667c17 | 20 | void i2cReadForFXS_MUTIL(I2C * dev_i2c,uint8_t address,uint8_t* pBuffer, uint16_t RegisterAddr, uint16_t NumByteToRead); |
ThunderSoft | 0:293917667c17 | 21 | |
ThunderSoft | 0:293917667c17 | 22 | void i2cWriteForFXS_MUTIL(I2C * dev_i2c,uint8_t address,uint8_t* pBuffer, uint16_t RegisterAddr, uint16_t NumByteToWrite); |
ThunderSoft | 0:293917667c17 | 23 | |
ThunderSoft | 0:293917667c17 | 24 | #endif |