tx01_telemetry_frame.hpp 354 B

1234567891011121314151617181920
  1. #ifndef _TX01_TELEMETRY_FRAME_HPP_
  2. #define _TX01_TELEMETRY_FRAME_HPP_ 1
  3. #include "tx01_endian.hpp"
  4. const uint16_t tx01_telemetry_frame_magic = 0x55aa;
  5. struct tx01_telemetry_frame
  6. {
  7. big_uint16_t magic;
  8. uint8_t len_payload;
  9. uint8_t seq;
  10. uint8_t dev_id;
  11. uint8_t msg_id;
  12. char payload[];
  13. };
  14. static_assert(sizeof(tx01_telemetry_frame) == 6);
  15. #endif