c3gsara
2.0.0.0
|
Functions | |
void | c3gsara_cfg_setup (c3gsara_cfg_t *cfg) |
Config Object Initialization function. More... | |
C3GSARA_RETVAL | c3gsara_init (c3gsara_t *ctx, c3gsara_cfg_t *cfg) |
Initialization function. More... | |
void | c3gsara_module_power (c3gsara_t *ctx, uint8_t power_state) |
Power module. More... | |
void | c3gsara_generic_write (c3gsara_t *ctx, char *data_buf, uint16_t len) |
Generic write function. More... | |
int32_t | c3gsara_generic_read (c3gsara_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. More... | |
void | c3gsara_send_command (c3gsara_t *ctx, char *command) |
Send command. More... | |
void c3gsara_cfg_setup | ( | c3gsara_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
int32_t c3gsara_generic_read | ( | c3gsara_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len | ||
) |
Generic read function.
c3gsara | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
void c3gsara_generic_write | ( | c3gsara_t * | ctx, |
char * | data_buf, | ||
uint16_t | len | ||
) |
Generic write function.
c3gsara | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
C3GSARA_RETVAL c3gsara_init | ( | c3gsara_t * | ctx, |
c3gsara_cfg_t * | cfg | ||
) |
Initialization function.
c3gsara | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void c3gsara_module_power | ( | c3gsara_t * | ctx, |
uint8_t | power_state | ||
) |
Power module.
c3gsara | Click object. |
power_state | power state ( 1, 0 ). |
void c3gsara_send_command | ( | c3gsara_t * | ctx, |
char * | command | ||
) |
Send command.
c3gsara | Click object. |
command | Command to be send. |