39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
73#define DRV_BUFFER_SIZE_TX 100
74#define DRV_BUFFER_SIZE_RX 700
92#define GNSSMAX_MAP_MIKROBUS( cfg, mikrobus ) \
93 cfg.tx_pin = MIKROBUS( mikrobus, MIKROBUS_TX ); \
94 cfg.rx_pin = MIKROBUS( mikrobus, MIKROBUS_RX ); \
95 cfg.rst = MIKROBUS( mikrobus, MIKROBUS_RST ); \
96 cfg.ext = MIKROBUS( mikrobus, MIKROBUS_PWM ); \
97 cfg.pps = MIKROBUS( mikrobus, MIKROBUS_INT );
gnssmax_return_value_t
GNSS MAX Click return value data.
Definition gnssmax.h:153
@ GNSSMAX_OK
Definition gnssmax.h:154
@ GNSSMAX_ERROR_NO_DATA
Definition gnssmax.h:156
@ GNSSMAX_ERROR_OVERFLOW
Definition gnssmax.h:157
@ GNSSMAX_ERROR
Definition gnssmax.h:155
#define DRV_BUFFER_SIZE_TX
GNSS MAX driver buffer size.
Definition gnssmax.h:73
#define DRV_BUFFER_SIZE_RX
Definition gnssmax.h:74
err_t gnssmax_generic_read(gnssmax_t *ctx, char *data_buf, uint16_t max_len)
GNSS MAX data reading function.
err_t gnssmax_init(gnssmax_t *ctx, gnssmax_cfg_t *cfg)
GNSS MAX initialization function.
void gnssmax_set_external_interrupt(gnssmax_t *ctx, uint8_t state)
GNSS MAX sets state of external interrupt.
err_t gnssmax_default_cfg(gnssmax_t *ctx)
GNSS MAX default configuration function.
void gnssmax_reset(gnssmax_t *ctx)
GNSS MAX reset function.
void gnssmax_cfg_setup(gnssmax_cfg_t *cfg)
GNSS MAX configuration object setup function.
uint8_t gnssmax_get_pps(gnssmax_t *ctx)
GNSS MAX reads timestamp pin state.
err_t gnssmax_generic_write(gnssmax_t *ctx, char *data_buf, uint16_t len)
GNSS MAX data writing function.
GNSS MAX Click configuration object.
Definition gnssmax.h:129
uint32_t baud_rate
Definition gnssmax.h:140
pin_name_t pps
Definition gnssmax.h:137
bool uart_blocking
Definition gnssmax.h:141
uart_data_bits_t data_bit
Definition gnssmax.h:142
pin_name_t tx_pin
Definition gnssmax.h:132
pin_name_t rx_pin
Definition gnssmax.h:131
uart_stop_bits_t stop_bit
Definition gnssmax.h:144
uart_parity_t parity_bit
Definition gnssmax.h:143
pin_name_t ext
Definition gnssmax.h:136
pin_name_t rst
Definition gnssmax.h:135
GNSS MAX Click context object.
Definition gnssmax.h:107
digital_in_t pps
Definition gnssmax.h:113
uart_t uart
Definition gnssmax.h:116
digital_out_t ext
Definition gnssmax.h:110
digital_out_t rst
Definition gnssmax.h:109