Creating a project about IKS10A2 for TT_Mxx

Committer:
ThunderSoft
Date:
Fri Apr 26 09:51:19 2019 +0000
Revision:
1:28de8dff2317
Parent:
0:69ddd5bce0a0
"Update the mbed-os code to support TT_M4G9"

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ThunderSoft 0:69ddd5bce0a0 1 #ifndef COMMON_DEFINE_H
ThunderSoft 0:69ddd5bce0a0 2 #define COMMON_DEFINE_H
ThunderSoft 0:69ddd5bce0a0 3
ThunderSoft 0:69ddd5bce0a0 4
ThunderSoft 0:69ddd5bce0a0 5 #include "mbed.h"
ThunderSoft 0:69ddd5bce0a0 6
ThunderSoft 0:69ddd5bce0a0 7
ThunderSoft 0:69ddd5bce0a0 8 #define TwoWire I2C
ThunderSoft 0:69ddd5bce0a0 9 #define delay(x) wait_ms(x)
ThunderSoft 0:69ddd5bce0a0 10
ThunderSoft 0:69ddd5bce0a0 11
ThunderSoft 0:69ddd5bce0a0 12 void i2cWrite(I2C * dev_i2c,uint8_t address,uint8_t* pBuffer, uint8_t RegisterAddr, uint16_t NumByteToWrite);
ThunderSoft 0:69ddd5bce0a0 13
ThunderSoft 0:69ddd5bce0a0 14 void i2cRead(I2C * dev_i2c,uint8_t address,uint8_t* pBuffer, uint8_t RegisterAddr, uint16_t NumByteToRead);
ThunderSoft 0:69ddd5bce0a0 15
ThunderSoft 0:69ddd5bce0a0 16 void i2cWriteForVL6180X(I2C * dev_i2c,uint8_t address,uint8_t* pBuffer, uint16_t RegisterAddr, uint16_t NumByteToWrite);
ThunderSoft 0:69ddd5bce0a0 17
ThunderSoft 0:69ddd5bce0a0 18 void i2cReadForVL6180X(I2C * dev_i2c,uint8_t address,uint8_t* pBuffer, uint16_t RegisterAddr, uint16_t NumByteToRead);
ThunderSoft 0:69ddd5bce0a0 19
ThunderSoft 0:69ddd5bce0a0 20 void i2cReadForFXS_MUTIL(I2C * dev_i2c,uint8_t address,uint8_t* pBuffer, uint16_t RegisterAddr, uint16_t NumByteToRead);
ThunderSoft 0:69ddd5bce0a0 21
ThunderSoft 0:69ddd5bce0a0 22 void i2cWriteForFXS_MUTIL(I2C * dev_i2c,uint8_t address,uint8_t* pBuffer, uint16_t RegisterAddr, uint16_t NumByteToWrite);
ThunderSoft 0:69ddd5bce0a0 23
ThunderSoft 0:69ddd5bce0a0 24 #endif