Developer World
Spresense SDK Library v3.2.0-ebc0364
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
 
#define NMEA_GGA_ON   0x00000001
 
#define NMEA_GLL_ON   0x00000002
 
#define NMEA_GSA_ON   0x00000004
 
#define NMEA_GSV_ON   0x00000008
 
#define NMEA_GNS_ON   0x00000010
 
#define NMEA_RMC_ON   0x00000020
 
#define NMEA_VTG_ON   0x00000040
 
#define NMEA_ZDA_ON   0x00000080
 
#define NMEA_SARRLM_ON   0x00000800
 
#define NMEA_QZQSM_ON   0x00004000
 
#define NMEA_GST_ON   0x00100000
 

Typedefs

typedef char NMEA_SPECTRUM_DATA[112]
 

Functions

void NMEA_InitMask (void)
 
int NMEA_RegistOutputFunc (const NMEA_OUTPUT_CB *func)
 
void NMEA_SetMask (uint32_t mask)
 
uint32_t NMEA_GetMask (void)
 
uint16_t NMEA_Output (const struct cxd56_gnss_positiondata_s *pposdat)
 
uint16_t NMEA_DcReport_Output (const struct cxd56_gnss_dcreport_data_s *dcrdat)
 
uint16_t NMEA_GalSarRlm_Output (const struct cxd56_gnss_gal_sarrlm_s *dat)
 
uint16_t NMEA_OutputSpectrum (NMEA_SPECTRUM_DATA *spectrumdat)
 
int NMEA_ExtractRawData (const struct cxd56_gnss_positiondata_s *pposdat, struct nmea_raw_s *rawdat)
 
void NMEA_InitMask2 (void)
 
int NMEA_RegistOutputFunc2 (const NMEA_OUTPUT_CB *func)
 
void NMEA_SetMask2 (uint32_t mask)
 
uint32_t NMEA_GetMask2 (void)
 
uint16_t NMEA_Output2 (const struct cxd56_gnss_positiondata2_s *pposdat)
 
uint16_t NMEA_DcReport_Output2 (const struct cxd56_gnss_dcreport_data_s *dcrdat)
 

Variables

char *(* bufReq )(uint16_t)
 
void(* bufFree )(char *)
 
int(* out )(char *)
 
int(* outBin )(char *, uint32_t)
 
double lat
 
double lon
 
double alt
 
float vel
 
float dir
 

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

◆ NMEA_GGA_ON

#define NMEA_GGA_ON   0x00000001

NMEA sentence mask GPGGA sentence mask

◆ NMEA_GLL_ON

#define NMEA_GLL_ON   0x00000002

GPGLL sentence mask

◆ NMEA_GSA_ON

#define NMEA_GSA_ON   0x00000004

GPGSA sentence mask

◆ NMEA_GSV_ON

#define NMEA_GSV_ON   0x00000008

GPGSV sentence mask

◆ NMEA_GNS_ON

#define NMEA_GNS_ON   0x00000010

GPGNS sentence mask

◆ NMEA_RMC_ON

#define NMEA_RMC_ON   0x00000020

GPRMC sentence mask

◆ NMEA_VTG_ON

#define NMEA_VTG_ON   0x00000040

GPVTG sentence mask

◆ NMEA_ZDA_ON

#define NMEA_ZDA_ON   0x00000080

GPZDA sentence mask

◆ NMEA_SARRLM_ON

#define NMEA_SARRLM_ON   0x00000800

PSRLM sentence mask

◆ NMEA_QZQSM_ON

#define NMEA_QZQSM_ON   0x00004000

QZQSM sentence mask

◆ NMEA_GST_ON

#define NMEA_GST_ON   0x00100000

GPGST sentence mask

Typedef Documentation

◆ NMEA_SPECTRUM_DATA

typedef char NMEA_SPECTRUM_DATA[112]

Spectrum OUTPUT data

Function Documentation

◆ NMEA_InitMask()

void NMEA_InitMask ( void  )

Initialize NMEA sentence mask

◆ NMEA_RegistOutputFunc()

int NMEA_RegistOutputFunc ( 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

  • Default value 0x000000ef.
  • Bits not listed below are reserved.
bit sentence
bit0 GGA
bit1 GLL
bit2 GSA
bit3 GSV
bit4 GNS
bit5 RMC
bit6 VTG
bit7 ZDA
bit14 QZQSM

◆ NMEA_GetMask()

uint32_t NMEA_GetMask ( void  )

Get NMEA sentence mask

Return values
NMEAsentence mask

◆ NMEA_Output()

uint16_t NMEA_Output ( 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 ( 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_InitMask2()

void NMEA_InitMask2 ( void  )

Initialize NMEA sentence mask for cxd5610 gnss

◆ NMEA_RegistOutputFunc2()

int NMEA_RegistOutputFunc2 ( const NMEA_OUTPUT_CB func)

Register output function for cxd5610 gnss

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

◆ NMEA_SetMask2()

void NMEA_SetMask2 ( uint32_t  mask)

Set NMEA sentence mask for cxd5610 gnss 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

◆ NMEA_GetMask2()

uint32_t NMEA_GetMask2 ( void  )

Get NMEA sentence mask for cxd5610 gnss

Return values
NMEAsentence mask

◆ NMEA_Output2()

uint16_t NMEA_Output2 ( const struct cxd56_gnss_positiondata2_s pposdat)

Output NMEA sentence for cxd5610 gnss

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

Variable Documentation

◆ bufReq

char *(* bufReq) (uint16_t)

Buffer request callback func

◆ bufFree

void(* bufFree) (char *)

Buffer free callback func

◆ out

int(* out) (char *)

Output callback func

◆ outBin

int(* outBin) (char *, uint32_t)

Output callback func for binary