ble6 2.0.0.0
|
This file contains API for BLE 6 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_uart.h"
Go to the source code of this file.
Data Structures | |
struct | ble6_t |
BLE 6 Click context object. More... | |
struct | ble6_cfg_t |
BLE 6 Click configuration object. More... | |
struct | ble6_rsp_t |
Driver Default Response type. More... | |
struct | ble6_le_meta_event_t |
Driver Response Le Meta Event. More... | |
struct | ble6_rx_rsp_t |
Driver Response type. More... | |
Macros | |
#define | BLE6_MODULE_POWER_OFF 0x00 |
BLE 6 control commands. | |
#define | BLE6_MODULE_POWER_ON 0x01 |
#define | BLE6_DRV_BUFFER_SIZE 256 |
BLE 6 driver buffer size. | |
#define | BLE6_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Typedefs | |
typedef void(* | ble6_handler_t) (uint8_t *message_buf, uint32_t message_len) |
BLE 6 Click driver handler. | |
typedef void(* | ble6_hdl_t) (uint8_t *) |
BLE 6 Click driver handler. | |
Enumerations | |
enum | ble6_return_value_t { BLE6_OK = 0 , BLE6_ERROR = -1 } |
BLE 6 Click return value data. More... | |
Functions | |
void | ble6_cfg_setup (ble6_cfg_t *cfg) |
BLE 6 configuration object setup function. | |
err_t | ble6_init (ble6_t *ctx, ble6_cfg_t *cfg) |
BLE 6 initialization function. | |
err_t | ble6_generic_write (ble6_t *ctx, char *data_buf, uint16_t len) |
BLE 6 data writing function. | |
err_t | ble6_generic_read (ble6_t *ctx, char *data_buf, uint16_t max_len) |
BLE 6 data reading function. | |
int8_t | ble6_strncmp (uint8_t *string1, uint8_t *string2, uint8_t len) |
Lexicographically compares function. | |
uint8_t | ble6_byte_ready (ble6_t *ctx) |
Check for new byte received. | |
void | ble6_power_on (ble6_t *ctx, uint8_t en_pwr) |
Set Power On function. | |
void | ble6_send_command (ble6_t *ctx, uint8_t *tx_data, uint8_t n_bytes) |
Send command function. | |
void | ble6_set_response_handler (void(*handler)(uint8_t *), ble6_hdl_t driver_hdl) |
Set response handlers function. | |
void | ble6_set_handlers (ble6_handler_t event_handler, ble6_handler_t eve_hdlr) |
Set handlers function. | |
void | ble6_parser_rsp (ble6_t *ctx, ble6_rsp_t *response) |
Response parser function. | |
This file contains API for BLE 6 Click Driver.
enum ble6_return_value_t |