Library for TI's DRV2667
Diff: DRV2667.cpp
- Revision:
- 1:a57042b30965
- Parent:
- 0:faa5d89e9dac
- Child:
- 2:101901b3f05e
--- a/DRV2667.cpp Wed Feb 07 09:20:34 2018 +0000 +++ b/DRV2667.cpp Thu Feb 08 02:12:16 2018 +0000 @@ -23,7 +23,7 @@ _i2c->write(SLAVE_ADDR_7_BIT<<1, buff, 2); } -uint8_t DRV2667::i2cReadByte(char reg) +char DRV2667::i2cReadByte(char reg) { char result; // Temp result storage _i2c->write(SLAVE_ADDR_7_BIT<<1, ®, 1, true); @@ -46,14 +46,14 @@ { for(int i = 0; i < setNum && i < 8; i++) i2cWriteByte(0x03 + i, id[i]); - if(setNum < 7) + if(setNum < 8) i2cWriteByte(0x03 + setNum, 0); } -void DRV2667::loadFIFO(signed char data, char size) -{ - -} +//void DRV2667::loadFIFO(signed char data, char size) +//{ +// +//} void DRV2667::setWSP(char data[][4], char waveNum) { @@ -76,4 +76,9 @@ } i2cWriteByte(0xFF, 0x00); -} \ No newline at end of file +} + +//void DRV2667::setDPR(void) +//{ +// +//} \ No newline at end of file