gnsszoe  2.0.0.0
Main Page

GNSS ZOE click

GNSS ZOE Click is a evaluation board for ultra small ZOE-M8Q GNSS SiP receiver from u-blox.

click Product page


Click library

  • Author : MikroE Team
  • Date : May 2020.
  • Type : SPI type

Software Support

We provide a library for the Gnsszoe Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.

Package can be downloaded/installed directly form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.

Library Description

This library contains API for Gnsszoe Click driver.

Standard key functions :

  • Config Object Initialization function.

    void gnsszoe_cfg_setup ( gnsszoe_cfg_t *cfg );

  • Initialization function.

    GNSSZOE_RETVAL gnsszoe_init ( gnsszoe_t *ctx, gnsszoe_cfg_t *cfg );

  • Click Default Configuration function.

    void gnsszoe_default_cfg ( gnsszoe_t *ctx );

Example key functions :

  • Generic read function

    void gnsszoe_generic_read ( gnsszoe_t *ctx, char *rsp )

  • Reset module function

    void gnsszoe_module_reset ( gnsszoe_t *ctx );

  • Generic parser function.

    gnsszoe_error_t gnsszoe_generic_parser ( char *rsp, uint8_t command, uint8_t element, char *parser_buf );

Examples Description

This example reads and processes data from GNSS ZOE clicks.

The demo application is composed of two sections :

Application Init

Initializes driver and wake-up module.

void application_init ( void )
{
log_cfg_t log_cfg;
// Logger initialization.
LOG_MAP_USB_UART( log_cfg );
log_cfg.level = LOG_LEVEL_DEBUG;
log_cfg.baud = 115200;
log_init( &logger, &log_cfg );
log_info( &logger, "---- Application Init ----" );
// Click initialization.
GNSSZOE_MAP_MIKROBUS( cfg, MIKROBUS_1 );
gnsszoe_init( &gnsszoe, &cfg );
gnsszoe_module_reset( &gnsszoe );
Delay_ms( 1000 );
}

Application Task

Reads the received data and parses it.

void application_task ( void )
{
gnsszoe_process( );
parser_application( current_parser_buf );
}

The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.

Other mikroE Libraries used in the example:

  • MikroSDK.Board
  • MikroSDK.Log
  • Click.Gnsszoe

Additional notes and informations

Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.


GNSSZOE_MAP_MIKROBUS
#define GNSSZOE_MAP_MIKROBUS(cfg, mikrobus)
Definition: gnsszoe.h:54
gnsszoe_cfg_setup
void gnsszoe_cfg_setup(gnsszoe_cfg_t *cfg)
Config Object Initialization function.
gnsszoe_cfg_t
Click configuration structure definition.
Definition: gnsszoe.h:159
application_task
void application_task(void)
Definition: main.c:127
application_init
void application_init(void)
Definition: main.c:103
gnsszoe_module_reset
void gnsszoe_module_reset(gnsszoe_t *ctx)
Reset module.
gnsszoe_init
GNSSZOE_RETVAL gnsszoe_init(gnsszoe_t *ctx, gnsszoe_cfg_t *cfg)
Initialization function.