![]() |
Airoha M0 BLE API
1.0.5.4
|
Data Structures | |
struct | gatt_add_service_para |
API parameter for creating a GATT service. More... | |
struct | gatt_add_include_para |
API parameter for including a GATT service in another. More... | |
struct | gatt_add_charact_para |
API parameter for creating a GATT characteristic. More... | |
struct | gatt_add_descrip_para |
API parameter for creating a GATT characteristic descriptor. More... | |
Enumerations | |
enum | service_type { primary_service = 0x2800, secondary_service = 0x2801 } |
GATT service type. More... | |
enum | NOTIFY_INDICATE_LINK_SEL { FORCE_LINK0 = 0, FORCE_LINK1, FORCE_LINK2, FORCE_LINK3, FORCE_LINK4, FORCE_LINK5, FORCE_LINK6, FORCE_LINK7, ALL_CCCD_ENABLED_LINK = 0x99 } |
GATT Notification/Indication target link selection. More... | |
enum | CHAR_PROPERTY |
GATT characteristic Property. | |
Functions | |
att_handle | BLE_gatt_add_service (gatt_add_service_para *para) |
API for adding a GATT Service declaration into the attribute server database. More... | |
att_handle | BLE_gatt_add_include (gatt_add_include_para *para) |
API for including another GATT Service in last added service. More... | |
att_handle | BLE_gatt_add_charact (gatt_add_charact_para *para) |
API for declaring a GATT Characteristic in last added service. More... | |
att_handle | BLE_gatt_add_descrip (gatt_add_descrip_para *para) |
API for declaring a GATT descriptor in last added characteristic. More... | |
void | BLE_gatt_charact_notify (att_handle char_handle, NOTIFY_INDICATE_LINK_SEL sel) |
API for sending a characteristic value notification to the selected target(s). More... | |
bool | BLE_gatt_charact_indicate (att_handle char_handle, NOTIFY_INDICATE_LINK_SEL sel, INDI_CB cb) |
API for sending a characteristic value indication to the selected target(s). More... | |
enum service_type |
GATT Notification/Indication target link selection.
CCCD stands for Client Characteristic Configuration Descriptor.
att_handle BLE_gatt_add_service | ( | gatt_add_service_para * | para | ) |
API for adding a GATT Service declaration into the attribute server database.
para | gatt_add_service_para |
att_handle BLE_gatt_add_include | ( | gatt_add_include_para * | para | ) |
API for including another GATT Service in last added service.
para | gatt_add_include_para |
att_handle BLE_gatt_add_charact | ( | gatt_add_charact_para * | para | ) |
API for declaring a GATT Characteristic in last added service.
para | gatt_add_charact_para |
att_handle BLE_gatt_add_descrip | ( | gatt_add_descrip_para * | para | ) |
API for declaring a GATT descriptor in last added characteristic.
para | gatt_add_charact_para |
void BLE_gatt_charact_notify | ( | att_handle | char_handle, |
NOTIFY_INDICATE_LINK_SEL | sel | ||
) |
API for sending a characteristic value notification to the selected target(s).
char_handle | attribute handle of characteristic value. |
sel | NOTIFY_INDICATE_LINK_SEL |
bool BLE_gatt_charact_indicate | ( | att_handle | char_handle, |
NOTIFY_INDICATE_LINK_SEL | sel, | ||
INDI_CB | cb | ||
) |
API for sending a characteristic value indication to the selected target(s).
char_handle | attribute handle of characteristic value. |
sel | NOTIFY_INDICATE_LINK_SEL |
cb | INDI_CB |