aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorJoel Challis2025-05-12 00:38:48 +0200
committerGitHub2025-05-12 00:38:48 +0200
commit88c094908bb94324e28876f2beb8028a9fad086d (patch)
tree4e47c513470873b59ac20735bdec99afb903fd5a /drivers/bluetooth
parentc045c3e00c41597fbc82239376611d3ac8a7a52e (diff)
Add raw_hid support to host driver (#25255)
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r--drivers/bluetooth/bluetooth.c2
-rw-r--r--drivers/bluetooth/bluetooth.h8
2 files changed, 10 insertions, 0 deletions
diff --git a/drivers/bluetooth/bluetooth.c b/drivers/bluetooth/bluetooth.c
index 61a3f0f32a..e61e24e1f2 100644
--- a/drivers/bluetooth/bluetooth.c
+++ b/drivers/bluetooth/bluetooth.c
@@ -28,3 +28,5 @@ __attribute__((weak)) void bluetooth_send_mouse(report_mouse_t *report) {}
__attribute__((weak)) void bluetooth_send_consumer(uint16_t usage) {}
__attribute__((weak)) void bluetooth_send_system(uint16_t usage) {}
+
+__attribute__((weak)) void bluetooth_send_raw_hid(uint8_t *data, uint8_t length) {}
diff --git a/drivers/bluetooth/bluetooth.h b/drivers/bluetooth/bluetooth.h
index e50b588db2..bbd41a9194 100644
--- a/drivers/bluetooth/bluetooth.h
+++ b/drivers/bluetooth/bluetooth.h
@@ -81,3 +81,11 @@ void bluetooth_send_consumer(uint16_t usage);
* \param usage The system usage to send.
*/
void bluetooth_send_system(uint16_t usage);
+
+/**
+ * \brief Send a raw_hid packet.
+ *
+ * \param data A pointer to the buffer to be sent. Always 32 bytes in length.
+ * \param length The length of the buffer. Always 32.
+ */
+void bluetooth_send_raw_hid(uint8_t *data, uint8_t length);