31 #warning "Please use gps_ubx_ucenter.xml module instead of GPS_CONFIGURE"
36 #define GPS_NB_CHANNELS 16
38 #define GPS_UBX_MAX_PAYLOAD 255
61 #if USE_GPS_UBX_RXM_RAW
79 extern struct GpsUbxRaw gps_ubx_raw;
118 #define CFG_RST_Reset_Hardware 0x00
119 #define CFG_RST_Reset_Controlled 0x01
120 #define CFG_RST_Reset_Controlled_GPS_only 0x02
121 #define CFG_RST_Reset_Controlled_GPS_stop 0x08
122 #define CFG_RST_Reset_Controlled_GPS_start 0x09
124 #define CFG_RST_BBR_Hotstart 0x0000
125 #define CFG_RST_BBR_Warmstart 0x0001
126 #define CFG_RST_BBR_Coldstart 0xffff
128 #define gps_ubx_Reset(_val) { \
129 gps_ubx.reset = _val; \
130 if (gps_ubx.reset > CFG_RST_BBR_Warmstart) \
131 gps_ubx.reset = CFG_RST_BBR_Coldstart; \
132 ubx_send_cfg_rst(&(GPS_LINK).device, gps_ubx.reset, CFG_RST_Reset_Controlled); \
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
void ubx_send_cfg_rst(struct link_device *dev, uint16_t bbr, uint8_t reset_mode)
uint8_t msg_buf[GPS_UBX_MAX_PAYLOAD]
void * periph
pointer to parent implementation
#define GPS_UBX_MAX_PAYLOAD
void gps_ubx_read_message(void)
void ubx_send_bytes(struct link_device *dev, uint8_t len, uint8_t *bytes)
get_byte_t get_byte
get a new char
void gps_ubx_parse(uint8_t c)
static void GpsEvent(void)
static const struct usb_device_descriptor dev
void ubx_trailer(struct link_device *dev)
char_available_t char_available
check if a new character is available
void ubx_header(struct link_device *dev, uint8_t nav_id, uint8_t msg_id, uint16_t len)