gnssrtk 2.1.0.0
|
API for configuring and manipulating GNSS RTK Click driver. More...
Topics | |
GNSS RTK Registers Settings | |
Settings for registers of GNSS RTK Click driver. | |
GNSS RTK MikroBUS Map | |
MikroBUS pin mapping of GNSS RTK Click driver. | |
Functions | |
void | gnssrtk_cfg_setup (gnssrtk_cfg_t *cfg) |
GNSS RTK configuration object setup function. | |
void | gnssrtk_drv_interface_selection (gnssrtk_cfg_t *cfg, gnssrtk_drv_t drv_sel) |
GNSS RTK driver interface setup function. | |
err_t | gnssrtk_init (gnssrtk_t *ctx, gnssrtk_cfg_t *cfg) |
GNSS RTK initialization function. | |
err_t | gnssrtk_generic_write (gnssrtk_t *ctx, uint8_t *data_in, uint8_t len) |
GNSS RTK data writing function. | |
err_t | gnssrtk_generic_read (gnssrtk_t *ctx, uint8_t *data_out, uint8_t len) |
GNSS RTK data reading function. | |
void | gnssrtk_set_rst_pin (gnssrtk_t *ctx, uint8_t state) |
GNSS RTK set RST pin function. | |
uint8_t | gnssrtk_get_rdy_pin (gnssrtk_t *ctx) |
GNSS RTK get RDY pin function. | |
uint8_t | gnssrtk_get_rtk_pin (gnssrtk_t *ctx) |
GNSS RTK get RTK pin function. | |
uint8_t | gnssrtk_get_tmp_pin (gnssrtk_t *ctx) |
GNSS RTK get TMP pin function. | |
void | gnssrtk_reset_device (gnssrtk_t *ctx) |
GNSS RTK reset device function. | |
err_t | gnssrtk_parse_gngga (char *rsp_buf, uint8_t gngga_element, char *element_data) |
GNSS RTK parse GNGGA function. | |
API for configuring and manipulating GNSS RTK Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
void gnssrtk_cfg_setup | ( | gnssrtk_cfg_t * | cfg | ) |
GNSS RTK configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See gnssrtk_cfg_t object definition for detailed explanation. |
void gnssrtk_drv_interface_selection | ( | gnssrtk_cfg_t * | cfg, |
gnssrtk_drv_t | drv_sel ) |
GNSS RTK driver interface setup function.
This function sets a serial driver interface which will be used further in the click driver.
[out] | cfg | : Click configuration structure. See gnssrtk_cfg_t object definition for detailed explanation. |
[in] | drv_sel | : Driver interface selection. See gnssrtk_drv_t object definition for detailed explanation. |
err_t gnssrtk_generic_read | ( | gnssrtk_t * | ctx, |
uint8_t * | data_out, | ||
uint8_t | len ) |
GNSS RTK data reading function.
This function reads a desired number of data bytes from the module.
[in] | ctx | : Click context object. See gnssrtk_t object definition for detailed explanation. |
[out] | data_out | : Output read data. |
[in] | len | : Number of bytes to be read. |
>=0
- Success, or number of data bytes read in the case of UART, -1
- Error. See #err_t definition for detailed explanation. err_t gnssrtk_generic_write | ( | gnssrtk_t * | ctx, |
uint8_t * | data_in, | ||
uint8_t | len ) |
GNSS RTK data writing function.
This function writes a desired number of data bytes to the module.
[in] | ctx | : Click context object. See gnssrtk_t object definition for detailed explanation. |
[in] | data_in | : Data to be written. |
[in] | len | : Number of bytes to be written. |
>=0
- Success, or number of data bytes written in the case of UART, -1
- Error. See #err_t definition for detailed explanation. uint8_t gnssrtk_get_rdy_pin | ( | gnssrtk_t * | ctx | ) |
GNSS RTK get RDY pin function.
This function returns the RDY pin logic state.
[in] | ctx | : Click context object. See gnssrtk_t object definition for detailed explanation. |
uint8_t gnssrtk_get_rtk_pin | ( | gnssrtk_t * | ctx | ) |
GNSS RTK get RTK pin function.
This function returns the RTK pin logic state.
[in] | ctx | : Click context object. See gnssrtk_t object definition for detailed explanation. |
uint8_t gnssrtk_get_tmp_pin | ( | gnssrtk_t * | ctx | ) |
GNSS RTK get TMP pin function.
This function returns the TMP pin logic state.
[in] | ctx | : Click context object. See gnssrtk_t object definition for detailed explanation. |
err_t gnssrtk_init | ( | gnssrtk_t * | ctx, |
gnssrtk_cfg_t * | cfg ) |
GNSS RTK initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See gnssrtk_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See gnssrtk_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t gnssrtk_parse_gngga | ( | char * | rsp_buf, |
uint8_t | gngga_element, | ||
char * | element_data ) |
GNSS RTK parse GNGGA function.
This function parses the GNGGA data from the read response buffer.
[in] | rsp_buf | : Response buffer. |
[in] | gngga_element | : GNGGA element position [1-14]. |
[out] | element_data | : Element data parsed. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. void gnssrtk_reset_device | ( | gnssrtk_t * | ctx | ) |
GNSS RTK reset device function.
This function resets the device by toggling the RST pin.
[in] | ctx | : Click context object. See gnssrtk_t object definition for detailed explanation. |