gnss8 2.0.0.0
gnss8.h File Reference

This file contains API for GNSS 8 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  gnss8_t
 GNSS 8 Click context object. More...
 
struct  gnss8_cfg_t
 GNSS 8 Click configuration object. More...
 

Macros

#define DRV_BUFFER_SIZE_TX   100
 GNSS 8 driver buffer size.
 
#define DRV_BUFFER_SIZE_RX   700
 
#define GNSS8_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  gnss8_return_value_t { GNSS8_OK = 0 , GNSS8_ERROR = -1 , GNSS8_ERROR_NO_DATA = -2 , GNSS8_ERROR_OVERFLOW = -3 }
 GNSS 8 Click return value data. More...
 

Functions

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.
 
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.
 
void gnss8_set_ap_req (gnss8_t *ctx, uint8_t state)
 Set AP request pin state.
 
uint8_t gnss8_get_req (gnss8_t *ctx)
 Get request pin state.
 
uint8_t gnss8_get_int (gnss8_t *ctx)
 Get interrupt pin state.
 
uint8_t gnss8_get_rdy (gnss8_t *ctx)
 Get ready pin state.
 

Detailed Description

This file contains API for GNSS 8 Click Driver.

Enumeration Type Documentation

◆ gnss8_return_value_t

GNSS 8 Click return value data.

Predefined enum values for driver return values.

Enumerator
GNSS8_OK 
GNSS8_ERROR 
GNSS8_ERROR_NO_DATA 
GNSS8_ERROR_OVERFLOW