gps 2.0.0.0
|
Functions | |
void | gps_cfg_setup (gps_cfg_t *cfg) |
Config Object Initialization function. | |
GPS_RETVAL | gps_init (gps_t *ctx, gps_cfg_t *cfg) |
Initialization function. | |
void | gps_module_wakeup (gps_t *ctx) |
Wake-up module. | |
void | gps_set_rst_pin (gps_t *ctx, uint8_t state) |
Set RST ( reset ) pin state. | |
uint8_t | gps_get_tmpls_pin (gps_t *ctx) |
uint8_t gps_get_tmpls_pin ( gps_t *ctx ); | |
void | gps_generic_write (gps_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int32_t | gps_generic_read (gps_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
gps_error_t | gps_generic_parser (char *rsp, uint8_t command, uint8_t element, char *parser_buf) |
Generic parser function. | |
void gps_cfg_setup | ( | gps_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
gps_error_t gps_generic_parser | ( | char * | rsp, |
uint8_t | command, | ||
uint8_t | element, | ||
char * | parser_buf ) |
Generic parser function.
gps | Click object. |
command | NEMA ( GPS/GNSS ) command. |
element | Element position in command. |
parser_buf | Parser buffer for data storage. |
int32_t gps_generic_read | ( | gps_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len ) |
Generic read function.
gps | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
void gps_generic_write | ( | gps_t * | ctx, |
char * | data_buf, | ||
uint16_t | len ) |
Generic write function.
gps | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
uint8_t gps_get_tmpls_pin | ( | gps_t * | ctx | ) |
GPS_RETVAL gps_init | ( | gps_t * | ctx, |
gps_cfg_t * | cfg ) |
Initialization function.
gps | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void gps_module_wakeup | ( | gps_t * | ctx | ) |
Wake-up module.
gps | Click object. |
void gps_set_rst_pin | ( | gps_t * | ctx, |
uint8_t | state ) |
Set RST ( reset ) pin state.
gps | Click object. |
state | Pin state ( 1 or 0 ). |