XFusion API v1.3.0
|
#include "xf_utils.h"
结构体 | |
struct | xf_ble_addr_t |
BLE 地址信息 更多... | |
struct | _xf_ble_uuid_info_t |
BLE UUID 信息 (多种长度类型通用) 更多... | |
struct | _xf_ble_uuid16_info_t |
BLE 16-bit UUID 信息 更多... | |
struct | _xf_ble_uuid32_info_t |
BLE 32-bit UUID 信息 更多... | |
struct | _xf_ble_uuid128_info_t |
BLE 128-bit UUID 信息 更多... | |
union | _xf_ble_var_uintptr_t |
BLE 中类型可变的数据 更多... | |
宏定义 | |
#define | XF_BLE_IS_ENABLE 1 |
#define | XF_BLE_ADDR_LEN 6 |
BLE 地址长度 | |
#define | XF_BLE_ADDR_PRINT_FMT "%02X:%02X:%02X:%02X:%02X:%02X" |
BLE 地址打印格式 | |
#define | XF_BLE_ADDR_EXPAND_TO_ARG(addr) (addr)[0],(addr)[1],(addr)[2],(addr)[3],(addr)[4],(addr)[5] |
BLE 地址展开为参数 | |
#define | _XF_BLE_UUID16_INIT(uuid16) |
#define | _XF_BLE_UUID32_INIT(uuid32) |
#define | _XF_BLE_UUID128_INIT(uuid128 ...) |
#define | XF_BLE_DECLARE_UUID16(uuid16) ((xf_ble_uuid_info_t *) (&(xf_ble_uuid16_info_t) _XF_BLE_UUID16_INIT(uuid16))) |
BLE 声明一个 16-bit UUID | |
#define | XF_BLE_DECLARE_UUID32(uuid32) ((xf_ble_uuid_info_t *) (&(xf_ble_uuid32_info_t) _XF_BLE_UUID32_INIT(uuid32))) |
BLE 声明一个 32-bit UUID | |
#define | XF_BLE_DECLARE_UUID128(uuid128...) ((xf_ble_uuid_info_t *) (&(xf_ble_uuid128_info_t) _XF_BLE_UUID128_INIT(uuid128))) |
BLE 声明一个 128-bit UUID | |
#define | XF_BLE_INVALID_ATTR_HANDLE (0x0000) |
BLE 无效属性句柄 | |
类型定义 | |
typedef struct __packed _xf_ble_uuid_info_t | xf_ble_uuid_info_t |
BLE UUID 信息 (多种长度类型通用) | |
typedef struct __packed _xf_ble_uuid16_info_t | xf_ble_uuid16_info_t |
BLE 16-bit UUID 信息 | |
typedef struct __packed _xf_ble_uuid32_info_t | xf_ble_uuid32_info_t |
BLE 32-bit UUID 信息 | |
typedef struct __packed _xf_ble_uuid128_info_t | xf_ble_uuid128_info_t |
BLE 128-bit UUID 信息 | |
typedef uint16_t | xf_ble_attr_handle_t |
BLE 属性句柄 | |
typedef union _xf_ble_var_uintptr_t | xf_ble_var_uintptr_t |
BLE 中类型可变的数据 | |