btez 2.0.0.0
|
Functions | |
void | btez_cfg_setup (btez_cfg_t *cfg) |
Config Object Initialization function. | |
BTEZ_RETVAL | btez_init (btez_t *ctx, btez_cfg_t *cfg) |
Initialization function. | |
void | btez_module_reset (btez_t *ctx) |
Reset module. | |
void | btez_generic_write (btez_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int32_t | btez_generic_read (btez_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
void | btez_send_command (btez_t *ctx, char *command) |
Send command function. | |
void btez_cfg_setup | ( | btez_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
int32_t btez_generic_read | ( | btez_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len ) |
Generic read function.
btez | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
void btez_generic_write | ( | btez_t * | ctx, |
char * | data_buf, | ||
uint16_t | len ) |
Generic write function.
btez | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
BTEZ_RETVAL btez_init | ( | btez_t * | ctx, |
btez_cfg_t * | cfg ) |
Initialization function.
btez | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void btez_module_reset | ( | btez_t * | ctx | ) |
Reset module.
btez | Click object. |
void btez_send_command | ( | btez_t * | ctx, |
char * | command ) |
Send command function.
ctx | Click object. |
cmd_text | Data to be send. |