gnss16
2.1.0.0
|
API for configuring and manipulating GNSS 16 Click driver. More...
Modules | |
GNSS 16 Device Settings | |
Settings for registers of GNSS 16 Click driver. | |
GNSS 16 MikroBUS Map | |
MikroBUS pin mapping of GNSS 16 Click driver. | |
Functions | |
void | gnss16_cfg_setup (gnss16_cfg_t *cfg) |
GNSS 16 configuration object setup function. More... | |
err_t | gnss16_init (gnss16_t *ctx, gnss16_cfg_t *cfg) |
GNSS 16 initialization function. More... | |
void | gnss16_set_rst_pin (gnss16_t *ctx, uint8_t state) |
GNSS 16 set RST pin function. More... | |
void | gnss16_reset_device (gnss16_t *ctx) |
GNSS 16 reset device function. More... | |
err_t | gnss16_generic_write (gnss16_t *ctx, uint8_t *data_in, uint16_t len) |
GNSS 16 data writing function. More... | |
err_t | gnss16_generic_read (gnss16_t *ctx, uint8_t *data_out, uint16_t len) |
GNSS 16 data reading function. More... | |
err_t | gnss16_parse_gngga (char *rsp_buf, uint8_t gngga_element, char *element_data) |
GNSS 16 parse GNGGA function. More... | |
uint8_t | gnss16_get_int_pin (gnss16_t *ctx) |
GNSS 16 get interrupt pin state function. More... | |
API for configuring and manipulating GNSS 16 Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
void gnss16_cfg_setup | ( | gnss16_cfg_t * | cfg | ) |
GNSS 16 configuration object setup function.
This function initializes Click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See gnss16_cfg_t object definition for detailed explanation. |
err_t gnss16_generic_read | ( | gnss16_t * | ctx, |
uint8_t * | data_out, | ||
uint16_t | len | ||
) |
GNSS 16 data reading function.
This function reads a desired number of data bytes by using UART serial interface.
[in] | ctx | : Click context object. See gnss16_t object definition for detailed explanation. |
[out] | data_out | : Output read data. |
[in] | len | : Number of bytes to be read. |
>0
- Number of data bytes read, <=0
- Error/Empty Ring buffer. See #err_t definition for detailed explanation. err_t gnss16_generic_write | ( | gnss16_t * | ctx, |
uint8_t * | data_in, | ||
uint16_t | len | ||
) |
GNSS 16 data writing function.
This function writes a desired number of data bytes by using UART serial interface.
[in] | ctx | : Click context object. See gnss16_t object definition for detailed explanation. |
[in] | data_in | : Data buffer for sending. |
[in] | len | : Number of bytes for sending. |
>=0
- Success, <0
- Error. See #err_t definition for detailed explanation. uint8_t gnss16_get_int_pin | ( | gnss16_t * | ctx | ) |
GNSS 16 get interrupt pin state function.
This function returns the INT pin logic state.
[in] | ctx | : Click context object. See gnss16_t object definition for detailed explanation. |
err_t gnss16_init | ( | gnss16_t * | ctx, |
gnss16_cfg_t * | cfg | ||
) |
GNSS 16 initialization function.
This function initializes all necessary pins and peripherals used for this Click board.
[out] | ctx | : Click context object. See gnss16_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See gnss16_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t gnss16_parse_gngga | ( | char * | rsp_buf, |
uint8_t | gngga_element, | ||
char * | element_data | ||
) |
GNSS 16 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 gnss16_reset_device | ( | gnss16_t * | ctx | ) |
GNSS 16 reset device function.
This function resets the device by toggling the RST pin.
[in] | ctx | : Click context object. See gnss16_t object definition for detailed explanation. |