nanogps 2.0.0.0
|
Functions | |
void | nanogps_cfg_setup (nanogps_cfg_t *cfg) |
Config Object Initialization function. | |
NANOGPS_RETVAL | nanogps_init (nanogps_t *ctx, nanogps_cfg_t *cfg) |
Initialization function. | |
void | nanogps_module_wakeup (nanogps_t *ctx) |
Wake-up module. | |
void | nanogps_set_pwr_pin (nanogps_t *ctx, uint8_t state) |
Set PWR ( powerS ) pin state. | |
void | nanogps_set_rst_pin (nanogps_t *ctx, uint8_t state) |
Set RST ( reset ) pin state. | |
uint8_t | nanogps_get_wkp_pin (nanogps_t *ctx) |
Get WKP pin state. | |
void | nanogps_generic_write (nanogps_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int32_t | nanogps_generic_read (nanogps_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
nanogps_error_t | nanogps_generic_parser (char *rsp, uint8_t command, uint8_t element, char *parser_buf) |
Generic parser function. | |
void nanogps_cfg_setup | ( | nanogps_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
nanogps_error_t nanogps_generic_parser | ( | char * | rsp, |
uint8_t | command, | ||
uint8_t | element, | ||
char * | parser_buf ) |
Generic parser function.
nanogps | Click object. |
command | NEMA ( GPS/GNSS ) command. |
element | Element position in command. |
parser_buf | Parser buffer for data storage. |
int32_t nanogps_generic_read | ( | nanogps_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len ) |
Generic read function.
nanogps | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
void nanogps_generic_write | ( | nanogps_t * | ctx, |
char * | data_buf, | ||
uint16_t | len ) |
Generic write function.
nanogps | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
uint8_t nanogps_get_wkp_pin | ( | nanogps_t * | ctx | ) |
Get WKP pin state.
nanogps | Click object. |
NANOGPS_RETVAL nanogps_init | ( | nanogps_t * | ctx, |
nanogps_cfg_t * | cfg ) |
Initialization function.
nanogps | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void nanogps_module_wakeup | ( | nanogps_t * | ctx | ) |
Wake-up module.
nanogps | Click object. |
void nanogps_set_pwr_pin | ( | nanogps_t * | ctx, |
uint8_t | state ) |
Set PWR ( powerS ) pin state.
nanogps | Click object. |
state | Pin state ( 1 or 0 ). |
void nanogps_set_rst_pin | ( | nanogps_t * | ctx, |
uint8_t | state ) |
Set RST ( reset ) pin state.
nanogps | Click object. |
state | Pin state ( 1 or 0 ). |