33 #warning "Please use gps_ubx_ucenter.xml module instead of GPS_CONFIGURE"
43 #define PRIMARY_GPS GPS_UBX
49 #define gps_ubx_periodic_check() gps_periodic_check(&gps_ubx.state)
51 #define GPS_UBX_NB_CHANNELS 16
53 #define GPS_UBX_MAX_PAYLOAD 255
76 #if USE_GPS_UBX_RXM_RAW
94 extern struct GpsUbxRaw gps_ubx_raw;
100 #include "pprzlink/pprzlink_device.h"
115 #define CFG_RST_Reset_Hardware 0x00
116 #define CFG_RST_Reset_Controlled 0x01
117 #define CFG_RST_Reset_Controlled_GPS_only 0x02
118 #define CFG_RST_Reset_Controlled_GPS_stop 0x08
119 #define CFG_RST_Reset_Controlled_GPS_start 0x09
121 #define CFG_RST_BBR_Hotstart 0x0000
122 #define CFG_RST_BBR_Warmstart 0x0001
123 #define CFG_RST_BBR_Coldstart 0xffff
125 #define gps_ubx_Reset(_val) { \
126 gps_ubx.reset = _val; \
127 if (gps_ubx.reset > CFG_RST_BBR_Warmstart) \
128 gps_ubx.reset = CFG_RST_BBR_Coldstart; \
129 ubx_send_cfg_rst(&(UBX_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)
pprz link device for Ublox over I2C
uint8_t msg_buf[GPS_UBX_MAX_PAYLOAD]
#define GPS_UBX_MAX_PAYLOAD
void gps_ubx_read_message(void)
data structure for GPS information
Device independent GPS code (interface)
void ubx_send_bytes(struct link_device *dev, uint8_t len, uint8_t *bytes)
#define GPS_UBX_NB_CHANNELS
void gps_ubx_parse(uint8_t c)
static const struct usb_device_descriptor dev
void ubx_trailer(struct link_device *dev)
void ubx_header(struct link_device *dev, uint8_t nav_id, uint8_t msg_id, uint16_t len)