Microchip® Advanced Software Framework

ble_api.h File Reference

BLE API declarations.

Copyright (c) 2018 Microchip Technology Inc. and its subsidiaries.

Data Structures

struct  ble_characteristic_descriptors_discover_event_t
 BLEDK3 Discover all characteristic descriptors event parameters. More...
 
struct  ble_client_char_config_desc_t
 The client characteristic configuration descriptor attribute definition, used at ble_char_t. More...
 
struct  ble_config_mode_status_event_t
 BLEDK3 BLE Config mode status event parameters. More...
 
struct  ble_descriptor_attribute_data
 BLEDK3 Descriptor attribute data parameters used at ble_characteristic_descriptors_discover_event_t. More...
 
struct  ble_end_test_result_event_t
 BLEDK3 BLE end test result event parameters. More...
 
struct  ble_platform_api_list_t
 Platform APIs registration list used at platform_init_t. More...
 
struct  ble_primary_service_characteristics_discover_event_t
 BLEDK3 Discover primary service/characteristic event parameters. More...
 
struct  ble_primary_service_discover_all_event_t
 BLEDK3 Discover all primary service event parameters. More...
 
struct  ble_status_report_event_t
 BLEDK3 Status report event parameters. More...
 
struct  ble_uuid_t
 UUID. More...
 
union  ble_uuid_val_t
 UUID value. More...
 
struct  bm_cmd_frame_t
 
struct  char_desc_discovery_resp_t
 Discover descriptor response event parameters. More...
 
struct  event_mem_t
 Event memory init used at platform_init_t. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  PACKED
 Blue-tooth Low Energy address Type. More...
 
struct  platform_init_t
 Platform initialization, includes event memory init and platform APIs registration. More...
 

Macros

#define ADV_INTERVAL_100_MS   160
 
#define ADV_INTERVAL_1_S   1600 /* (1600 * 625 us) */
 
#define ADV_PARAM_DIRECT_ADDR_INDEX   4
 
#define ADV_PARAM_DIRECT_ADDR_TYPE_INDEX   3
 
#define ADV_PARAM_INTERVAL_INDEX_HIGH   0
 
#define ADV_PARAM_INTERVAL_INDEX_LOW   1
 
#define ADV_PARAM_TYPE_INDEX   2
 
#define AT_BLE_ADV_INTERVAL_MAX   0x4000
 Maximum Advertising interval in 625 us units, i.e. More...
 
#define AT_BLE_ADV_INTERVAL_MIN   0x0020
 Minimum Advertising interval in 625 us units, i.e. More...
 
#define BLE_ADDR_LEN   6
 
#define BLE_ATT_ATTRIBUTE_VALUE_LEN   23
 The Maximum Length of Attribute Value. More...
 
#define BLE_ATT_DEFAULT_MTU_LENGTH   23
 ATT default MTU size. More...
 
#define BLE_ATTRIB_UUID_LENGTH_16   16
 Characteristic properties. More...
 
#define BLE_ATTRIB_UUID_LENGTH_2   2
 BLE Attribute UUID lengths. More...
 
#define BLE_ATTRIB_UUID_LENGTH_4   4
 128-bit Bluetooth UUID. More...
 
#define BLE_CCCD_INDICATION_ENABLED   0x0002
 
#define BLE_CCCD_NOTIFICATION_ENABLED   0x0001
 
#define BLE_CCCD_UUID   0x2902
 DEFINES. More...
 
#define BLE_CHAR_BROADCST   (0x01 << 0)
 
#define BLE_CHAR_EXT_PROP_RELIABLE_WRITE   (0x0001 << 0)
 
#define BLE_CHAR_EXT_PROP_WRITABLE_AUX   (0x0001 << 1)
 
#define BLE_CHAR_EXT_PROPERTIES   (0x01 << 7)
 Characteristic extended properties. More...
 
#define BLE_CHAR_INDICATE   (0x01 << 5)
 
#define BLE_CHAR_NOTIFY   (0x01 << 4)
 
#define BLE_CHAR_READ   (0x01 << 1)
 
#define BLE_CHAR_SIGNED_WRITE   (0x01 << 6)
 
#define BLE_CHAR_WRITE   (0x01 << 3)
 
#define BLE_CHAR_WRITE_WITHOUT_RESPONSE   (0x01 << 2)
 
#define BLE_MAX_SERVICE_BUF_LEN   0x01FF
 
#define BLE_PAIR_CONFIRM_NO   false
 
#define BLE_PAIR_CONFIRM_YES   true
 
#define BLE_PM_MANUAL_READ_RESP   0x80
 Authorization Permission: Manual sending read response configuration. More...
 
#define BLE_PM_MANUAL_WRITE_RESP   0x40
 Authorization Permission: Manual sending write response configuration. More...
 
#define BLE_PM_SECURITY_READ_ENABLE   0x04
 Encryption/Authentication Permission on READ property attribute. More...
 
#define BLE_PM_SECURITY_WRITE_ENABLE   0x08
 Encryption/Authentication Permission on WRITE property attribute. More...
 
#define BLE_PM_WRITABLE   0x02
 < Attribute Permissions. More...
 
#define BLE_UUID_128B_LEN   (1 << BLE_UUID_128B)
 
#define BLE_UUID_16B_LEN   (1 << BLE_UUID_16B)
 
#define BM70_BLUETOOTH_DEVICE   2
 
#define BM77_BLUETOOTH_DEVICE   0
 
#define BM78_BLUETOOTH_DEVICE   1
 
#define BMXX_DEVICE   (BM70_BLUETOOTH_DEVICE)
 
#define MAX_CHAR_WRITE_VALUE   20
 
#define MAX_CONN_INTERVAL   0x0C80
 
#define MAX_SCAN_INTERVAL   0x4000
 
#define MAX_SCAN_WINDOW   0x4000
 
#define MAX_SLAVE_LATENCY   0x01F4
 
#define MAX_SV_TIMEOUT   0x0C80
 
#define MIN_CONN_INTERVAL   0x0006
 
#define MIN_SCAN_INTERVAL   0x0004
 
#define MIN_SCAN_WINDOW   0x0004
 
#define MIN_SLAVE_LATENCY   0x0000
 
#define MIN_SV_TIMEOUT   0x000A
 

Typedefs

typedef struct PACKED attrib_aggr_format_desc_t
 The Presentation format descriptor attribute definition. More...
 
typedef struct PACKED attrib_ccd_desc_t
 The Client Characteristic Configuration Descriptor attribute definition. More...
 
typedef struct PACKED attrib_char_t
 The characteristic attribute definition. More...
 
typedef struct PACKED attrib_char_value_t
 The characteristic value attribute definition. More...
 
typedef struct PACKED attrib_ext_prop_desc_t
 The Extended property descriptor attribute definition. More...
 
typedef struct PACKED attrib_pres_format_desc_t
 The Presentation format descriptor attribute definition. More...
 
typedef struct PACKED attrib_service_t
 The service attribute definition. More...
 
typedef struct PACKED attrib_user_desc_t
 The User descriptor attribute definition. More...
 
typedef struct PACKED ble_addr_t
 Blue-tooth Low Energy address Type. More...
 
typedef struct PACKED ble_adv_report_event_t
 BLEDK3 Advertisement report event parameters. More...
 
typedef uint8_t ble_attr_permissions_t
 
typedef struct PACKED ble_char_ext_properties_t
 The characteristic extended properties descriptor attribute definition, used at ble_char_t. More...
 
typedef struct PACKED ble_char_presentation_format_t
 The characteristic presentation format descriptor attribute definition, used at ble_char_t. More...
 
typedef uint8_t ble_char_properties_t
 
typedef struct PACKED ble_char_t
 The characteristic attribute definition, used at ble_service_t. More...
 
typedef struct PACKED ble_char_val_t
 The characteristic value attribute definition, used at ble_char_t. More...
 
typedef struct PACKED ble_characteristic_attribute_data
 BLEDK3 Characteristic attribute data parameters used at ble_primary_service_characteristics_discover_event_t. More...
 
typedef struct PACKED ble_characteristic_value_received_event_t
 BLEDK3 Characteristic value received event parameters. More...
 
typedef struct PACKED ble_characteristic_value_write_event_t
 
typedef struct PACKED ble_cmd_complete_event_t
 BLEDK3 Command complete event parameters. More...
 
typedef struct PACKED ble_conn_complete_event_t
 BLEDK3 Connection complete event parameters. More...
 
typedef struct PACKED ble_conn_param_t
 BLE Connection parameters. More...
 
typedef struct PACKED ble_conn_param_update_event_t
 BLEDK3 Connection parameter update event parameters. More...
 
typedef struct PACKED ble_disconnect_complete_event_t
 BLEDK3 Disconnect complete event parameters. More...
 
typedef struct PACKED ble_enable_transparent_uart_t
 BLEDK3 Enable TransparentUART command parameters. More...
 
typedef struct PACKED ble_generic_att_private_desc_t
 The private descriptor attribute definition. More...
 
typedef struct PACKED ble_generic_att_public_desc_t
 The public descriptor attribute definition. More...
 
typedef struct PACKED ble_generic_desc_t
 The generic descriptor attribute definition, used at ble_char_t. More...
 
typedef uint16_t ble_handle_t
 
typedef bool ble_pair_confirm_t
 
typedef struct PACKED ble_rand_addr_changed_t
 
typedef
ble_client_char_config_desc_t 
ble_server_char_config_desc_t
 The server characteristic configuration descriptor attribute definition, used at ble_char_t. More...
 
typedef struct PACKED ble_service_attribute_data
 BLEDK3 Service attribute data parameters used at ble_primary_service_discover_all_event_t. More...
 
typedef struct PACKED ble_service_t
 The service attribute definition. More...
 
typedef struct PACKED ble_set_conn_param_t
 BLEDK3 Set connection parameter command parameters. More...
 
typedef struct PACKED ble_transparent_uart_data_received_event_t
 BLEDK3 TransparentUART data received event parameters. More...
 
typedef struct PACKED ble_transparent_uart_data_write_event_t
 
typedef struct PACKED ble_user_desc_t
 The user descriptor attribute definition, used at ble_char_t. More...
 
typedef struct PACKED ble_write_char_value_event_t
 BLEDK3 Write characteristic value event parameters. More...
 
typedef BM_APPLICATION_EVENT_OPCODE bm_app_event_opcode_t
 
typedef void *(* create_timer_cb_t )(void(*)(void *))
 Create timer callback type. More...
 
typedef void(* delete_timer_cb_t )(void *)
 Delete timer callback type. More...
 
typedef void(* gpio_set_cb_t )(gpio_pin_t, gpio_status_t)
 GPIO set callback type. More...
 
typedef void(* mode_get_cb_t )(BM_MODE *)
 Mode get callback type. More...
 
typedef void(* mode_set_cb_t )(BM_MODE)
 Mode set callback type. More...
 
typedef struct PACKED primary_service_char_discovery_resp_t
 Discover service, characteristic response event parameters. More...
 
typedef void(* sleep_timer_cb_t )(uint32_t)
 Sleep timer callback type. More...
 
typedef void(* start_timer_cb_t )(void *, uint32_t)
 Start timer callback type. More...
 
typedef void(* stop_timer_cb_t )(void *)
 Stop timer callback type. More...
 
typedef void(* uart_read_async_cb_t )(void(*)(uint16_t))
 UART read asynchronous callback type. More...
 
typedef void(* uart_recv_async_cb_t )(uint16_t)
 UART receive asynchronous callback type. More...
 
typedef void(* uart_write_sync_cb_t )(uint8_t *, uint32_t)
 UART write synchronous callback type. More...
 

Enumerations

enum  {
  PASSKEY_ENTRY_REQ = 0x60,
  PAIRING_COMPLETE,
  PASSKEY_CONFIRM_REQ,
  ADV_REPORT = 0x70,
  CONNECTION_COMPLETE,
  DISCONNECTION_COMPLETE,
  CONN_PARAM_UPDATE_NOTIFY,
  COMMAND_COMPLETE = 0x80,
  STATUS_REPORT,
  CONFIG_MODE_STATUS,
  DISCOVER_ALL_PRIMARY_SERVICE_RESP = 0x90,
  DISCOVER_SPECIFIC_PRIMARY_SERVICE_CHAR_RESP,
  DISCOVER_ALL_CHAR_DESCRIPTOR_RESP,
  CHAR_VALUE_RECEIVED,
  CLIENT_WRITE_CHAR_VALUE = 0x98,
  RECEIVED_TRANSPARENT_DATA = 0x9A
}
 BLEDK3 events. More...
 
enum  ble_addr_type_t {
  BLE_ADDRESS_PUBLIC,
  BLE_ADDRESS_RANDOM_STATIC,
  BLE_ADDRESS_RANDOM_PRIVATE_RESOLVABLE,
  BLE_ADDRESS_RANDOM_PRIVATE_NON_RESOLVABLE
}
 BLE can accept to kinds of addresses, either public or random addresses. More...
 
enum  ble_adv_event_type_t {
  ADV_IND,
  ADV_DIRECT_IND,
  ADV_SCAN_IND,
  ADV_NONCONN_IND,
  SCAN_RESP
}
 BLEDK3 advertisement event type used at ble_adv_report_event_t. More...
 
enum  ble_adv_mode_t {
  BLE_ADV_NON_DISCOVERABLE,
  BLE_ADV_GEN_DISCOVERABLE,
  BLE_ADV_LIM_DISCOVERABLE,
  BLE_ADV_BROADCASTER_MODE
}
 Advertising Mode. More...
 
enum  ble_adv_type_t {
  BLE_ADV_TYPE_UNDIRECTED = 0x00,
  BLE_ADV_TYPE_DIRECTED,
  BLE_ADV_TYPE_SCANNABLE_UNDIRECTED,
  BLE_ADV_TYPE_NONCONN_UNDIRECTED,
  BLE_ADV_TYPE_DIRECTED_LDC,
  BLE_ADV_TYPE_SCAN_RESPONSE
}
 Advertising Types. More...
 
enum  ble_char_ext_prop_t {
  BLE_EXT_PROP_RELIABLE_WRITE = 0x0001,
  BLE_EXT_PROP_WRITABLE_AUX
}
 Characteristic extended properties used at ble_char_ext_properties_t. More...
 
enum  ble_char_pres_format_t {
  BLE_PRES_FORMAT_BOOLEAN = 0x01,
  BLE_PRES_FORMAT_2BIT = 0x02,
  BLE_PRES_FORMAT_NIBBLE = 0x03,
  BLE_PRES_FORMAT_UINT8 = 0x04,
  BLE_PRES_FORMAT_UINT12 = 0x05,
  BLE_PRES_FORMAT_UINT16 = 0x06,
  BLE_PRES_FORMAT_UINT24 = 0x07,
  BLE_PRES_FORMAT_UINT32 = 0x08,
  BLE_PRES_FORMAT_UINT48 = 0x09,
  BLE_PRES_FORMAT_UINT64 = 0x0A,
  BLE_PRES_FORMAT_UINT128 = 0x0B,
  BLE_PRES_FORMAT_SINT8 = 0x0C,
  BLE_PRES_FORMAT_SINT12 = 0x0D,
  BLE_PRES_FORMAT_SINT16 = 0x0E,
  BLE_PRES_FORMAT_SINT24 = 0x0F,
  BLE_PRES_FORMAT_SINT32 = 0x10,
  BLE_PRES_FORMAT_SINT48 = 0x11,
  BLE_PRES_FORMAT_SINT64 = 0x12,
  BLE_PRES_FORMAT_SINT128 = 0x13,
  BLE_PRES_FORMAT_FLOAT32 = 0x14,
  BLE_PRES_FORMAT_FLOAT64 = 0x15,
  BLE_PRES_FORMAT_SFLOAT = 0x16,
  BLE_PRES_FORMAT_FLOAT = 0x17,
  BLE_PRES_FORMAT_DUINT16 = 0x18,
  BLE_PRES_FORMAT_UTF8S = 0x19,
  BLE_PRES_FORMAT_UTF16S = 0x1A,
  BLE_PRES_FORMAT_STRUCT = 0x1B
}
 Characteristic presentation format used at ble_char_presentation_format_t. More...
 
enum  ble_config_mode_status_t {
  CONFIG_MODE_DISABLED,
  CONFIG_MODE_ENABLED
}
 
enum  ble_connection_filter_t {
  BLE_CONN_WHITELIST_FILTER_DISABLED,
  BLE_CONN_WHITELIST_FILTER_ENABLED
}
 Connection filter used at ble_create_connection. More...
 
enum  ble_event_types_t {
  GAP_EVENT_HANDLERS,
  GATT_SERVER_EVENT_HANDLERS,
  GATT_CLIENT_EVENT_HANDLERS,
  COMMON_EVENT_HANDLERS,
  TRANSPARENT_EVENT_HANDLERS
}
 Event Types. More...
 
enum  ble_public_uuids_t {
  UUID_PRIMARY_SERVICE = 0x2800,
  UUID_SECONDARY_SERVICE,
  UUID_INCLUDE,
  UUID_CHARACTERISTIC
}
 GATT UUIDs defined by SIG. More...
 
enum  ble_scan_duplicate_filter_t {
  BLE_SCAN_DUPLICATE_FILTER_DISABLED,
  BLE_SCAN_DUPLICATE_FILTER_ENABLED
}
 Scan filter duplicate used at ble_scan_start. More...
 
enum  ble_scan_enable_t {
  BLE_SCAN_DISABLED,
  BLE_SCAN_ENABLED
}
 Scan enable used at ble_scan_start. More...
 
enum  ble_scan_type_t {
  BLE_SCAN_PASSIVE,
  BLE_SCAN_ACTIVE
}
 Scan types used at ble_scan_param_set. More...
 
enum  ble_service_type_t {
  SECONDARY_SERVICE,
  PRIMARY_SERVICE
}
 Service type used at ble_service_t. More...
 
enum  ble_status_t {
  BLE_SUCCESS = 0x00,
  BLE_UNKNOWN_COMMAND,
  BLE_UNKNOWN_CONNECTION_ID,
  BLE_HARDWARE_FAILURE,
  BLE_AUTHENTICATION_FAILURE = 0x05,
  BLE_PIN_KEY_MISSING,
  BLE_MEMORY_CAPACITY_EXCEEDED,
  BLE_CONNECTION_TIMEOUT,
  BLE_CONNECTION_LIMIT_EXCEEDED,
  BLE_ACL_CONNECTION_ALREADY_EXISTS = 0x0B,
  BLE_COMMAND_DISALLOWED,
  BLE_CONNECTION_REJECTED_DUE_TO_LIMITED_RESOURCES,
  BLE_CONNECTION_REJECTED_DUE_TO_SECURITY_REASONS,
  BLE_CONNECTION_REJECTED_DUE_TO_UNACCEPTABLE_BD_ADDR,
  BLE_CONNECTION_ACCEPT_TIMEOUT_EXCEEDED,
  BLE_UNSUPPORTED_FEATURE_OR_PARAMETER_VALUE,
  BLE_INVALID_COMMAND_PARAMETERS,
  BLE_REMOTE_USER_TERMINATED_CONNECTION,
  BLE_REMOTE_USER_TERMINATED_CONNECTION_DUE_TO_LOW_RESOURCES,
  BLE_REMOTE_USER_TERMINATED_CONNECTION_DUE_TO_POWER_OFF,
  BLE_CONNECTION_TERMINATED_BY_LOCAL_HOST,
  BLE_PAIRING_NOT_ALLOWED = 0x18,
  BLE_UNSPECIFIED_ERROR = 0x1F,
  BLE_INSTANT_PASSED = 0x28,
  BLE_PAIRING_WITH_UINT_KEY_NOT_SUPPORTED = 0x29,
  BLE_INSUFFICIENT_SECURITY = 0x2F,
  BLE_CONNECTION_REJECTED_DUE_TO_NO_SUITABLE_CHANNEL_FOUND = 0x39,
  BLE_CONTROLLER_BUSY,
  BLE_UNACCEPTABLE_CONNECTION_INTERVAL,
  BLE_DIRECTED_ADVERTISING_TIMEOUT,
  BLE_CONNECTION_TERMINATED_DUE_TO_MIC_FAILURE,
  BLE_CONNECTION_FAILED_TO_BE_ESTABLISHED,
  BLE_INVALID_HANDLE = 0x81,
  BLE_READ_NOT_PERMITTED,
  BLE_WRITE_NOT_PERMITTED,
  BLE_INVALID_PDU,
  BLE_INSUFFICIENT_AUTHENTICATION,
  BLE_REQUEST_NOT_SUPPORTED,
  BLE_INVALID_OFFSET,
  BLE_INSUFFICIENT_AUTHORIZATION = 0x88,
  BLE_PREPARE_QUEUE_FULL,
  BLE_ATTRIBUTE_NOT_FOUND,
  BLE_ATTRIBUTE_NOT_LONG,
  BLE_INSUFFICIENT_ENCRYPTION_KEY_SIZE,
  BLE_INVALID_ATTRIBUTE_VALUE_LENGTH,
  BLE_UNLIKELY_ERROR,
  BLE_INSUFFICIENT_ENCRYPTION,
  BLE_UNSUPPORTED_GROUT_TYPE,
  BLE_INSUFFICIENT_RESOURCES,
  BLE_APPLICATION_DEFINED_ERROR = 0xF0,
  BLE_FAILURE,
  BLE_UART_TIMEOUT,
  BLE_UART_CRC_ERROR = 0xFF
}
 BLE Host SDK status messages. More...
 
enum  ble_uuid_type_t {
  BLE_UUID_16B = 1,
  BLE_UUID_128B = 4,
  BLE_UUID_INVALID
}
 
enum  bledk3_status_t {
  SCANNING_MODE = 0x01,
  CONNECTING_MODE,
  STANDBY_MODE,
  BROADCAST_MODE = 0x05,
  TRANSPARENT_SERVICE_ENABLED_MODE = 0x08,
  IDLE_MODE,
  SHUTDOWN_MODE,
  CONFIGURE_MODE,
  BLE_CONNECTED_MODE
}
 BLEDK3 status. More...
 
enum  gatt_descriptors_uuid_t {
  CHAR_EXTENDED_PROPERTIES = 0x2900,
  CHAR_USER_DESCRIPTION,
  CLIENT_CHAR_CONFIGURATION,
  SERVER_CHAR_CONFIGURATION,
  CHAR_PRESENTATION_FORMAT,
  CHAR_AGGREGATE_FORMAT,
  VALID_RANGE,
  EXTERNAL_REPORT_REFERENCE,
  REPORT_REFERENCE,
  NUMBER_OF_DIGITALS,
  VALUE_TRIGGER_SETTING,
  ENVIRONMENTAL_SENSING_CONFIGURATION,
  ENVIRONMENTAL_SENSING_MEASUREMENT,
  ENVIRONMENTAL_SENSING_TRIGGER_SETTING,
  TIME_TRIGGER_SETTING
}
 GATT Descriptor UUID defined by SIG. More...
 
enum  gpio_pin_t {
  BM7X_PIN_RESET,
  BM7X_PIN_MODE,
  BM7X_PIN_TX_IND,
  BM7X_PIN_RX_IND
}
 BLEDK3 status. More...
 
enum  gpio_status_t {
  GPIO_LOW,
  GPIO_HIGH
}
 

Functions

ble_status_t ble_adv_data_set (uint8_t const *adv_data, uint8_t adv_data_len)
 
ble_status_t ble_adv_param_set (BM_ADV_TYPE type, ble_addr_t *peer_addr, uint16_t interval)
 
ble_status_t ble_adv_start (void)
 
ble_status_t ble_adv_stop (void)
 
ble_status_t ble_cancel_connection (void)
 
ble_status_t ble_characteristic_attribute_read_request (ble_handle_t conn_handle, ble_handle_t characteristic_handle, uint16_t offset)
 
ble_status_t ble_characteristic_attribute_read_response (ble_handle_t conn_handle, ble_handle_t characteristic_handle, uint8_t *data, uint16_t length)
 
ble_status_t ble_characteristic_read (ble_handle_t conn_handle, ble_handle_t characteristic_handle, void *data, uint16_t *data_len)
 
ble_status_t ble_characteristic_read_by_uuid (ble_handle_t conn_handle, ble_uuid_t *characteristic_uuid, void *data, uint16_t *data_len)
 
ble_status_t ble_characteristic_reliable_write_request_cancel (ble_handle_t conn_handle)
 
ble_status_t ble_characteristic_reliable_write_request_execute (ble_handle_t conn_handle)
 
ble_status_t ble_characteristic_reliable_write_request_prepare (ble_handle_t conn_handle, ble_handle_t characteristic_handle, uint16_t offset, uint8_t *data, uint16_t length)
 
ble_status_t ble_characteristic_reliable_write_response_execute (ble_handle_t conn_handle)
 
ble_status_t ble_characteristic_reliable_write_response_prepare (ble_handle_t conn_handle, ble_handle_t characteristic_handle, uint16_t offset, uint8_t *data, uint16_t length)
 
ble_status_t ble_characteristic_value_read (ble_handle_t characteristic_handle, void *data, uint16_t *data_len)
 
ble_status_t ble_characteristic_value_send (ble_handle_t conn_handle, ble_handle_t characteristic_handle, uint8_t *data, uint16_t length)
 
ble_status_t ble_characteristic_value_update (ble_handle_t characteristic_handle, uint8_t *data, uint16_t length)
 
ble_status_t ble_characteristic_write_with_response (ble_handle_t conn_handle, ble_handle_t characteristic_handle, uint8_t *data, uint16_t length)
 
ble_status_t ble_characteristic_write_without_respose (ble_handle_t conn_handle, ble_handle_t characteristic_handle, uint8_t *data, uint16_t length)
 
ble_status_t ble_create_connection (ble_connection_filter_t conn_filter, ble_addr_t *address)
 
void ble_disconnect_device (uint8_t conn_handle)
 
ble_status_t ble_error_response_send (ble_handle_t conn_handle, ble_handle_t characteristic_handle, uint8_t req_opcode, uint8_t err_code)
 
void ble_event_cb_handler (bm_cmd_frame_t *bm_cmd)
 
ble_status_t ble_gatt_service_create (ble_service_t *ble_service)
 
ble_status_t ble_gatt_service_read (ble_service_t *ble_service)
 
ble_status_t ble_init (platform_init_t *platform_init)
 
ble_status_t ble_pair_device_delete (uint8_t index)
 
ble_status_t ble_pair_device_erase_all (void)
 
ble_status_t ble_pair_mode_get (void)
 
ble_status_t ble_pair_mode_set (BM_PAIR_MODE mode)
 
ble_status_t ble_pair_passkey_clear (ble_handle_t conn_handle)
 
ble_status_t ble_pair_passkey_confirm (ble_handle_t conn_handle, ble_pair_confirm_t confirm)
 
ble_status_t ble_pair_passkey_enter (ble_handle_t conn_handle, uint8_t *passkey, uint8_t length)
 
ble_status_t ble_pair_passkey_erase_digits (ble_handle_t conn_handle, uint8_t length)
 
ble_status_t ble_pair_passkey_reply (ble_handle_t conn_handle)
 
ble_status_t ble_pair_request (ble_handle_t conn_handle)
 
ble_status_t ble_primary_service_characteristics_discover (ble_handle_t conn_handle, ble_uuid_t *service_uuid)
 
ble_status_t ble_primary_service_characteristics_read (ble_uuid_t *service_uuid)
 
ble_status_t ble_primary_service_discover_all (ble_handle_t conn_handle)
 
ble_status_t ble_primary_service_read_all (void)
 
ble_status_t ble_read_response_send (ble_handle_t conn_handle, uint8_t rsp_type, uint8_t *data, uint16_t length)
 
ble_status_t ble_rssi_read (uint8_t conn_handle, uint8_t *rssi)
 
ble_status_t ble_scan_param_set (uint16_t scan_interval, uint16_t scan_window, ble_scan_type_t scan_type)
 
ble_status_t ble_scan_resp_data_set (uint8_t const *scan_data, uint8_t scan_data_len)
 
ble_status_t ble_scan_start (ble_scan_enable_t scan_enable, ble_scan_duplicate_filter_t scan_dup_filter)
 
ble_status_t ble_set_connection_params (ble_set_conn_param_t *conn_params)
 
ble_status_t ble_set_device_name (const uint8_t *device_name, uint8_t length)
 
ble_status_t ble_shutdown (void)
 
ble_status_t ble_transparent_uart_data_send (ble_handle_t conn_handle, uint8_t *data, uint8_t datalen)
 
ble_status_t ble_transparent_uart_enable (ble_enable_transparent_uart_t *enable_transparent_uart)
 
ble_status_t ble_update_connection_parameters (uint8_t conn_handle, ble_conn_param_t *conn_param)
 
ble_status_t ble_write_response_send (ble_handle_t conn_handle, ble_handle_t attr_handle, uint8_t err_code)
 
uint8_t interface_process_fifo_data (void)
 
void register_ble_event_cb_handlers (ble_event_types_t event_type, const void *event_handler)
 

#define ADV_INTERVAL_100_MS   160
#define ADV_INTERVAL_1_S   1600 /* (1600 * 625 us) */
#define ADV_PARAM_DIRECT_ADDR_INDEX   4

Referenced by ble_adv_param_set().

#define ADV_PARAM_DIRECT_ADDR_TYPE_INDEX   3

Referenced by ble_adv_param_set().

#define ADV_PARAM_INTERVAL_INDEX_HIGH   0

Referenced by ble_adv_param_set().

#define ADV_PARAM_INTERVAL_INDEX_LOW   1

Referenced by ble_adv_param_set().

#define ADV_PARAM_TYPE_INDEX   2

Referenced by ble_adv_param_set().

#define AT_BLE_ADV_INTERVAL_MAX   0x4000

Maximum Advertising interval in 625 us units, i.e.

10.24 s.

Referenced by ble_adv_param_set().

#define AT_BLE_ADV_INTERVAL_MIN   0x0020

Minimum Advertising interval in 625 us units, i.e.

20 ms.

Referenced by ble_adv_param_set().

#define BLE_ADDR_LEN   6
#define BLE_ATT_ATTRIBUTE_VALUE_LEN   23

The Maximum Length of Attribute Value.

Refer to ATT default MTU size.

Referenced by ble_gatt_service_create().

#define BLE_ATT_DEFAULT_MTU_LENGTH   23

ATT default MTU size.

#define BLE_ATTRIB_UUID_LENGTH_16   16

Characteristic properties.

#define BLE_ATTRIB_UUID_LENGTH_2   2

BLE Attribute UUID lengths.

< 16-bit Bluetooth UUID. 32-bit Bluetooth UUID.

Referenced by ble_gatt_service_create().

#define BLE_ATTRIB_UUID_LENGTH_4   4

128-bit Bluetooth UUID.

#define BLE_CCCD_INDICATION_ENABLED   0x0002
#define BLE_CCCD_NOTIFICATION_ENABLED   0x0001
#define BLE_CCCD_UUID   0x2902

DEFINES.

#define BLE_CHAR_BROADCST   (0x01 << 0)
#define BLE_CHAR_EXT_PROP_RELIABLE_WRITE   (0x0001 << 0)
#define BLE_CHAR_EXT_PROP_WRITABLE_AUX   (0x0001 << 1)
#define BLE_CHAR_EXT_PROPERTIES   (0x01 << 7)

Characteristic extended properties.

#define BLE_CHAR_INDICATE   (0x01 << 5)
#define BLE_CHAR_NOTIFY   (0x01 << 4)
#define BLE_CHAR_READ   (0x01 << 1)
#define BLE_CHAR_SIGNED_WRITE   (0x01 << 6)
#define BLE_CHAR_WRITE   (0x01 << 3)
#define BLE_CHAR_WRITE_WITHOUT_RESPONSE   (0x01 << 2)
#define BLE_MAX_SERVICE_BUF_LEN   0x01FF

Referenced by ble_gatt_service_create().

#define BLE_PAIR_CONFIRM_NO   false
#define BLE_PAIR_CONFIRM_YES   true
#define BLE_PM_MANUAL_READ_RESP   0x80

Authorization Permission: Manual sending read response configuration.

Application can send read response with data manually.

#define BLE_PM_MANUAL_WRITE_RESP   0x40

Authorization Permission: Manual sending write response configuration.

Application can send write response manually.

#define BLE_PM_SECURITY_READ_ENABLE   0x04

Encryption/Authentication Permission on READ property attribute.

If enabled, it requires pairing to device to access the attribute. Note that Encryption or Authentication permission is based on IO capability of device.

#define BLE_PM_SECURITY_WRITE_ENABLE   0x08

Encryption/Authentication Permission on WRITE property attribute.

If enabled, it requires pairing to device to access the attribute. Note that Encryption or Authentication permission is based on IO capability of device.

#define BLE_PM_WRITABLE   0x02

< Attribute Permissions.

All attributes are readable as default. Access Permission: Writeable.

Referenced by acc_gyro_sensor_service_init().

#define BM70_BLUETOOTH_DEVICE   2
#define BM77_BLUETOOTH_DEVICE   0
#define BM78_BLUETOOTH_DEVICE   1
#define BMXX_DEVICE   (BM70_BLUETOOTH_DEVICE)
#define MAX_CHAR_WRITE_VALUE   20
#define MAX_CONN_INTERVAL   0x0C80
#define MAX_SCAN_INTERVAL   0x4000

Referenced by ble_scan_param_set().

#define MAX_SCAN_WINDOW   0x4000

Referenced by ble_scan_param_set().

#define MAX_SLAVE_LATENCY   0x01F4
#define MAX_SV_TIMEOUT   0x0C80
#define MIN_CONN_INTERVAL   0x0006
#define MIN_SCAN_INTERVAL   0x0004

Referenced by ble_scan_param_set().

#define MIN_SCAN_WINDOW   0x0004

Referenced by ble_scan_param_set().

#define MIN_SLAVE_LATENCY   0x0000
#define MIN_SV_TIMEOUT   0x000A

The Presentation format descriptor attribute definition.

This will be used as part of GATT-Service Create request

typedef struct PACKED attrib_ccd_desc_t

The Client Characteristic Configuration Descriptor attribute definition.

This will be used as part of GATT-Service Create request

typedef struct PACKED attrib_char_t

The characteristic attribute definition.

This will be used as part of GATT-Service Create request

typedef struct PACKED attrib_char_value_t

The characteristic value attribute definition.

This will be used as part of GATT-Service Create request

The Extended property descriptor attribute definition.

This will be used as part of GATT-Service Create request

The Presentation format descriptor attribute definition.

This will be used as part of GATT-Service Create request

typedef struct PACKED attrib_service_t

The service attribute definition.

This will be used as part of GATT-Service Create request

typedef struct PACKED attrib_user_desc_t

The User descriptor attribute definition.

This will be used as part of GATT-Service Create request

typedef struct PACKED ble_addr_t

Blue-tooth Low Energy address Type.

BLEDK3 Advertisement report event parameters.

typedef uint8_t ble_attr_permissions_t

The characteristic extended properties descriptor attribute definition, used at ble_char_t.

The characteristic presentation format descriptor attribute definition, used at ble_char_t.

typedef uint8_t ble_char_properties_t
typedef struct PACKED ble_char_t

The characteristic attribute definition, used at ble_service_t.

typedef struct PACKED ble_char_val_t

The characteristic value attribute definition, used at ble_char_t.

BLEDK3 Characteristic attribute data parameters used at ble_primary_service_characteristics_discover_event_t.

BLEDK3 Characteristic value received event parameters.

BLEDK3 Command complete event parameters.

BLEDK3 Connection complete event parameters.

typedef struct PACKED ble_conn_param_t

BLE Connection parameters.

BLEDK3 Connection parameter update event parameters.

BLEDK3 Disconnect complete event parameters.

BLEDK3 Enable TransparentUART command parameters.

The private descriptor attribute definition.

This will be used as part of GATT-Service Create request

The public descriptor attribute definition.

This will be used as part of GATT-Service Create request

typedef struct PACKED ble_generic_desc_t

The generic descriptor attribute definition, used at ble_char_t.

typedef uint16_t ble_handle_t

The server characteristic configuration descriptor attribute definition, used at ble_char_t.

BLEDK3 Service attribute data parameters used at ble_primary_service_discover_all_event_t.

typedef struct PACKED ble_service_t

The service attribute definition.

typedef struct PACKED ble_set_conn_param_t

BLEDK3 Set connection parameter command parameters.

BLEDK3 TransparentUART data received event parameters.

typedef struct PACKED ble_user_desc_t

The user descriptor attribute definition, used at ble_char_t.

BLEDK3 Write characteristic value event parameters.

typedef void*(* create_timer_cb_t)(void(*)(void *))

Create timer callback type.

typedef void(* delete_timer_cb_t)(void *)

Delete timer callback type.

typedef void(* gpio_set_cb_t)(gpio_pin_t, gpio_status_t)

GPIO set callback type.

typedef void(* mode_get_cb_t)(BM_MODE *)

Mode get callback type.

typedef void(* mode_set_cb_t)(BM_MODE)

Mode set callback type.

Discover service, characteristic response event parameters.

typedef void(* sleep_timer_cb_t)(uint32_t)

Sleep timer callback type.

typedef void(* start_timer_cb_t)(void *, uint32_t)

Start timer callback type.

typedef void(* stop_timer_cb_t)(void *)

Stop timer callback type.

typedef void(* uart_read_async_cb_t)(void(*)(uint16_t))

UART read asynchronous callback type.

typedef void(* uart_recv_async_cb_t)(uint16_t)

UART receive asynchronous callback type.

typedef void(* uart_write_sync_cb_t)(uint8_t *, uint32_t)

UART write synchronous callback type.

anonymous enum

BLEDK3 events.

Enumerator
PASSKEY_ENTRY_REQ 
PAIRING_COMPLETE 
PASSKEY_CONFIRM_REQ 
ADV_REPORT 
CONNECTION_COMPLETE 
DISCONNECTION_COMPLETE 
CONN_PARAM_UPDATE_NOTIFY 
COMMAND_COMPLETE 
STATUS_REPORT 
CONFIG_MODE_STATUS 
DISCOVER_ALL_PRIMARY_SERVICE_RESP 
DISCOVER_SPECIFIC_PRIMARY_SERVICE_CHAR_RESP 
DISCOVER_ALL_CHAR_DESCRIPTOR_RESP 
CHAR_VALUE_RECEIVED 
CLIENT_WRITE_CHAR_VALUE 
RECEIVED_TRANSPARENT_DATA 

BLE can accept to kinds of addresses, either public or random addresses.

Enumerator
BLE_ADDRESS_PUBLIC 

a public static address

BLE_ADDRESS_RANDOM_STATIC 

a random static address

BLE_ADDRESS_RANDOM_PRIVATE_RESOLVABLE 

resolvable private random address

BLE_ADDRESS_RANDOM_PRIVATE_NON_RESOLVABLE 

non-resolvable private random address

BLEDK3 advertisement event type used at ble_adv_report_event_t.

Enumerator
ADV_IND 
ADV_DIRECT_IND 
ADV_SCAN_IND 
ADV_NONCONN_IND 
SCAN_RESP 

Advertising Mode.

Enumerator
BLE_ADV_NON_DISCOVERABLE 
BLE_ADV_GEN_DISCOVERABLE 
BLE_ADV_LIM_DISCOVERABLE 
BLE_ADV_BROADCASTER_MODE 

Advertising Types.

Enumerator
BLE_ADV_TYPE_UNDIRECTED 

Connectable undirected.

BLE_ADV_TYPE_DIRECTED 

Connectable high duty cycle directed advertising.

BLE_ADV_TYPE_SCANNABLE_UNDIRECTED 

Scannable undirected.

BLE_ADV_TYPE_NONCONN_UNDIRECTED 

Non connectable undirected.

BLE_ADV_TYPE_DIRECTED_LDC 

Connectable low duty cycle directed advertising.

BLE_ADV_TYPE_SCAN_RESPONSE 

only used in BLE_SCAN_INFO event to signify a scan response

Characteristic extended properties used at ble_char_ext_properties_t.

Enumerator
BLE_EXT_PROP_RELIABLE_WRITE 
BLE_EXT_PROP_WRITABLE_AUX 

Characteristic presentation format used at ble_char_presentation_format_t.

Enumerator
BLE_PRES_FORMAT_BOOLEAN 
BLE_PRES_FORMAT_2BIT 
BLE_PRES_FORMAT_NIBBLE 
BLE_PRES_FORMAT_UINT8 
BLE_PRES_FORMAT_UINT12 
BLE_PRES_FORMAT_UINT16 
BLE_PRES_FORMAT_UINT24 
BLE_PRES_FORMAT_UINT32 
BLE_PRES_FORMAT_UINT48 
BLE_PRES_FORMAT_UINT64 
BLE_PRES_FORMAT_UINT128 
BLE_PRES_FORMAT_SINT8 
BLE_PRES_FORMAT_SINT12 
BLE_PRES_FORMAT_SINT16 
BLE_PRES_FORMAT_SINT24 
BLE_PRES_FORMAT_SINT32 
BLE_PRES_FORMAT_SINT48 
BLE_PRES_FORMAT_SINT64 
BLE_PRES_FORMAT_SINT128 
BLE_PRES_FORMAT_FLOAT32 
BLE_PRES_FORMAT_FLOAT64 
BLE_PRES_FORMAT_SFLOAT 
BLE_PRES_FORMAT_FLOAT 
BLE_PRES_FORMAT_DUINT16 
BLE_PRES_FORMAT_UTF8S 
BLE_PRES_FORMAT_UTF16S 
BLE_PRES_FORMAT_STRUCT 
Enumerator
CONFIG_MODE_DISABLED 
CONFIG_MODE_ENABLED 

Connection filter used at ble_create_connection.

Enumerator
BLE_CONN_WHITELIST_FILTER_DISABLED 
BLE_CONN_WHITELIST_FILTER_ENABLED 

Event Types.

Enumerator
GAP_EVENT_HANDLERS 
GATT_SERVER_EVENT_HANDLERS 
GATT_CLIENT_EVENT_HANDLERS 
COMMON_EVENT_HANDLERS 
TRANSPARENT_EVENT_HANDLERS 

GATT UUIDs defined by SIG.

Enumerator
UUID_PRIMARY_SERVICE 

Primary Service Declaration.

Secondary Service Declaration.

UUID_SECONDARY_SERVICE 

Include Declaration.

UUID_INCLUDE 

Characteristic Declaration.

UUID_CHARACTERISTIC 

Scan filter duplicate used at ble_scan_start.

Enumerator
BLE_SCAN_DUPLICATE_FILTER_DISABLED 
BLE_SCAN_DUPLICATE_FILTER_ENABLED 

Scan enable used at ble_scan_start.

Enumerator
BLE_SCAN_DISABLED 
BLE_SCAN_ENABLED 

Scan types used at ble_scan_param_set.

Enumerator
BLE_SCAN_PASSIVE 
BLE_SCAN_ACTIVE 

Service type used at ble_service_t.

Enumerator
SECONDARY_SERVICE 
PRIMARY_SERVICE 

BLE Host SDK status messages.

Enumerator
BLE_SUCCESS 
BLE_UNKNOWN_COMMAND 
BLE_UNKNOWN_CONNECTION_ID 
BLE_HARDWARE_FAILURE 
BLE_AUTHENTICATION_FAILURE 
BLE_PIN_KEY_MISSING 
BLE_MEMORY_CAPACITY_EXCEEDED 
BLE_CONNECTION_TIMEOUT 
BLE_CONNECTION_LIMIT_EXCEEDED 
BLE_ACL_CONNECTION_ALREADY_EXISTS 
BLE_COMMAND_DISALLOWED 
BLE_CONNECTION_REJECTED_DUE_TO_LIMITED_RESOURCES 
BLE_CONNECTION_REJECTED_DUE_TO_SECURITY_REASONS 
BLE_CONNECTION_REJECTED_DUE_TO_UNACCEPTABLE_BD_ADDR 
BLE_CONNECTION_ACCEPT_TIMEOUT_EXCEEDED 
BLE_UNSUPPORTED_FEATURE_OR_PARAMETER_VALUE 
BLE_INVALID_COMMAND_PARAMETERS 
BLE_REMOTE_USER_TERMINATED_CONNECTION 
BLE_REMOTE_USER_TERMINATED_CONNECTION_DUE_TO_LOW_RESOURCES 
BLE_REMOTE_USER_TERMINATED_CONNECTION_DUE_TO_POWER_OFF 
BLE_CONNECTION_TERMINATED_BY_LOCAL_HOST 
BLE_PAIRING_NOT_ALLOWED 
BLE_UNSPECIFIED_ERROR 
BLE_INSTANT_PASSED 
BLE_PAIRING_WITH_UINT_KEY_NOT_SUPPORTED 
BLE_INSUFFICIENT_SECURITY 
BLE_CONNECTION_REJECTED_DUE_TO_NO_SUITABLE_CHANNEL_FOUND 
BLE_CONTROLLER_BUSY 
BLE_UNACCEPTABLE_CONNECTION_INTERVAL 
BLE_DIRECTED_ADVERTISING_TIMEOUT 
BLE_CONNECTION_TERMINATED_DUE_TO_MIC_FAILURE 
BLE_CONNECTION_FAILED_TO_BE_ESTABLISHED 
BLE_INVALID_HANDLE 
BLE_READ_NOT_PERMITTED 
BLE_WRITE_NOT_PERMITTED 
BLE_INVALID_PDU 
BLE_INSUFFICIENT_AUTHENTICATION 
BLE_REQUEST_NOT_SUPPORTED 
BLE_INVALID_OFFSET 
BLE_INSUFFICIENT_AUTHORIZATION 
BLE_PREPARE_QUEUE_FULL 
BLE_ATTRIBUTE_NOT_FOUND 
BLE_ATTRIBUTE_NOT_LONG 
BLE_INSUFFICIENT_ENCRYPTION_KEY_SIZE 
BLE_INVALID_ATTRIBUTE_VALUE_LENGTH 
BLE_UNLIKELY_ERROR 
BLE_INSUFFICIENT_ENCRYPTION 
BLE_UNSUPPORTED_GROUT_TYPE 
BLE_INSUFFICIENT_RESOURCES 
BLE_APPLICATION_DEFINED_ERROR 
BLE_FAILURE 
BLE_UART_TIMEOUT 
BLE_UART_CRC_ERROR 
Enumerator
BLE_UUID_16B 
BLE_UUID_128B 
BLE_UUID_INVALID 

BLEDK3 status.

Enumerator
SCANNING_MODE 
CONNECTING_MODE 
STANDBY_MODE 
BROADCAST_MODE 
TRANSPARENT_SERVICE_ENABLED_MODE 
IDLE_MODE 
SHUTDOWN_MODE 
CONFIGURE_MODE 
BLE_CONNECTED_MODE 

GATT Descriptor UUID defined by SIG.

Enumerator
CHAR_EXTENDED_PROPERTIES 
CHAR_USER_DESCRIPTION 
CLIENT_CHAR_CONFIGURATION 
SERVER_CHAR_CONFIGURATION 
CHAR_PRESENTATION_FORMAT 
CHAR_AGGREGATE_FORMAT 
VALID_RANGE 
EXTERNAL_REPORT_REFERENCE 
REPORT_REFERENCE 
NUMBER_OF_DIGITALS 
VALUE_TRIGGER_SETTING 
ENVIRONMENTAL_SENSING_CONFIGURATION 
ENVIRONMENTAL_SENSING_MEASUREMENT 
ENVIRONMENTAL_SENSING_TRIGGER_SETTING 
TIME_TRIGGER_SETTING 
enum gpio_pin_t

BLEDK3 status.

Enumerator
BM7X_PIN_RESET 
BM7X_PIN_MODE 
BM7X_PIN_TX_IND 
BM7X_PIN_RX_IND 
Enumerator
GPIO_LOW 
GPIO_HIGH 

ble_status_t ble_characteristic_attribute_read_response ( ble_handle_t  conn_handle,
ble_handle_t  characteristic_handle,
uint8_t *  data,
uint16_t  length 
)
ble_status_t ble_characteristic_read ( ble_handle_t  conn_handle,
ble_handle_t  characteristic_handle,
void *  data,
uint16_t *  data_len 
)
ble_status_t ble_characteristic_reliable_write_request_prepare ( ble_handle_t  conn_handle,
ble_handle_t  characteristic_handle,
uint16_t  offset,
uint8_t *  data,
uint16_t  length 
)
ble_status_t ble_characteristic_reliable_write_response_prepare ( ble_handle_t  conn_handle,
ble_handle_t  characteristic_handle,
uint16_t  offset,
uint8_t *  data,
uint16_t  length 
)
ble_status_t ble_characteristic_value_read ( ble_handle_t  characteristic_handle,
void *  data,
uint16_t *  data_len 
)
ble_status_t ble_characteristic_write_without_respose ( ble_handle_t  conn_handle,
ble_handle_t  characteristic_handle,
uint8_t *  data,
uint16_t  length 
)
void ble_disconnect_device ( uint8_t  conn_handle)
ble_status_t ble_error_response_send ( ble_handle_t  conn_handle,
ble_handle_t  characteristic_handle,
uint8_t  req_opcode,
uint8_t  err_code 
)
void ble_event_cb_handler ( bm_cmd_frame_t bm_cmd)
ble_status_t ble_gatt_service_create ( ble_service_t ble_service)

References PACKED::additional_desc_count, PACKED::additional_desc_list, BLE_ATT_ATTRIBUTE_VALUE_LEN, BLE_ATTRIB_UUID_LENGTH_2, ble_gatt_service_create_parser(), BLE_INSUFFICIENT_RESOURCES, BLE_INVALID_COMMAND_PARAMETERS, BLE_MAX_SERVICE_BUF_LEN, BLE_SUCCESS, BLE_UUID_128B, BLE_UUID_128B_LEN, BLE_UUID_16B, BLE_UUID_16B_LEN, BM_APPLICATION_ServerCreateService(), ble_client_char_config_desc_t::ccd_included, PACKED::ccd_value, ble_client_char_config_desc_t::ccd_value, PACKED::char_count, CHAR_EXTENDED_PROPERTIES, PACKED::char_handle, PACKED::char_list, CHAR_PRESENTATION_FORMAT, CHAR_USER_DESCRIPTION, PACKED::char_val, CLIENT_CHAR_CONFIGURATION, PACKED::client_config_desc, COMMAND_COMPLETE, PACKED::desc_uuid, PACKED::desc_val_length, PACKED::desc_value, PACKED::description, PACKED::end_handle, PACKED::ep_included, PACKED::exponent, PACKED::ext_properties, PACKED::ext_property, PACKED::extend_property, PACKED::format, PACKED::handle, ble_client_char_config_desc_t::handle, PACKED::init_value, interface_cmd_send_wait(), PACKED::len, PACKED::length, PACKED::name_space, NULL, ble_client_char_config_desc_t::perm, PACKED::perm, PACKED::permission, PACKED::permissions, PACKED::pf_included, PACKED::presentation_format, PACKED::properties, SECONDARY_SERVICE, SERVER_CHAR_CONFIGURATION, PACKED::server_config_desc, PACKED::start_handle, PACKED::type, ble_uuid_t::type, PACKED::type_length, PACKED::ud_length, PACKED::unit, PACKED::user_desc, ble_uuid_t::uuid, PACKED::uuid, ble_uuid_val_t::uuid_128b, ble_uuid_val_t::uuid_16b, UUID_CHARACTERISTIC, UUID_PRIMARY_SERVICE, UUID_SECONDARY_SERVICE, PACKED::value, PACKED::value_handle, and PACKED::value_length.

void register_ble_event_cb_handlers ( ble_event_types_t  event_type,
const void *  event_handler 
)