// // Created by YY on 2019/12/27. // #ifndef RTKDRIVERTEST_PLATFORM_H #define RTKDRIVERTEST_PLATFORM_H #define PLATFORM_CONNECT_EVT 0x0001 #define PLATFORM_DISCONNECT_EVT 0x0002 #define PLATFORM_REGISTER_EVT 0x0004 #define PLATFORM_LOGIN_EVT 0x0008 #define RTK_UPDATE_EVT 0x0010 #define GPS_UPDATE_EVT 0x0020 void InitPlatform(const uint8_t *phone, const char *domain_name, int port); void PlatformStatusChanged(uint32_t event); int WritePlatform(const uint8_t * buf, uint32_t len); void DeviceRegisterCallback(uint8_t res, const uint8_t *data, int length); void DeviceLoginCallback(uint8_t res); void ReceivedRtk(const uint8_t *data, int length); void RequestRtkDownload(uint32_t latitude, uint32_t longitude, uint16_t altitude, const uint8_t *bcd_time, uint16_t rtk_pkt_interval); void StopRtkDownload(void); #endif //RTKDRIVERTEST_PLATFORM_H