gsm3
2.0.0.0
|
Functions | |
void | gsm3_cfg_setup (gsm3_cfg_t *cfg) |
Config Object Initialization function. More... | |
GSM3_RETVAL | gsm3_init (gsm3_t *ctx, gsm3_cfg_t *cfg) |
Initialization function. More... | |
void | gsm3_module_power (gsm3_t *ctx) |
Enables or disables module power. More... | |
void | gsm3_reset (gsm3_t *ctx) |
Reset module. More... | |
void | gsm3_generic_write (gsm3_t *ctx, char *data_buf, uint16_t len) |
Generic write function. More... | |
int32_t | gsm3_generic_read (gsm3_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. More... | |
void | gsm3_send_command (gsm3_t *ctx, char *command) |
Command function. More... | |
void gsm3_cfg_setup | ( | gsm3_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
int32_t gsm3_generic_read | ( | gsm3_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len | ||
) |
Generic read function.
ctx | Click object. |
data_buf | Data buff to be written. |
max_len | Max number of the bytes in data buf. |
This function reads data from the desired register.
void gsm3_generic_write | ( | gsm3_t * | ctx, |
char * | data_buf, | ||
uint16_t | len | ||
) |
Generic write function.
ctx | Click object. |
data_buf | Data buff to be written. |
len | Number of the bytes in data buf. |
This function writes data to the desired register.
GSM3_RETVAL gsm3_init | ( | gsm3_t * | ctx, |
gsm3_cfg_t * | cfg | ||
) |
Initialization function.
gsm3 | Click object. |
cfg | Click configuration structure. |
This function initializes all necessary pins and peripherals used for this click.
void gsm3_module_power | ( | gsm3_t * | ctx | ) |
Enables or disables module power.
ctx | Click object. |
This function Turn ON or OFF the module.
void gsm3_reset | ( | gsm3_t * | ctx | ) |
Reset module.
ctx | Click object. |
This function reset module.
void gsm3_send_command | ( | gsm3_t * | ctx, |
char * | command | ||
) |
Command function.
ctx | Click object. |
command | Command. |
This function send comamnd.