gnsszoe
2.0.0.0
|
Functions | |
void | gnsszoe_cfg_setup (gnsszoe_cfg_t *cfg) |
Config Object Initialization function. More... | |
GNSSZOE_RETVAL | gnsszoe_init (gnsszoe_t *ctx, gnsszoe_cfg_t *cfg) |
Initialization function. More... | |
void | gnsszoe_generic_transfer (gnsszoe_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. More... | |
gnsszoe_error_t | gnsszoe_generic_parser (char *rsp, uint8_t command, uint8_t element, char *parser_buf) |
Generic parser function. More... | |
void | gnsszoe_generic_read (gnsszoe_t *ctx, uint8_t *rd_buf, uint16_t rd_len) |
Generic read function. More... | |
void | gnsszoe_module_reset (gnsszoe_t *ctx) |
Reset module. More... | |
void gnsszoe_cfg_setup | ( | gnsszoe_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
gnsszoe_error_t gnsszoe_generic_parser | ( | char * | rsp, |
uint8_t | command, | ||
uint8_t | element, | ||
char * | parser_buf | ||
) |
Generic parser function.
gnsszoe | Click object. |
command | NEMA ( GPS/GNSS ) command. |
element | Element position in command. |
parser_buf | Parser buffer for data storage. |
void gnsszoe_generic_read | ( | gnsszoe_t * | ctx, |
uint8_t * | rd_buf, | ||
uint16_t | rd_len | ||
) |
Generic read function.
ctx | Click object. |
rsp | Read buffer. |
@description Generic SPI read function, for sending and receiving packages
void gnsszoe_generic_transfer | ( | gnsszoe_t * | ctx, |
uint8_t * | wr_buf, | ||
uint16_t | wr_len, | ||
uint8_t * | rd_buf, | ||
uint16_t | rd_len | ||
) |
Generic transfer function.
ctx | Click object. |
block | Transfer block structure. |
@description Generic SPI transfer, for sending and receiving packages
GNSSZOE_RETVAL gnsszoe_init | ( | gnsszoe_t * | ctx, |
gnsszoe_cfg_t * | cfg | ||
) |
Initialization function.
gnsszoe | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void gnsszoe_module_reset | ( | gnsszoe_t * | ctx | ) |
Reset module.
gnsszoe | Click object. |