39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
68#define DRV_BUFFER_SIZE_TX 100
69#define DRV_BUFFER_SIZE_RX 700
87#define GNSS8_MAP_MIKROBUS( cfg, mikrobus ) \
88 cfg.tx_pin = MIKROBUS( mikrobus, MIKROBUS_TX ); \
89 cfg.rx_pin = MIKROBUS( mikrobus, MIKROBUS_RX ); \
90 cfg.rdy = MIKROBUS( mikrobus, MIKROBUS_AN ); \
91 cfg.req = MIKROBUS( mikrobus, MIKROBUS_RST ); \
92 cfg.apr = MIKROBUS( mikrobus, MIKROBUS_PWM ); \
93 cfg.int_pin = MIKROBUS( mikrobus, MIKROBUS_INT );
gnss8_return_value_t
GNSS 8 Click return value data.
Definition gnss8.h:151
@ GNSS8_ERROR_OVERFLOW
Definition gnss8.h:155
@ GNSS8_OK
Definition gnss8.h:152
@ GNSS8_ERROR_NO_DATA
Definition gnss8.h:154
@ GNSS8_ERROR
Definition gnss8.h:153
#define DRV_BUFFER_SIZE_TX
GNSS 8 driver buffer size.
Definition gnss8.h:68
#define DRV_BUFFER_SIZE_RX
Definition gnss8.h:69
void gnss8_set_ap_req(gnss8_t *ctx, uint8_t state)
Set AP request pin state.
void gnss8_cfg_setup(gnss8_cfg_t *cfg)
GNSS 8 configuration object setup function.
err_t gnss8_init(gnss8_t *ctx, gnss8_cfg_t *cfg)
GNSS 8 initialization function.
uint8_t gnss8_get_rdy(gnss8_t *ctx)
Get ready pin state.
err_t gnss8_generic_write(gnss8_t *ctx, char *data_buf, uint16_t len)
Data writing function.
err_t gnss8_generic_read(gnss8_t *ctx, char *data_buf, uint16_t max_len)
Data reading function.
uint8_t gnss8_get_req(gnss8_t *ctx)
Get request pin state.
uint8_t gnss8_get_int(gnss8_t *ctx)
Get interrupt pin state.
GNSS 8 Click configuration object.
Definition gnss8.h:126
uint32_t baud_rate
Definition gnss8.h:138
bool uart_blocking
Definition gnss8.h:139
pin_name_t req
Definition gnss8.h:133
uart_data_bits_t data_bit
Definition gnss8.h:140
pin_name_t tx_pin
Definition gnss8.h:129
pin_name_t rx_pin
Definition gnss8.h:128
uart_stop_bits_t stop_bit
Definition gnss8.h:142
pin_name_t int_pin
Definition gnss8.h:135
pin_name_t rdy
Definition gnss8.h:132
uart_parity_t parity_bit
Definition gnss8.h:141
pin_name_t apr
Definition gnss8.h:134
GNSS 8 Click context object.
Definition gnss8.h:103
digital_out_t apr
Definition gnss8.h:105
uart_t uart
Definition gnss8.h:113
digital_in_t int_pin
Definition gnss8.h:110
digital_in_t req
Definition gnss8.h:109
digital_in_t rdy
Definition gnss8.h:108