Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches
ble_hid.h File Reference
#include "../ble_common.h"

Go to the source code of this file.

Enumerations

enum  ble_hid_key_t {
  BLE_HID_KEY_ARROW_LEFT = 0 , BLE_HID_KEY_ARROW_RIGHT , BLE_HID_KEY_F5 , BLE_HID_KEY_ESC ,
  BLE_HID_KEY_MEDIA_PREV_TRACK , BLE_HID_KEY_MEDIA_NEXT_TRACK , BLE_HID_KEY_MEDIA_PLAY_PAUSE , BLE_HID_KEY_MEDIA_MUTE ,
  BLE_HID_KEY_MEDIA_VOLUME_UP , BLE_HID_KEY_MEDIA_VOLUME_DOWN , BLE_HID_KEYS_count
}
 Supported HID keys to emulate keyboard. More...
 

Functions

int ble_hid_init (void)
 Initialize BLE HID profile and start advertising.
 
int ble_hid_send_key (ble_hid_key_t key)
 Send a keyboard or consumer-control key via the HID profile.
 
int ble_hid_confirm_pairing (bool accept)
 Accept or reject a pending pairing confirmation request.
 
int ble_hid_forget_bonds (void)
 Forget all bonded devices and disconnect all active connections.