PX4 Firmware
PX4 Autopilot Software http://px4.io
sbf.cpp File Reference

Septentrio protocol as defined in PPSDK SBF Reference Guide 4.1.8. More...

#include "sbf.h"
#include <string.h>
#include <math.h>
Include dependency graph for sbf.cpp:

Go to the source code of this file.

Macros

#define SBF_CONFIG_TIMEOUT   500
 
#define SBF_PACKET_TIMEOUT   2
 
#define DISABLE_MSG_INTERVAL   1000000
 
#define SBF_TRACE_PARSER(...)   {/*GPS_INFO(__VA_ARGS__);*/} /* decoding progress in parse_char() */
 
#define SBF_TRACE_RXMSG(...)   {/*GPS_INFO(__VA_ARGS__);*/} /* Rx msgs in payload_rx_done() */
 
#define SBF_WARN(...)   {GPS_WARN(__VA_ARGS__);}
 
#define SBF_DEBUG(...)   {/*GPS_WARN(__VA_ARGS__);*/}
 

Functions

uint16_t crc16 (const uint8_t *data_p, uint32_t length)
 Calculate buffer CRC16. More...
 

Detailed Description

Septentrio protocol as defined in PPSDK SBF Reference Guide 4.1.8.

Author
Matej Frančeškin Matej.nosp@m..Fra.nosp@m.ncesk.nosp@m.in@g.nosp@m.mail..nosp@m.com

Definition in file sbf.cpp.

Macro Definition Documentation

◆ DISABLE_MSG_INTERVAL

#define DISABLE_MSG_INTERVAL   1000000

Definition at line 49 of file sbf.cpp.

◆ SBF_CONFIG_TIMEOUT

#define SBF_CONFIG_TIMEOUT   500

Definition at line 47 of file sbf.cpp.

Referenced by GPSDriverSBF::configure(), and GPSDriverSBF::reset().

◆ SBF_DEBUG

#define SBF_DEBUG (   ...)    {/*GPS_WARN(__VA_ARGS__);*/}

◆ SBF_PACKET_TIMEOUT

#define SBF_PACKET_TIMEOUT   2

Definition at line 48 of file sbf.cpp.

Referenced by GPSDriverSBF::receive().

◆ SBF_TRACE_PARSER

#define SBF_TRACE_PARSER (   ...)    {/*GPS_INFO(__VA_ARGS__);*/} /* decoding progress in parse_char() */

Definition at line 52 of file sbf.cpp.

Referenced by GPSDriverSBF::parseChar().

◆ SBF_TRACE_RXMSG

#define SBF_TRACE_RXMSG (   ...)    {/*GPS_INFO(__VA_ARGS__);*/} /* Rx msgs in payload_rx_done() */

Definition at line 53 of file sbf.cpp.

Referenced by GPSDriverSBF::payloadRxDone().

◆ SBF_WARN

#define SBF_WARN (   ...)    {GPS_WARN(__VA_ARGS__);}

Definition at line 56 of file sbf.cpp.

Referenced by GPSDriverSBF::receive(), and GPSDriverSBF::sendMessageAndWaitForAck().

Function Documentation

◆ crc16()

uint16_t crc16 ( const uint8_t *  data_p,
uint32_t  length 
)

Calculate buffer CRC16.

Definition at line 368 of file sbf.cpp.

Referenced by LeddarOne::collect(), CM8JL65::crc16_calc(), and GPSDriverSBF::payloadRxDone().

Here is the caller graph for this function: