GNSS Hardware API

Note

For A9G, Neoway N58 and Quectel EC200U-CNAA modules only.

Header File

Source: include/hw/gnss.h

#include <hw/gnss.h>

Functions

int gnss_hw_power(int on_off)

Set on-board GNSS chip power on/off This function has no effect on module without GNSS feature.

Parameters:

on_off – 1 for On, 0 for off

Returns:

0 on success, -ve on failure

int gnss_hw_status(void)

Get GNSS chip power status.

Returns:

1 if powered on, 0 if powered off

uint32_t gnss_hw_baudrate(void)

Get GNSS chip NMEA port baudrate.

Returns:

baudrate value