gsm4
2.0.0.0
|
Functions | |
void | gsm4_cfg_setup (gsm4_cfg_t *cfg) |
Config Object Initialization function. More... | |
GSM4_RETVAL | gsm4_init (gsm4_t *ctx, gsm4_cfg_t *cfg) |
Initialization function. More... | |
void | gsm4_module_power (gsm4_t *ctx) |
Enables or disables module power. More... | |
void | gsm4_reset (gsm4_t *ctx) |
Reset module. More... | |
void | gsm4_generic_write (gsm4_t *ctx, char *data_buf, uint16_t len) |
Generic write function. More... | |
int16_t | gsm4_generic_read (gsm4_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. More... | |
void | gsm4_send_command (gsm4_t *ctx, char *command) |
Command function. More... | |
void gsm4_cfg_setup | ( | gsm4_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
int16_t gsm4_generic_read | ( | gsm4_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. |
@description This function reads data from the desired register.
void gsm4_generic_write | ( | gsm4_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. |
@description This function writes data to the desired register.
GSM4_RETVAL gsm4_init | ( | gsm4_t * | ctx, |
gsm4_cfg_t * | cfg | ||
) |
Initialization function.
gsm4 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void gsm4_module_power | ( | gsm4_t * | ctx | ) |
Enables or disables module power.
ctx | Click object. |
@description This function Turn ON or OFF the module.
void gsm4_reset | ( | gsm4_t * | ctx | ) |
Reset module.
ctx | Click object. |
@description This function reset module.
void gsm4_send_command | ( | gsm4_t * | ctx, |
char * | command | ||
) |
Command function.
ctx | Click object. |
command | Command. |
@description This function send comamnd.