src/PanelDataObjects.cpp
//dumpObject lists a DataObject's contents, plus the contents of it's contained data
dumpObject lists a DataObject's contents, plus the contents of it's contained data
dumpObject lists a DataObject ' s contents plus the contents of it ' s contained data
void dumpObject( DataObject * inputObjectPtr )
{
	Serial.print("Obj Addr: 0x");
	Serial.println((uint32_t)&(*inputObjectPtr), HEX);
	uint8_t * bytePtr = (uint8_t *)inputObjectPtr;
	for( int i = 0; i < sizeof(*inputObjectPtr); i++ )
	{
		Serial.print("0x");
		Serial.print(*bytePtr,HEX);
		Serial.print(", ");
		bytePtr++;
	}
	Serial.println();
	Serial.print("Containted data: ");
	bytePtr = (uint8_t *)inputObjectPtr->data;
	for( int i = 0; i < inputObjectPtr->size; i++ )
	{
		Serial.print("0x");
		Serial.print(*bytePtr,HEX);
		Serial.print(", ");
		bytePtr++;
	}
	Serial.println();
}
void dumpObject ( DataObject * inputObjectPtr ) { Serial . print ( " " ) ; Serial . println ( ( uint32_t ) & ( * inputObjectPtr ) , HEX ) ; uint8_t * bytePtr = ( uint8_t * ) inputObjectPtr ; for ( int i = 0 ; i < sizeof ( * inputObjectPtr ) ; i ++ ) { Serial . print ( " " ) ; Serial . print ( * bytePtr , HEX ) ; Serial . print ( " " ) ; bytePtr ++ ; } Serial . println ( ) ; Serial . print ( " " ) ; bytePtr = ( uint8_t * ) inputObjectPtr -> data ; for ( int i = 0 ; i < inputObjectPtr -> size ; i ++ ) { Serial . print ( " " ) ; Serial . print ( * bytePtr , HEX ) ; Serial . print ( " " ) ; bytePtr ++ ; } Serial . println ( ) ; }
dumpObject lists a DataObject's contents, plus the contents of it's contained data
dumpObject lists a DataObject ' s contents plus the contents of it ' s contained data