gnss  2.0.0.0
Data Structures | Macros | Typedefs | Functions
gnss5.h File Reference

This file contains API for GNSS5 Click driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_uart.h"

Go to the source code of this file.

Data Structures

struct  gnss5_t
 Click ctx object definition. More...
 
struct  gnss5_cfg_t
 Click configuration structure definition. More...
 

Macros

#define GNSS5_MAP_MIKROBUS(cfg, mikrobus)
 
#define GNSS5_RETVAL   uint8_t
 
#define GNSS5_OK   0x00
 
#define GNSS5_INIT_ERROR   0xFF
 
#define GNSS5_NEMA_GNGGA   1
 
#define GNSS5_NEMA_GNGLL   3
 
#define GNSS5_NEMA_GNGGA_NUM_ELEMENT   15
 
#define GNSS5_NEMA_GNGLL_NUM_ELEMENT   5
 
#define GNSS5_GNGGA_TIME   1
 
#define GNSS5_GNGGA_LATITUDE   2
 
#define GNSS5_GNGGA_LATITUDE_SIDE   3
 
#define GNSS5_GNGGA_LONGITUDE   4
 
#define GNSS5_GNGGA_LONGITUDE_SIDE   5
 
#define GNSS5_GNGGA_QUALITY_INDICATOR   6
 
#define GNSS5_GNGGA_NUMBER_OF_SATELLITES   7
 
#define GNSS5_GNGGA_H_DILUTION_OF_POS   8
 
#define GNSS5_GNGGA_ALTITUDE   9
 
#define GNSS5_GNGGA_ALTITUDE_UNIT   10
 
#define GNSS5_GNGGA_GEOIDAL_SEPARATION   11
 
#define GNSS5_GNGGA_GEOIDAL_SEPARATION_UNIT   12
 
#define GNSS5_GNGGA_TIME_SINCE_LAST_DGPS   13
 
#define GNSS5_GNGGA_DGPS_REFERENCE_STATION_ID   14
 
#define GNSS5_GNGLL_LATITUDE   1
 
#define GNSS5_GNGLL_LATITUDE_SIDE   2
 
#define GNSS5_GNGLL_LONGITUDE   3
 
#define GNSS5_GNGLL_LONGITUDE_SIDE   4
 
#define GNSS5_ERROR_COMMAND_OR_ELEMENT   0xFF
 
#define GNSS5_ERROR_START_OR_END_COMMAND   0x8F
 
#define GNSS5_ERROR_NEXT_ELEMENT   0x4F
 
#define GNSS5_ERROR_CURRENT_ELEMENT   0x2F
 
#define GNSS5_NO_ERROR   0x00
 
#define DRV_RX_BUFFER_SIZE   500
 

Typedefs

typedef uint8_t gnss5_error_t
 Error type. More...
 

Functions

void gnss5_cfg_setup (gnss5_cfg_t *cfg)
 Config Object Initialization function. More...
 
GNSS5_RETVAL gnss5_init (gnss5_t *ctx, gnss5_cfg_t *cfg)
 Initialization function. More...
 
void gnss5_module_wakeup (gnss5_t *ctx)
 Wake-up module. More...
 
uint8_t gnss5_get_exi_pin (gnss5_t *ctx)
 Set WKP ( wake-up ) pin state. More...
 
void gnss5_set_rst_pin (gnss5_t *ctx, uint8_t state)
 Set RST ( reset ) pin state. More...
 
uint8_t gnss5_get_pps_pin (gnss5_t *ctx)
 Get PPS pin state. More...
 
void gnss5_generic_write (gnss5_t *ctx, char *data_buf, uint16_t len)
 Generic write function. More...
 
int32_t gnss5_generic_read (gnss5_t *ctx, char *data_buf, uint16_t max_len)
 Generic read function. More...
 
gnss5_error_t gnss5_generic_parser (char *rsp, uint8_t command, uint8_t element, char *parser_buf)
 Generic parser function. More...
 

Detailed Description

This file contains API for GNSS5 Click driver.