resources/libtiny/Wire.cpp
// must be called in:
// slave rx event callback
// or after requestFrom(address, numBytes)
must be called in:
slave rx event callback
or after requestFrom(address, numBytes)
must be called in : slave rx event callback or after requestFrom ( address numBytes )
int TwoWire::available(void) {
  if (BufferLength) {
    return BufferLength - BufferIndex;
  } else {
    return USI_TWI_Data_In_Receive_Buffer();
  }
}
int TwoWire :: available ( void ) { if ( BufferLength ) { return BufferLength - BufferIndex ; } else { return USI_TWI_Data_In_Receive_Buffer ( ) ; } }
must be called in:
slave rx event callback
or after requestFrom(address, numBytes)
must be called in : slave rx event callback or after requestFrom ( address numBytes )