mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-14 07:16:04 +03:00
389ff92cc1
* Makefile, Scripts: new linter * About: remove ID from IC * Firmware: remove double define for DIVC/DIVR * Scripts: check folder names too. Docker: replace syntax check with make lint. * Reformat Sources and Migrate to new file naming convention * Docker: symlink clang-format-12 to clang-format * Add coding style guide
64 lines
1.3 KiB
C
64 lines
1.3 KiB
C
#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();
|