Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <network.h>
- #include <utility/ostream.h>
- using namespace EPOS;
- OStream cout;
- int main()
- {
- while(true) {
- Alarm::delay(2000000);
- // EPOS
- cout << "===================================" << endl;
- cout << endl;
- cout << ">>>> EPOS Sizes <<<<" << endl;
- cout << "Int: " << sizeof(int) << " byte(s)" << endl;
- cout << "Char: " << sizeof(char) << " byte(s)" << endl;
- cout << endl;
- // TSTP
- cout << ">>>> TSTP Sizes <<<<" << endl;
- // TSTP - Header
- cout << "[ Header - " << sizeof(TSTP::Header) <<" bytes ]" << endl;
- cout << "Local_Address: " << sizeof(TSTP::Local_Address) << " byte(s)" << endl;
- cout << "Time: " << sizeof(TSTP::Time) << " byte(s)" << endl;
- cout << endl;
- // TSTP - Data Message
- cout << "[ Data Message - " << sizeof(TSTP::Data_Message) << " bytes ]" << endl;
- cout << "Sec_MAC: " << sizeof(TSTP::Sec_MAC) << " byte(s)" << endl;
- cout << "Unit: " << sizeof(TSTP::Unit) << " byte(s)" << endl;
- cout << "Data: " << sizeof(TSTP::MAX_DATA_SIZE) << " byte(s)" << endl;
- cout << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement