gnss3
2.0.0.0
|
Functions | |
void | gnss3_cfg_setup (gnss3_cfg_t *cfg) |
Config Object Initialization function. More... | |
GNSS3_RETVAL | gnss3_init (gnss3_t *ctx, gnss3_cfg_t *cfg) |
Initialization function. More... | |
void | gnss3_module_wakeup (gnss3_t *ctx) |
Wake-up module. More... | |
void | gnss3_set_rst_pin (gnss3_t *ctx, uint8_t state) |
Set RST ( reset ) pin state. More... | |
uint8_t | gnss3_get_pps_pin (gnss3_t *ctx) |
Get PPS pin state. More... | |
void | gnss3_generic_write (gnss3_t *ctx, char *data_buf, uint16_t len) |
Generic write function. More... | |
int32_t | gnss3_generic_read (gnss3_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. More... | |
gnss3_error_t | gnss3_generic_parser (char *rsp, uint8_t command, uint8_t element, char *parser_buf) |
Generic parser function. More... | |
void gnss3_cfg_setup | ( | gnss3_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
gnss3_error_t gnss3_generic_parser | ( | char * | rsp, |
uint8_t | command, | ||
uint8_t | element, | ||
char * | parser_buf | ||
) |
Generic parser function.
gnss3 | Click object. |
command | NEMA ( GPS/GNSS ) command. |
element | Element position in command. |
parser_buf | Parser buffer for data storage. |
int32_t gnss3_generic_read | ( | gnss3_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len | ||
) |
Generic read function.
gnss3 | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
void gnss3_generic_write | ( | gnss3_t * | ctx, |
char * | data_buf, | ||
uint16_t | len | ||
) |
Generic write function.
gnss3 | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
uint8_t gnss3_get_pps_pin | ( | gnss3_t * | ctx | ) |
Get PPS pin state.
gnss3 | Click object. |
GNSS3_RETVAL gnss3_init | ( | gnss3_t * | ctx, |
gnss3_cfg_t * | cfg | ||
) |
Initialization function.
gnss3 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void gnss3_module_wakeup | ( | gnss3_t * | ctx | ) |
Wake-up module.
gnss3 | Click object. |
void gnss3_set_rst_pin | ( | gnss3_t * | ctx, |
uint8_t | state | ||
) |
Set RST ( reset ) pin state.
gnss3 | Click object. |
state | Pin state ( 1 or 0 ). |