void gnss_power_off(void)
This function powers off the GNSS chip.
gnss_notification_type_t
This enum notifies the user about an incoming event from the GNSS chip.
Definition: gnss_api.h:140
Notify the user to save debugging data.
Definition: gnss_api.h:146
void(* gnss_callback_t)(gnss_notification_type_t type, void *param)
GNSS callback typedef, the registered callback is invoked when a UART or EINT interrupt is triggered...
Definition: gnss_api.h:162
void gnss_power_on(void)
This function powers on the GNSS chip.
Notifies the host to send a command again.
Definition: gnss_api.h:144
Data structure to carry the debugging data.
Definition: gnss_api.h:153
void gnss_init(gnss_callback_t callback_function)
This function initializes the GNSS content.
The event notification is sent once the chip is powered off.
Definition: gnss_api.h:142
int8_t * debug_data
Pointer to the debug data.
Definition: gnss_api.h:155
int32_t length
Debugging data length.
Definition: gnss_api.h:154
The event notification is sent if incoming GNSS data is available.
Definition: gnss_api.h:143
The event notification is sent once the chip is powered on.
Definition: gnss_api.h:141
int32_t gnss_send_command(int8_t *cmd, int32_t cmd_len)
This function sends a PMTK command to the GNSS chip.
The GNSS chip is ready to send positioning data to the host.
Definition: gnss_api.h:145
int32_t gnss_read_sentence(int8_t *data_buffer, int32_t length)
This function reads the incoming NMEA sentence.