nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches

◆ BLE_HIDS_DEF

#define BLE_HIDS_DEF ( _name)

#include <ble_hids.h>

Value:
static struct ble_hids _name = { \
.link_ctx_storage = { \
.max_links_cnt = CONFIG_BLE_HIDS_MAX_CLIENTS, \
.link_ctx_size = sizeof(uint32_t) * BYTES_TO_WORDS(BLE_HIDS_LINK_CTX_SIZE),\
}, \
}; \
NRF_SDH_BLE_OBSERVER(_name##_obs, ble_hids_on_ble_evt, &_name, HIGH)
void ble_hids_on_ble_evt(const ble_evt_t *ble_evt, void *ble_hids)
Bluetooth LE event handler for the HID Service.
#define BLE_HIDS_LINK_CTX_SIZE
Definition ble_hids.h:193
#define BYTES_TO_WORDS(n_bytes)
Calculate how many 32-bit words are needed to hold n_bytes.
Definition ble_common.h:44
HID Service structure. This contains various status information for the service.
Definition ble_hids.h:614

Define a HID service instance.

Define a HID service instance and register it as a Bluetooth event observer.

Parameters
_nameName of Bluetooth LE HIDS instance.