resources/libtiny/USIWire.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::peek(void) {
  int value = -1;
  if (available()) {
    if (BufferLength) {
      value = Buffer[BufferIndex];
    } else {
      value = USI_TWI_Peek_Receive_Byte();
    }
  }
  return value;
}
int TwoWire :: peek ( void ) { int value = -1 ; if ( available ( ) ) { if ( BufferLength ) { value = Buffer [ BufferIndex ] ; } else { value = USI_TWI_Peek_Receive_Byte ( ) ; } } return value ; }
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 )