75 ERROR(F(
"Error: index out of bounds (")
76 <<
byteIndex << F(
", length is ") << getBufferLength()
79 return getBufferLength() - 1;
#define BEGIN_AH_NAMESPACE
A class for arrays of bits.
void set(uint16_t bitIndex)
Set the value of the given bit to 1.
uint8_t getBufferMask(uint16_t bitIndex) const
uint8_t & getByte(uint16_t byteIndex)
Get the byte at the given index.
uint16_t safeIndex(uint16_t byteIndex) const
Check the given byte index, and return it if it is within the bounds of the array,...
void setByte(uint16_t byteIndex, uint8_t value)
Set the byte at the given index.
uint8_t getBufferBit(uint16_t bitIndex) const
uint16_t getBufferLength() const
Get the buffer length in bytes.
const uint8_t & getByte(uint16_t byteIndex) const
Get the byte at the given index.
void clear(uint16_t bitIndex)
Clear the value of the given bit to 0.
uint16_t getBufferIndex(uint16_t bitIndex) const
void set(uint16_t bitIndex, bool state)
Set the value of the given bit to the given state.
bool get(uint16_t bitIndex) const
Get the value of the given bit.
A class for serial-in/parallel-out shift registers, like the 74HC595 that are connected to the SPI bu...