2021-12-08 11:28:01 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
2021-12-15 17:39:06 +00:00
|
|
|
enum FuriHalBtHidMediKeys{
|
|
|
|
FuriHalBtHidMediaScanNext,
|
|
|
|
FuriHalBtHidMediaScanPrevious,
|
|
|
|
FuriHalBtHidMediaStop,
|
|
|
|
FuriHalBtHidMediaEject,
|
|
|
|
FuriHalBtHidMediaPlayPause,
|
|
|
|
FuriHalBtHidMediaMute,
|
|
|
|
FuriHalBtHidMediaVolumeUp,
|
|
|
|
FuriHalBtHidMediaVolumeDown,
|
|
|
|
};
|
|
|
|
|
2021-12-08 11:28:01 +00:00
|
|
|
/** Start Hid Keyboard Profile
|
|
|
|
*/
|
|
|
|
void furi_hal_bt_hid_start();
|
|
|
|
|
|
|
|
/** Stop Hid Keyboard Profile
|
|
|
|
*/
|
|
|
|
void furi_hal_bt_hid_stop();
|
|
|
|
|
2021-12-15 17:39:06 +00:00
|
|
|
/** Press keyboard button
|
2021-12-08 11:28:01 +00:00
|
|
|
*
|
|
|
|
* @param button button code from HID specification
|
|
|
|
*
|
|
|
|
* @return true on success
|
|
|
|
*/
|
|
|
|
bool furi_hal_bt_hid_kb_press(uint16_t button);
|
|
|
|
|
2021-12-15 17:39:06 +00:00
|
|
|
/** Release keyboard button
|
2021-12-08 11:28:01 +00:00
|
|
|
*
|
|
|
|
* @param button button code from HID specification
|
|
|
|
*
|
|
|
|
* @return true on success
|
|
|
|
*/
|
|
|
|
bool furi_hal_bt_hid_kb_release(uint16_t button);
|
|
|
|
|
2021-12-15 17:39:06 +00:00
|
|
|
/** Release all keyboard buttons
|
2021-12-08 11:28:01 +00:00
|
|
|
*
|
|
|
|
* @return true on success
|
|
|
|
*/
|
|
|
|
bool furi_hal_bt_hid_kb_release_all();
|
2021-12-15 17:39:06 +00:00
|
|
|
|
|
|
|
/** 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();
|