Advertisement
Guest User

Untitled

a guest
May 4th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. #include <network.h>
  2. #include <utility/ostream.h>
  3.  
  4. using namespace EPOS;
  5.  
  6. OStream cout;
  7.  
  8. int main()
  9. {
  10. while(true) {
  11. Alarm::delay(2000000);
  12.  
  13. // EPOS
  14. cout << "===================================" << endl;
  15. cout << endl;
  16. cout << ">>>> EPOS Sizes <<<<" << endl;
  17. cout << "Int: " << sizeof(int) << " byte(s)" << endl;
  18. cout << "Char: " << sizeof(char) << " byte(s)" << endl;
  19. cout << endl;
  20.  
  21. // TSTP
  22. cout << ">>>> TSTP Sizes <<<<" << endl;
  23.  
  24. // TSTP - Header
  25. cout << "[ Header - " << sizeof(TSTP::Header) <<" bytes ]" << endl;
  26. cout << "Local_Address: " << sizeof(TSTP::Local_Address) << " byte(s)" << endl;
  27. cout << "Time: " << sizeof(TSTP::Time) << " byte(s)" << endl;
  28. cout << endl;
  29.  
  30. // TSTP - Data Message
  31. cout << "[ Data Message - " << sizeof(TSTP::Data_Message) << " bytes ]" << endl;
  32. cout << "Sec_MAC: " << sizeof(TSTP::Sec_MAC) << " byte(s)" << endl;
  33. cout << "Unit: " << sizeof(TSTP::Unit) << " byte(s)" << endl;
  34. cout << "Data: " << sizeof(TSTP::MAX_DATA_SIZE) << " byte(s)" << endl;
  35. cout << endl;
  36. }
  37.  
  38. return 0;
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement