![]() |
BSB Developer Docs
|
Registry used for service registration. More...
Go to the source code of this file.
Data Structures | |
| struct | BleServiceRegistryEntry |
| Entry associated with each characteristic. More... | |
Typedefs | |
| typedef struct BleServiceRegistry | BleServiceRegistry |
| Opaque BleServiceRegistry type declaration. | |
Functions | |
| BleServiceRegistry * | ble_service_registry_alloc () |
| Create registry at statup. | |
| void | ble_service_registry_free (BleServiceRegistry *instance) |
| Free registry instance. | |
| bool | ble_service_registry_add_service_entry (BleServiceRegistry *instance, BleServiceObject *service) |
| Register service and all inner characteristics in nwp and save it in dictionary Dictionary uses handle got from nwp during registration as a key. | |
| const BleServiceRegistryEntry * | ble_service_registry_get_service_entry (BleServiceRegistry *instance, const uint16_t handle) |
| Get entry from registry using handle as a key. | |
| void | ble_service_registry_reset_cccds (BleServiceRegistry *instance) |
| Reset all notification flags. | |
Registry used for service registration.
| bool ble_service_registry_add_service_entry | ( | BleServiceRegistry * | instance, |
| BleServiceObject * | service ) |
Register service and all inner characteristics in nwp and save it in dictionary Dictionary uses handle got from nwp during registration as a key.
| [in] | instance | to registry |
| [in] | service | inner ble service which needs to be registered |
| BleServiceRegistry * ble_service_registry_alloc | ( | ) |
Create registry at statup.
| void ble_service_registry_free | ( | BleServiceRegistry * | instance | ) |
Free registry instance.
| [in] | instance | to registry |
| const BleServiceRegistryEntry * ble_service_registry_get_service_entry | ( | BleServiceRegistry * | instance, |
| const uint16_t | handle ) |
Get entry from registry using handle as a key.
| [in] | instance | to registry |
| [in] | handle | value used as a key to find entry |
| void ble_service_registry_reset_cccds | ( | BleServiceRegistry * | instance | ) |
Reset all notification flags.
These flags can be previously set by remote device during interaction, so on disconnect all those flags should be reset to default
| [in] | instance | to registry |