gps3
2.0.0.0
|
Functions | |
void | gps3_cfg_setup (gps3_cfg_t *cfg) |
Config Object Initialization function. More... | |
GPS3_RETVAL | gps3_init (gps3_t *ctx, gps3_cfg_t *cfg) |
Initialization function. More... | |
void | gps3_module_wakeup (gps3_t *ctx) |
Wake-up module. More... | |
void | gps3_set_rst_pin (gps3_t *ctx, uint8_t state) |
Set RST ( reset ) pin state. More... | |
void | gps3_generic_write (gps3_t *ctx, char *data_buf, uint16_t len) |
Generic write function. More... | |
int16_t | gps3_generic_read (gps3_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. More... | |
gps3_error_t | gps3_generic_parser (char *rsp, uint8_t command, uint8_t element, char *parser_buf) |
Generic parser function. More... | |
void gps3_cfg_setup | ( | gps3_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
gps3_error_t gps3_generic_parser | ( | char * | rsp, |
uint8_t | command, | ||
uint8_t | element, | ||
char * | parser_buf | ||
) |
Generic parser function.
gps3 | Click object. |
command | NEMA ( GPS/GNSS ) command. |
element | Element position in command. |
parser_buf | Parser buffer for data storage. |
int16_t gps3_generic_read | ( | gps3_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len | ||
) |
Generic read function.
gps3 | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
void gps3_generic_write | ( | gps3_t * | ctx, |
char * | data_buf, | ||
uint16_t | len | ||
) |
Generic write function.
gps3 | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
GPS3_RETVAL gps3_init | ( | gps3_t * | ctx, |
gps3_cfg_t * | cfg | ||
) |
Initialization function.
gps3 | Click object. |
cfg | Click configuration structure. |
This function initializes all necessary pins and peripherals used for this click.
void gps3_module_wakeup | ( | gps3_t * | ctx | ) |
Wake-up module.
gps3 | Click object. |
void gps3_set_rst_pin | ( | gps3_t * | ctx, |
uint8_t | state | ||
) |
Set RST ( reset ) pin state.
gps3 | Click object. |
state | Pin state ( 1 or 0 ). |