You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
684 B

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