Naming and coding style convention, new linter tool. (#945)
* 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
This commit is contained in:
63
firmware/targets/furi_hal_include/furi_hal_bt_hid.h
Normal file
63
firmware/targets/furi_hal_include/furi_hal_bt_hid.h
Normal file
@@ -0,0 +1,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();
|
||||
Reference in New Issue
Block a user