nanogps3 2.1.0.0
|
API for configuring and manipulating Nano GPS 3 Click driver. More...
Topics | |
Nano GPS 3 Registers List | |
List of registers of Nano GPS 3 Click driver. | |
Nano GPS 3 Registers Settings | |
Nano GPS 3 description register. | |
Nano GPS 3 MikroBUS Map | |
MikroBUS pin mapping of Nano GPS 3 Click driver. | |
Functions | |
void | nanogps3_cfg_setup (nanogps3_cfg_t *cfg) |
Nano GPS 3 configuration object setup function. | |
err_t | nanogps3_init (nanogps3_t *ctx, nanogps3_cfg_t *cfg) |
Nano GPS 3 initialization function. | |
void | nanogps3_default_cfg (nanogps3_t *ctx) |
Nano GPS 3 default configuration function. | |
err_t | nanogps3_generic_write (nanogps3_t *ctx, uint8_t *data_in, uint8_t len) |
Nano GPS 3 data writing function. | |
err_t | nanogps3_generic_read (nanogps3_t *ctx, uint8_t *data_out, uint8_t len) |
Nano GPS 3 data reading function. | |
void | nanogps3_request_to_send (nanogps3_t *ctx, uint8_t rts) |
Nano GPS 3 request to send function. | |
uint8_t | nanogps3_clear_to_send (nanogps3_t *ctx) |
Nano GPS 3 clear to send function. | |
void | nanogps3_set_reset_state (nanogps3_t *ctx, uint8_t rst_state) |
Nano GPS 3 set reset state function. | |
void | nanogps3_set_force_on_state (nanogps3_t *ctx, uint8_t pwr_state) |
Nano GPS 3 set force on state function. | |
uint8_t | nanogps3_get_wup_pin (nanogps3_t *ctx) |
Nano GPS 3 get wakeup pin function. | |
err_t | nanogps3_parse_gngga (char *rsp_buf, uint8_t gngga_element, char *element_data) |
Nano GPS 3 parse GNGGA function. | |
API for configuring and manipulating Nano GPS 3 Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
void nanogps3_cfg_setup | ( | nanogps3_cfg_t * | cfg | ) |
Nano GPS 3 configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See nanogps3_cfg_t object definition for detailed explanation. |
uint8_t nanogps3_clear_to_send | ( | nanogps3_t * | ctx | ) |
Nano GPS 3 clear to send function.
This function is flow control and uses to get the clear to send logic state of the Nano GPS 3 click board™.
[in] | ctx | : Click context object. See nanogps3_t object definition for detailed explanation. |
void nanogps3_default_cfg | ( | nanogps3_t * | ctx | ) |
Nano GPS 3 default configuration function.
This function executes a default configuration of Nano GPS 3 click board.
[in] | ctx | : Click context object. See nanogps3_t object definition for detailed explanation. |
err_t nanogps3_generic_read | ( | nanogps3_t * | ctx, |
uint8_t * | data_out, | ||
uint8_t | len ) |
Nano GPS 3 data reading function.
This function reads a desired number of data bytes from the module.
[in] | ctx | : Click context object. See nanogps3_t object definition for detailed explanation. |
[out] | data_out | : Output read data. |
[in] | len | : Number of bytes to be read. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t nanogps3_generic_write | ( | nanogps3_t * | ctx, |
uint8_t * | data_in, | ||
uint8_t | len ) |
Nano GPS 3 data writing function.
This function writes a desired number of data to the module.
[in] | ctx | : Click context object. See nanogps3_t object definition for detailed explanation. |
[in] | data_in | : Data to be written. |
[in] | len | : Number of bytes to be written. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. uint8_t nanogps3_get_wup_pin | ( | nanogps3_t * | ctx | ) |
Nano GPS 3 get wakeup pin function.
This function get logic states of the WUP pin of the Nano GPS 3 click board™.
[in] | ctx | : Click context object. See nanogps3_t object definition for detailed explanation. |
err_t nanogps3_init | ( | nanogps3_t * | ctx, |
nanogps3_cfg_t * | cfg ) |
Nano GPS 3 initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See nanogps3_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See nanogps3_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t nanogps3_parse_gngga | ( | char * | rsp_buf, |
uint8_t | gngga_element, | ||
char * | element_data ) |
Nano GPS 3 parse GNGGA function.
This function parses the GNGGA data from the read response buffer.
[in] | rsp_buf | : Response buffer. |
[in] | gngga_element | : Element position [1-14]. |
[out] | element_data | : Element data parsed. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. void nanogps3_request_to_send | ( | nanogps3_t * | ctx, |
uint8_t | rts ) |
Nano GPS 3 request to send function.
This function is flow control and uses to sets the request to send logic state of the Nano GPS 3 click board™.
[in] | ctx | : Click context object. See nanogps3_t object definition for detailed explanation. |
[in] | cts | : Request to send state. |
void nanogps3_set_force_on_state | ( | nanogps3_t * | ctx, |
uint8_t | pwr_state ) |
Nano GPS 3 set force on state function.
This function controls the power states of the Nano GPS 3 click board™.
[in] | ctx | : Click context object. See nanogps3_t object definition for detailed explanation. |
[in] | pwr_state | : Power pin states. |
void nanogps3_set_reset_state | ( | nanogps3_t * | ctx, |
uint8_t | rst_state ) |
Nano GPS 3 set reset state function.
This function sets RST pin logic state of the Nano GPS 3 click board™.
[in] | ctx | : Click context object. See nanogps3_t object definition for detailed explanation. |
[in] | rst_state | : Reset pin states. |