irnss  2.0.0.0
Macros | Functions | Variables
main.c File Reference

IRNSS Click Example. More...

#include "board.h"
#include "log.h"
#include "irnss.h"
#include "string.h"

Macros

#define PROCESS_BUFFER_SIZE   700
 
#define RSP_GNGGA   "GNGGA"
 
#define RSP_GNGGA_LATITUDE_ELEMENT   2
 
#define RSP_GNGGA_LONGITUDE_ELEMENT   4
 
#define RSP_GNGGA_ALTITUDE_ELEMENT   9
 

Functions

void application_init (void)
 
void application_task (void)
 
void main (void)
 

Variables

err_t last_error_flag
 

Detailed Description

IRNSS Click Example.

Description

This example application reads data, checks for specific command. If command is found checks for data validation and if it's found logs that data to UART terminal.

The demo application is composed of two sections :

Application Init

Initializes log and device communication modules.

Application Task

Collects data and waits for Latitude, longitude, and altitude data from the device. When it's received logs data, and while waiting it will log '.' until data is received.

Additional Function

note:

Author
Luka Filipovic

Macro Definition Documentation

◆ PROCESS_BUFFER_SIZE

#define PROCESS_BUFFER_SIZE   700

◆ RSP_GNGGA

#define RSP_GNGGA   "GNGGA"

◆ RSP_GNGGA_ALTITUDE_ELEMENT

#define RSP_GNGGA_ALTITUDE_ELEMENT   9

◆ RSP_GNGGA_LATITUDE_ELEMENT

#define RSP_GNGGA_LATITUDE_ELEMENT   2

◆ RSP_GNGGA_LONGITUDE_ELEMENT

#define RSP_GNGGA_LONGITUDE_ELEMENT   4

Function Documentation

◆ application_init()

void application_init ( void  )

< Logger config object.

< Click config object.

◆ application_task()

void application_task ( void  )

◆ main()

void main ( void  )

Variable Documentation

◆ last_error_flag

err_t last_error_flag