6#ifndef IOA_WIRE_HELPERS_H 
    7#define IOA_WIRE_HELPERS_H 
   10#include "PlatformDetermination.h" 
   11#include "PlatformDeterminationWire.h" 
   28void write4BitToReg8(WireType wireImpl, uint8_t i2cAddress, uint8_t reg, 
bool lowBits, uint8_t val);
 
   38void toggleBitInRegister16(WireType wireType, uint8_t addr, uint8_t regAddr, uint8_t theBit, 
bool value);
 
   48void toggleBitInRegister8(WireType wireType, uint8_t addr, uint8_t regAddr, uint8_t theBit, 
bool value);
 
   58bool wireWriteReg8(WireType wireType, uint8_t addr, uint8_t reg, uint8_t command);
 
   68bool wireWriteReg16(WireType wireType, uint8_t addr, uint8_t reg, uint16_t command);
 
   77uint8_t 
wireReadReg8(WireType wireType, uint8_t addr, uint8_t reg);
 
   86uint16_t 
wireReadReg16(WireType wireType, uint8_t addr, uint8_t reg);
 
Using basic IoFacilities allows one to abstract away the use of IoExpanders, such that the switching ...
void toggleBitInRegister16(WireType wireType, uint8_t addr, uint8_t regAddr, uint8_t theBit, bool value)
Definition wireHelpers.cpp:57
void write4BitToReg8(WireType wireImpl, uint8_t i2cAddress, uint8_t reg, bool lowBits, uint8_t val)
Definition wireHelpers.cpp:69
void toggleBitInRegister8(WireType wireType, uint8_t addr, uint8_t regAddr, uint8_t theBit, bool value)
Definition wireHelpers.cpp:45
uint8_t wireReadReg8(WireType wireType, uint8_t addr, uint8_t reg)
Definition wireHelpers.cpp:20
uint16_t wireReadReg16(WireType wireType, uint8_t addr, uint8_t reg)
Definition wireHelpers.cpp:9
bool wireWriteReg16(WireType wireType, uint8_t addr, uint8_t reg, uint16_t command)
Definition wireHelpers.cpp:30
bool wireWriteReg8(WireType wireType, uint8_t addr, uint8_t reg, uint8_t command)
Definition wireHelpers.cpp:38