|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
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 40
53 #define GPS_UBX_MAX_PAYLOAD 512
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); \
VIC slots used for the LPC2148 define name e g gps UART1_VIC_SLOT e g modem SPI1_VIC_SLOT SPI1 in mcu_periph spi_arch c or spi_slave_hs_arch c(and some others not using the SPI peripheral yet..) I2C0_VIC_SLOT 8 mcu_periph/i2c_arch.c I2C1_VIC_SLOT 9 mcu_periph/i2c_arch.c USB_VIC_SLOT 10 usb
void ubx_header(struct link_device *dev, uint8_t nav_id, uint8_t msg_id, uint16_t len)
uint8_t msg_buf[GPS_UBX_MAX_PAYLOAD]
data structure for GPS information
void gps_ubx_read_message(void)
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
Device independent GPS code (interface)
static const struct usb_device_descriptor dev
void ubx_trailer(struct link_device *dev)
#define GPS_UBX_MAX_PAYLOAD
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)
void ubx_send_cfg_rst(struct link_device *dev, uint16_t bbr, uint8_t reset_mode)