Skip to content

Commit aeb5c42

Browse files
committed
Removes unused functions
1 parent ecbb70b commit aeb5c42

File tree

2 files changed

+0
-52
lines changed

2 files changed

+0
-52
lines changed

src/SparkFun_Qwiic_KX13X.cpp

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -358,52 +358,6 @@ bool QwiicKX13xCore::runCommandTest()
358358
return false;
359359
}
360360

361-
362-
363-
//Wait a certain time for incoming I2C bytes before giving up
364-
//Returns false if failed
365-
bool QwiicKX13xCore::waitForI2C()
366-
{
367-
for(size_t counter = 0; counter < 100; counter++) { //Don't got more than 255
368-
if( _i2cPort->available() > 0 )
369-
return true;
370-
delay(1);
371-
}
372-
373-
return false;
374-
}
375-
376-
//Blocking wait for QwiicKX13X to assert (pull low) the INT pin
377-
//indicating it's ready for comm. Can take more than 104ms
378-
//after a hardware reset
379-
bool QwiicKX13xCore::waitForSPI()
380-
{
381-
/*for (uint8_t counter = 0; counter < 125; counter++) //Don't got more than 255
382-
{
383-
if (digitalRead(_int) == LOW)
384-
return (true);
385-
delay(1);
386-
}*/
387-
388-
return (false);
389-
}
390-
391-
bool QwiicKX13xCore::readBit(uint8_t regAddr, uint8_t bitAddr)
392-
{
393-
return true;
394-
//((readRegister(regAddr) & (1 << bitAddr)) >> bitAddr);
395-
}
396-
397-
bool QwiicKX13xCore::writeBit(uint8_t regAddr, uint8_t bitAddr, bool bitToWrite)
398-
{
399-
uint8_t value;
400-
readRegister(&value, regAddr);
401-
value &= ~(1 << bitAddr);
402-
value |= bitToWrite << bitAddr;
403-
//writeRegister(regAddr, value);
404-
return true;
405-
}
406-
407361
bool QwiicKX13xCore::getRawAccelData(rawOutputData *rawAccelData){
408362

409363

src/SparkFun_Qwiic_KX13X.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,8 @@ class QwiicKX13xCore
208208
bool setBufferOperation(uint8_t, uint8_t);
209209
bool enableBuffer(bool, bool);
210210

211-
bool waitForI2C();
212-
bool waitForSPI();
213-
214211
bool getRawAccelData(rawOutputData*);
215212

216-
bool readBit(uint8_t, uint8_t);
217-
bool writeBit(uint8_t, uint8_t, bool);
218-
219213
KX13X_STATUS_t readRegister(uint8_t*, uint8_t);
220214
KX13X_STATUS_t writeRegister(uint8_t, uint8_t, uint8_t, uint8_t);
221215
KX13X_STATUS_t readMultipleRegisters(uint8_t, uint8_t dataBuffer[] , int16_t);

0 commit comments

Comments
 (0)