diff options
| author | Joel Challis | 2025-05-05 05:05:04 +0200 |
|---|---|---|
| committer | GitHub | 2025-05-05 05:05:04 +0200 |
| commit | 842c8401452f83e691a9df97ffba52a389c885c8 (patch) | |
| tree | 39cc609985e6d8bb6cfa859520ee062cb4793805 /drivers/bluetooth/bluetooth.h | |
| parent | 614b631ee2649de67a830a39393af416acee58a8 (diff) | |
Bind Bluetooth driver to `host_driver_t` (#25199)
Diffstat (limited to 'drivers/bluetooth/bluetooth.h')
| -rw-r--r-- | drivers/bluetooth/bluetooth.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/drivers/bluetooth/bluetooth.h b/drivers/bluetooth/bluetooth.h index 2e4d0df538..fe67c0c968 100644 --- a/drivers/bluetooth/bluetooth.h +++ b/drivers/bluetooth/bluetooth.h @@ -31,6 +31,18 @@ void bluetooth_init(void); void bluetooth_task(void); /** + * \brief Detects if Bluetooth is connected. + * + * \return `true` if connected, `false` otherwise. + */ +bool bluetooth_is_connected(void); + +/** + * \brief Get current LED state. + */ +uint8_t bluetooth_keyboard_leds(void); + +/** * \brief Send a keyboard report. * * \param report The keyboard report to send. @@ -38,6 +50,13 @@ void bluetooth_task(void); void bluetooth_send_keyboard(report_keyboard_t *report); /** + * \brief Send a nkro report. + * + * \param report The nkro report to send. + */ +void bluetooth_send_nkro(report_nkro_t *report); + +/** * \brief Send a mouse report. * * \param report The mouse report to send. @@ -50,3 +69,10 @@ void bluetooth_send_mouse(report_mouse_t *report); * \param usage The consumer usage to send. */ void bluetooth_send_consumer(uint16_t usage); + +/** + * \brief Send a system usage. + * + * \param usage The system usage to send. + */ +void bluetooth_send_system(uint16_t usage); |