Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
gps_mtk.h File Reference

Mediatek MT3329 specific code. More...

#include "mcu_periph/uart.h"
#include "mtk_protocol.h"
#include "mcu_periph/link_device.h"
+ Include dependency graph for gps_mtk.h:

Go to the source code of this file.

Data Structures

struct  GpsMtk
 

Macros

#define GPS_MTK_MAX_PAYLOAD   255
 Includes macros generated from mtk.xml. More...
 
#define GpsConfigure()   {}
 

Functions

void gps_mtk_read_message (void)
 
void gps_mtk_parse (uint8_t c)
 
static void GpsEvent (void)
 

Variables

struct GpsMtk gps_mtk
 

Detailed Description

Mediatek MT3329 specific code.

supports: DIYDrones V1.4 protocol (AXN1.30_2278) DIYDrones V1.6 protocol (AXN1.30_2389)

documentation is partly incorrect, see mtk.xml for what seems to be "real"

Definition in file gps_mtk.h.


Data Structure Documentation

struct GpsMtk

Definition at line 33 of file gps_mtk.h.

Data Fields
uint8_t ck_a
uint8_t ck_b
uint8_t error_cnt
uint8_t error_last
uint16_t len
bool_t msg_available
uint8_t msg_buf[GPS_MTK_MAX_PAYLOAD]
uint8_t msg_class
uint8_t msg_id
uint8_t msg_idx
uint8_t send_ck_a
uint8_t send_ck_b
uint8_t sol_flags
uint8_t status
uint8_t status_flags

Macro Definition Documentation

#define GPS_MTK_MAX_PAYLOAD   255

Includes macros generated from mtk.xml.

Definition at line 31 of file gps_mtk.h.

#define GpsConfigure ( )    {}

Definition at line 66 of file gps_mtk.h.

Referenced by GpsEvent().

Function Documentation

static void GpsEvent ( void  )
inlinestatic

Definition at line 72 of file gps_mtk.h.

References link_device::char_available, dev, link_device::get_byte, gps_mtk, gps_mtk_msg(), gps_mtk_parse(), GpsConfigure, GpsMtk::msg_available, and link_device::periph.

+ Here is the call graph for this function:

Variable Documentation

struct GpsMtk gps_mtk

Definition at line 82 of file gps_mtk.c.

Referenced by gps_impl_init(), gps_mtk_msg(), gps_mtk_parse(), gps_mtk_read_message(), and GpsEvent().