gnss4 2.0.0.0
|
Functions | |
void | gnss4_cfg_setup (gnss4_cfg_t *cfg) |
Config Object Initialization function. | |
GNSS4_RETVAL | gnss4_init (gnss4_t *ctx, gnss4_cfg_t *cfg) |
Initialization function. | |
void | gnss4_module_wakeup (gnss4_t *ctx) |
Wake-up module. | |
void | gnss4_set_rst_pin (gnss4_t *ctx, uint8_t state) |
Set RST ( reset ) pin state. | |
void | gnss4_generic_write (gnss4_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int32_t | gnss4_generic_read (gnss4_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
gnss4_error_t | gnss4_generic_parser (char *rsp, uint8_t command, uint8_t element, char *parser_buf) |
Generic parser function. | |
void gnss4_cfg_setup | ( | gnss4_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
gnss4_error_t gnss4_generic_parser | ( | char * | rsp, |
uint8_t | command, | ||
uint8_t | element, | ||
char * | parser_buf ) |
Generic parser function.
gnss4 | Click object. |
command | NEMA ( GPS/GNSS ) command. |
element | Element position in command. |
parser_buf | Parser buffer for data storage. |
int32_t gnss4_generic_read | ( | gnss4_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len ) |
Generic read function.
gnss4 | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
void gnss4_generic_write | ( | gnss4_t * | ctx, |
char * | data_buf, | ||
uint16_t | len ) |
Generic write function.
gnss4 | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
GNSS4_RETVAL gnss4_init | ( | gnss4_t * | ctx, |
gnss4_cfg_t * | cfg ) |
Initialization function.
gnss4 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void gnss4_module_wakeup | ( | gnss4_t * | ctx | ) |
Wake-up module.
gnss4 | Click object. |
void gnss4_set_rst_pin | ( | gnss4_t * | ctx, |
uint8_t | state ) |
Set RST ( reset ) pin state.
gnss4 | Click object. |
state | Pin state ( 1 or 0 ). |