12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #ifndef __MESSAGE_HPP__
- #define __MESSAGE_HPP__
- #include <stdint.h>
- #include <time.h>
- struct zistream;
- // 分站传上来的卡定位数据,包括tof,tdoa
- struct message_locinfo
- {
- uint64_t m_time_stamp;
- uint32_t m_site_id;
- time_t m_site_time;
- uint32_t m_card_type;
- uint32_t m_card_id;
- uint64_t m_tof;
- uint16_t m_card_ct;
- uint8_t m_batty_status;
- uint8_t m_callinfo;//0x80-呼救,0x01-一般呼叫,0x02-紧急呼叫
- uint8_t m_rav;
- uint8_t m_acc;
- uint8_t m_ant_id;
- uint16_t m_sync_ct;
- uint16_t m_rssi;
- void zero_this();
- void load(zistream&is,bool tdoa);
- };
- //tdoa分站同步数据
- struct message_tdoasync
- {
- uint32_t m_local_site_id;
- uint32_t m_parent_site_id;
- uint16_t m_local_ant_id;
- uint16_t m_parent_ant_id;
- uint16_t m_sync_ct;
- uint16_t m_local_level;
- uint64_t m_recv_time;
- uint64_t m_send_time;
- void zero_this();
- void load(zistream&is);
- };
- #endif
|