ble7 2.0.0.0
|
Functions | |
void | ble7_cfg_setup (ble7_cfg_t *cfg) |
Config Object Initialization function. | |
BLE7_RETVAL | ble7_init (ble7_t *ctx, ble7_cfg_t *cfg) |
Initialization function. | |
void | ble7_reset (ble7_t *ctx) |
Reset function. | |
void | ble7_generic_write (ble7_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int32_t | ble7_generic_read (ble7_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
void | ble7_send_command (ble7_t *ctx, char *command) |
Transmit function. | |
uint8_t | ble7_get_gp0 (ble7_t *ctx) |
GP0 Pin Getting function. | |
uint8_t | ble7_get_rts (ble7_t *ctx) |
RTS Pin Getting function. | |
void | ble7_set_gp1 (ble7_t *ctx, uint8_t state) |
GP1 Pin Setting function. | |
void | ble7_set_cts (ble7_t *ctx, uint8_t state) |
CTS Pin Setting function. | |
void ble7_cfg_setup | ( | ble7_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
int32_t ble7_generic_read | ( | ble7_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. |
@description This function read maximum length of data.
void ble7_generic_write | ( | ble7_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. |
@description This function write specific number of bytes
uint8_t ble7_get_gp0 | ( | ble7_t * | ctx | ) |
GP0 Pin Getting function.
ctx | Click object. |
@description This function checks state of the GP0 pin.
uint8_t ble7_get_rts | ( | ble7_t * | ctx | ) |
RTS Pin Getting function.
ctx | Click object. |
@description This function checks state of the RTS pin.
BLE7_RETVAL ble7_init | ( | ble7_t * | ctx, |
ble7_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void ble7_reset | ( | ble7_t * | ctx | ) |
Reset function.
@description This function allows user to reset BGX module.
void ble7_send_command | ( | ble7_t * | ctx, |
char * | command ) |
Transmit function.
ctx | Click object. |
tx_data | Data to be transmitted |
@description This function allows user to transmit data to the BGX module.
void ble7_set_cts | ( | ble7_t * | ctx, |
uint8_t | state ) |
CTS Pin Setting function.
ctx | Click object. |
state | 0 or 1 |
@description This function sets CTS pin to the desired state.
void ble7_set_gp1 | ( | ble7_t * | ctx, |
uint8_t | state ) |
GP1 Pin Setting function.
ctx | Click object. |
state | 0 or 1 |
@description This function sets GP1 pin to the desired state.