42#ifdef PREINIT_SUPPORTED
46#ifdef MikroCCoreVersion
47 #if MikroCCoreVersion >= 1
52#include "drv_digital_out.h"
53#include "drv_digital_in.h"
67#define GNSS3_MAP_MIKROBUS( cfg, mikrobus ) \
68 cfg.tx_pin = MIKROBUS( mikrobus, MIKROBUS_TX ); \
69 cfg.rx_pin = MIKROBUS( mikrobus, MIKROBUS_RX ); \
70 cfg.rst = MIKROBUS( mikrobus, MIKROBUS_RST ); \
71 cfg.int_pin = MIKROBUS( mikrobus, MIKROBUS_CS )
78#define GNSS3_RSP_START "$"
79#define GNSS3_RSP_DELIMITER ","
80#define GNSS3_RSP_GNGGA "$GNGGA"
86#define GNSS3_GNGGA_ELEMENT_SIZE 15
87#define GNSS3_GNGGA_TIME 1
88#define GNSS3_GNGGA_LATITUDE 2
89#define GNSS3_GNGGA_LATITUDE_SIDE 3
90#define GNSS3_GNGGA_LONGITUDE 4
91#define GNSS3_GNGGA_LONGITUDE_SIDE 5
92#define GNSS3_GNGGA_QUALITY_INDICATOR 6
93#define GNSS3_GNGGA_NUMBER_OF_SATELLITES 7
94#define GNSS3_GNGGA_H_DILUTION_OF_POS 8
95#define GNSS3_GNGGA_ALTITUDE 9
96#define GNSS3_GNGGA_ALTITUDE_UNIT 10
97#define GNSS3_GNGGA_GEOIDAL_SEPARATION 11
98#define GNSS3_GNGGA_GEOIDAL_SEPARATION_UNIT 12
99#define GNSS3_GNGGA_TIME_SINCE_LAST_DGPS 13
100#define GNSS3_GNGGA_DGPS_REFERENCE_STATION_ID 14
106#define GNSS3_DRV_RX_BUFFER_SIZE 500
#define GNSS3_DRV_RX_BUFFER_SIZE
Definition gnss3.h:106
int32_t gnss3_generic_read(gnss3_t *ctx, char *data_buf, uint16_t max_len)
Generic read function.
uint8_t gnss3_get_int_pin(gnss3_t *ctx)
Get PPS pin state.
void gnss3_module_wakeup(gnss3_t *ctx)
Wake-up module.
err_t gnss3_parse_gngga(char *rsp_buf, uint8_t gngga_element, char *element_data)
GNSS 3 parse GNGGA function.
void gnss3_cfg_setup(gnss3_cfg_t *cfg)
Config Object Initialization function.
void gnss3_set_rst_pin(gnss3_t *ctx, uint8_t state)
Set RST ( reset ) pin state.
err_t gnss3_init(gnss3_t *ctx, gnss3_cfg_t *cfg)
Initialization function.
void gnss3_generic_write(gnss3_t *ctx, char *data_buf, uint16_t len)
Generic write function.
gnss3_return_value_t
GNSS 3 Click return value data.
Definition gnss3.h:157
@ GNSS3_OK
Definition gnss3.h:158
@ GNSS3_ERROR
Definition gnss3.h:159
Click configuration structure definition.
Definition gnss3.h:134
uint32_t baud_rate
Definition gnss3.h:144
bool uart_blocking
Definition gnss3.h:145
uart_data_bits_t data_bit
Definition gnss3.h:146
pin_name_t tx_pin
Definition gnss3.h:137
pin_name_t rx_pin
Definition gnss3.h:136
uart_stop_bits_t stop_bit
Definition gnss3.h:148
pin_name_t int_pin
Definition gnss3.h:141
uart_parity_t parity_bit
Definition gnss3.h:147
pin_name_t rst
Definition gnss3.h:140
Click ctx object definition.
Definition gnss3.h:119
uart_t uart
Definition gnss3.h:123
digital_in_t int_pin
Definition gnss3.h:121
digital_out_t rst
Definition gnss3.h:120