thingstream 2.0.0.0
|
Functions | |
void | thingstream_cfg_setup (thingstream_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | thingstream_init (thingstream_t *ctx, thingstream_cfg_t *cfg) |
Initialization function. | |
void | thingstream_module_power (thingstream_t *ctx, uint8_t power_state) |
Power module. | |
void | thingstream_reset_pin_state (thingstream_t *ctx, uint8_t state) |
Set RST pin state. | |
void | thingstream_generic_write (thingstream_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int32_t | thingstream_generic_read (thingstream_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
void | thingstream_send_command (thingstream_t *ctx, char *command) |
Send command. | |
thingstream_error_t | thingstream_generic_parser (char *rsp, uint8_t command, uint8_t element, char *parser_buf) |
Generic parser function. | |
void thingstream_cfg_setup | ( | thingstream_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
thingstream_error_t thingstream_generic_parser | ( | char * | rsp, |
uint8_t | command, | ||
uint8_t | element, | ||
char * | parser_buf ) |
Generic parser function.
ctx | Click object. |
command | NEMA ( GPS/GNSS ) command. |
element | Element position in command. |
parser_buf | Parser buffer for data storage. |
int32_t thingstream_generic_read | ( | thingstream_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len ) |
Generic read function.
ctx | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
void thingstream_generic_write | ( | thingstream_t * | ctx, |
char * | data_buf, | ||
uint16_t | len ) |
Generic write function.
ctx | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
err_t thingstream_init | ( | thingstream_t * | ctx, |
thingstream_cfg_t * | cfg ) |
Initialization function.
thingstream | Click object. |
cfg | Click configuration structure. |
This function initializes all necessary pins and peripherals used for this click.
void thingstream_module_power | ( | thingstream_t * | ctx, |
uint8_t | power_state ) |
Power module.
ctx | Click object. |
power_state | State of pin. |
void thingstream_reset_pin_state | ( | thingstream_t * | ctx, |
uint8_t | state ) |
Set RST pin state.
ctx | Click object. |
state | Pin state ( 1 or 0 ). |
void thingstream_send_command | ( | thingstream_t * | ctx, |
char * | command ) |
Send command.
ctx | Click object. |
command | Command to send. |