MSS
/
testI2C
Simple I2C test program. open/close/read/write supported.
Diff: dumb_i2c.h
- Revision:
- 1:e105ceaee6ac
- Parent:
- 0:1a2637f8e2dd
- Child:
- 2:218e22a54982
--- a/dumb_i2c.h Tue Feb 09 00:23:22 2016 +0000 +++ b/dumb_i2c.h Tue Apr 05 02:11:20 2016 +0000 @@ -18,12 +18,15 @@ */ ~DUMB_I2C(); + void frequency(uint32_t f) ; + uint32_t frequency(void) ; uint8_t address(void) ; void read(int addr, uint8_t *data, int len) ; void write(int addr, uint8_t *data, int len) ; private: I2C m_i2c; int m_addr; + uint32_t freq ; void readRegs(int addr, uint8_t * data, int len); void writeRegs(uint8_t * data, int len); };