gnss7 2.0.0.0
|
API for configuring and manipulating GNSS 7 Click driver. More...
Topics | |
GNSS 7 Device Settings | |
Settings for registers of GNSS 7 Click driver. | |
GNSS 7 MikroBUS Map | |
MikroBUS pin mapping of GNSS 7 Click driver. | |
Functions | |
void | gnss7_cfg_setup (gnss7_cfg_t *cfg) |
GNSS 7 configuration object setup function. | |
err_t | gnss7_init (gnss7_t *ctx, gnss7_cfg_t *cfg) |
GNSS 7 initialization function. | |
err_t | gnss7_generic_write (gnss7_t *ctx, char *data_in, uint16_t len) |
GNSS 7 data writing function. | |
err_t | gnss7_generic_read (gnss7_t *ctx, char *data_out, uint16_t len) |
GNSS 7 data reading function. | |
void | gnss7_clear_ring_buffers (gnss7_t *ctx) |
GNSS 7 clear ring buffers function. | |
void | gnss7_set_sel_pin (gnss7_t *ctx, uint8_t state) |
GNSS 7 set SEL pin function. | |
void | gnss7_set_rst_pin (gnss7_t *ctx, uint8_t state) |
GNSS 7 set RST pin function. | |
uint8_t | gnss7_get_exi_pin (gnss7_t *ctx) |
GNSS 7 get EXI pin function. | |
uint8_t | gnss7_get_pls_pin (gnss7_t *ctx) |
GNSS 7 get PLS pin function. | |
err_t | gnss7_parse_gngga (char *rsp_buf, uint8_t gngga_element, char *element_data) |
GNSS 7 parse GNGGA function. | |
API for configuring and manipulating GNSS 7 Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
void gnss7_cfg_setup | ( | gnss7_cfg_t * | cfg | ) |
GNSS 7 configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See gnss7_cfg_t object definition for detailed explanation. |
void gnss7_clear_ring_buffers | ( | gnss7_t * | ctx | ) |
GNSS 7 clear ring buffers function.
This function clears UART tx and rx ring buffers.
[in] | ctx | : Click context object. See gnss7_t object definition for detailed explanation. |
err_t gnss7_generic_read | ( | gnss7_t * | ctx, |
char * | data_out, | ||
uint16_t | len ) |
GNSS 7 data reading function.
This function reads a desired number of data bytes by using UART serial interface.
[in] | ctx | : Click context object. See gnss7_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 gnss7_generic_write | ( | gnss7_t * | ctx, |
char * | data_in, | ||
uint16_t | len ) |
GNSS 7 data writing function.
This function writes a desired number of data bytes by using UART serial interface.
[in] | ctx | : Click context object. See gnss7_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 gnss7_get_exi_pin | ( | gnss7_t * | ctx | ) |
GNSS 7 get EXI pin function.
This function returns the EXI pin logic state.
[in] | ctx | : Click context object. See gnss7_t object definition for detailed explanation. |
uint8_t gnss7_get_pls_pin | ( | gnss7_t * | ctx | ) |
GNSS 7 get PLS pin function.
This function returns the PLS pin logic state.
[in] | ctx | : Click context object. See gnss7_t object definition for detailed explanation. |
err_t gnss7_init | ( | gnss7_t * | ctx, |
gnss7_cfg_t * | cfg ) |
GNSS 7 initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See gnss7_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See gnss7_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t gnss7_parse_gngga | ( | char * | rsp_buf, |
uint8_t | gngga_element, | ||
char * | element_data ) |
GNSS 7 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 gnss7_set_rst_pin | ( | gnss7_t * | ctx, |
uint8_t | state ) |
GNSS 7 set RST pin function.
This function sets the RST pin logic state.
[in] | ctx | : Click context object. See gnss7_t object definition for detailed explanation. |
[in] | state | : Pin logic state. |