Welcome to mirror list, hosted at ThFree Co, Russian Federation.

furi-hal-bt-hid.h « furi-hal-include « targets « firmware - github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8dd428031e53943b98661e98782b73a1d4aa272c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#pragma once

#include <stdint.h>
#include <stdbool.h>

enum FuriHalBtHidMediKeys{
    FuriHalBtHidMediaScanNext,
    FuriHalBtHidMediaScanPrevious,
    FuriHalBtHidMediaStop,
    FuriHalBtHidMediaEject,
    FuriHalBtHidMediaPlayPause,
    FuriHalBtHidMediaMute,
    FuriHalBtHidMediaVolumeUp,
    FuriHalBtHidMediaVolumeDown,
};

/** Start Hid Keyboard Profile
 */
void furi_hal_bt_hid_start();

/** Stop Hid Keyboard Profile
 */
void furi_hal_bt_hid_stop();

/** Press keyboard button
 *
 * @param button    button code from HID specification
 *
 * @return          true on success
 */
bool furi_hal_bt_hid_kb_press(uint16_t button);

/** Release keyboard button
 *
 * @param button    button code from HID specification
 *
 * @return          true on success
 */
bool furi_hal_bt_hid_kb_release(uint16_t button);

/** Release all keyboard buttons
 *
 * @return          true on success
 */
bool furi_hal_bt_hid_kb_release_all();

/** Release all media buttons
 *
 * @return          true on success
 */
bool furi_hal_bt_hid_media_press(uint8_t button);

/** Release all media buttons
 *
 * @return          true on success
 */
bool furi_hal_bt_hid_media_release(uint8_t button);

/** Release all media buttons
 *
 * @return          true on success
 */
bool furi_hal_bt_hid_media_release_all();