raw_hid.h (684B)
1 // Copyright 2023 QMK 2 // SPDX-License-Identifier: GPL-2.0-or-later 3 4 #pragma once 5 6 #include <stdint.h> 7 8 /** 9 * \file 10 * 11 * \defgroup raw_hid Raw HID API 12 * \{ 13 */ 14 15 /** 16 * \brief Callback, invoked when a raw HID report has been received from the host. 17 * 18 * \param data A pointer to the received data. Always 32 bytes in length. 19 * \param length The length of the buffer. Always 32. 20 */ 21 void raw_hid_receive(uint8_t *data, uint8_t length); 22 23 /** 24 * \brief Send an HID report. 25 * 26 * \param data A pointer to the data to send. Must always be 32 bytes in length. 27 * \param length The length of the buffer. Must always be 32. 28 */ 29 void raw_hid_send(uint8_t *data, uint8_t length); 30 31 /** \} */