Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
xsens_common.c File Reference

Parser for the Xsens protocol. More...

#include "xsens_common.h"
#include "pprzlink/pprzlink_device.h"
#include "mcu_periph/uart.h"
+ Include dependency graph for xsens_common.c:

Go to the source code of this file.

Functions

void parse_xsens_buffer (uint8_t c)
 
void xsens_event (void)
 

Variables

volatile uint8_t xsens_msg_received
 
uint8_t xsens_id
 Includes macros generated from xsens_MTi-G.xml. More...
 
uint8_t xsens_status
 
uint8_t xsens_len
 
uint8_t xsens_msg_idx
 
uint8_t ck
 
uint8_t send_ck
 
uint8_t xsens_msg_buf [XSENS_MAX_PAYLOAD]
 

Detailed Description

Parser for the Xsens protocol.

Definition in file xsens_common.c.

Function Documentation

void parse_xsens_buffer ( uint8_t  c)

Definition at line 54 of file xsens_common.c.

References ck, GOT_BID, GOT_DATA, GOT_LEN, GOT_MID, GOT_START, TRUE, UNINIT, xsens_id, xsens_len, XSENS_MAX_PAYLOAD, xsens_msg_buf, xsens_msg_idx, xsens_msg_received, and xsens_status.

Referenced by xsens_event().

+ Here is the caller graph for this function:

void xsens_event ( void  )

Definition at line 44 of file xsens_common.c.

References dev, parse_xsens_buffer(), and xsens_msg_received.

Referenced by imu_xsens_event(), ins_xsens700_event(), and ins_xsens_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

uint8_t ck

Definition at line 37 of file xsens_common.c.

Referenced by parse_xsens_buffer().

uint8_t send_ck

Definition at line 38 of file xsens_common.c.

uint8_t xsens_id

Includes macros generated from xsens_MTi-G.xml.

Definition at line 33 of file xsens_common.c.

Referenced by parse_xsens700_msg(), parse_xsens_buffer(), and parse_xsens_msg().

uint8_t xsens_len

Definition at line 35 of file xsens_common.c.

Referenced by parse_xsens700_msg(), and parse_xsens_buffer().

uint8_t xsens_msg_buf[XSENS_MAX_PAYLOAD]

Definition at line 40 of file xsens_common.c.

Referenced by parse_xsens700_msg(), parse_xsens_buffer(), and parse_xsens_msg().

uint8_t xsens_msg_idx

Definition at line 36 of file xsens_common.c.

Referenced by parse_xsens_buffer().

volatile uint8_t xsens_msg_received

Definition at line 31 of file xsens_common.c.

Referenced by parse_xsens_buffer(), and xsens_event().

uint8_t xsens_status

Definition at line 34 of file xsens_common.c.

Referenced by parse_xsens_buffer(), xsens700_init(), and xsens_init().