Developer World
Spresense SDK Library release-v1.2.0-627f51e
Classes | Macros | Typedefs | Functions
NMEA output library
Collaboration diagram for NMEA output library:

Classes

struct  NMEA_OUTPUT_CB
 
struct  nmea_raw_s
 

Macros

#define NMEA_SENTENCE_MAX_LEN   160
 

Typedefs

typedef char NMEA_SPECTRUM_DATA[112]
 

Functions

void NMEA_InitMask (void)
 
int NMEA_RegistOutputFunc (FAR const NMEA_OUTPUT_CB *func)
 
void NMEA_SetMask (uint32_t mask)
 
uint32_t NMEA_GetMask (void)
 
uint16_t NMEA_Output (FAR const struct cxd56_gnss_positiondata_s *pposdat)
 
uint16_t NMEA_OutputSpectrum (FAR NMEA_SPECTRUM_DATA *spectrumdat)
 
int NMEA_ExtractRawData (FAR const struct cxd56_gnss_positiondata_s *pposdat, FAR struct nmea_raw_s *rawdat)
 

Detailed Description

Description of CXD56xx GNSS NMEA converter interface.

Macro Definition Documentation

◆ NMEA_SENTENCE_MAX_LEN

#define NMEA_SENTENCE_MAX_LEN   160

Maximum length of one line of NMEA sentence output from this library

Typedef Documentation

◆ NMEA_SPECTRUM_DATA

typedef char NMEA_SPECTRUM_DATA[112]

Spectrum OUTPUT data

Function Documentation

◆ NMEA_GetMask()

uint32_t NMEA_GetMask ( void  )

Get NMEA sentence mask

Return values
NMEAsentence mask

◆ NMEA_InitMask()

void NMEA_InitMask ( void  )

Initialize NMEA sentence mask

◆ NMEA_Output()

uint16_t NMEA_Output ( FAR const struct cxd56_gnss_positiondata_s pposdat)

Output NMEA sentence

Parameters
[in]pposdat: Position data output from GNSS
Return values
>0: success, output total sentence size
<0: fail

◆ NMEA_OutputSpectrum()

uint16_t NMEA_OutputSpectrum ( FAR NMEA_SPECTRUM_DATA spectrumdat)

Output Spectrum data as TEXT sentence

Parameters
[in]spectrumdat: Spectrum data output from GNSS
Return values
>0: success, output total sentence size
<0: fail

◆ NMEA_RegistOutputFunc()

int NMEA_RegistOutputFunc ( FAR const NMEA_OUTPUT_CB func)

Register output function

Parameters
[in]*func: function pointer
Return values
0: success
<0: fail

◆ NMEA_SetMask()

void NMEA_SetMask ( uint32_t  mask)

Set NMEA sentence mask Give this function by ORing the bits in the table below corresponding to the sentence to be output. If set 0, stopping output.

Parameters
[in]mask: 32bit mask value

Mask description

  • Defult value 0x000000ef.
  • bit8 to bit31 are reserved.
bit sentence
bit0GGA
bit1GLL
bit2GSA
bit3GSV
bit4GNS
bit5RMC
bit6VTG
bit7ZDA