33 #warning "Please use gps_ubx_ucenter.xml module instead of GPS_CONFIGURE"
43 #define PRIMARY_GPS GPS_UBX
50 #define gps_ubx_periodic_check() gps_periodic_check(&gps_ubx.state)
52 #define GPS_UBX_NB_CHANNELS 40
54 #define GPS_UBX_MAX_PAYLOAD 512
79 #if USE_GPS_UBX_RXM_RAW
97 extern struct GpsUbxRaw gps_ubx_raw;
103 #include "pprzlink/pprzlink_device.h"
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(&(UBX_GPS_LINK).device, gps_ubx.reset, CFG_RST_Reset_Controlled); \
Device independent GPS code (interface)
data structure for GPS information
void ubx_trailer(struct link_device *dev)
void gps_ubx_parse_HITL_UBX(uint8_t *buf)
void ubx_header(struct link_device *dev, uint8_t nav_id, uint8_t msg_id, uint16_t len)
#define GPS_UBX_NB_CHANNELS
void gps_ubx_parse(uint8_t c)
void gps_ubx_read_message(void)
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 ubx_send_bytes(struct link_device *dev, uint8_t len, uint8_t *bytes)
#define GPS_UBX_MAX_PAYLOAD
pprz link device for Ublox over I2C
static const struct usb_device_descriptor dev
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
int int32_t
Typedef defining 32 bit int type.
short int16_t
Typedef defining 16 bit short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
signed char int8_t
Typedef defining 8 bit char type.