2023-07-25 01:20:41 +02:00
|
|
|
// Copyright 2023 QMK
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
2020-12-26 05:56:11 +01:00
|
|
|
#pragma once
|
2016-11-28 08:31:16 +01:00
|
|
|
|
2023-07-25 01:20:41 +02:00
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \file
|
|
|
|
*
|
|
|
|
* \defgroup raw_hid Raw HID API
|
|
|
|
* \{
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \brief Callback, invoked when a raw HID report has been received from the host.
|
|
|
|
*
|
|
|
|
* \param data A pointer to the received data. Always 32 bytes in length.
|
|
|
|
* \param length The length of the buffer. Always 32.
|
|
|
|
*/
|
2019-08-30 20:19:03 +02:00
|
|
|
void raw_hid_receive(uint8_t *data, uint8_t length);
|
2016-11-28 08:31:16 +01:00
|
|
|
|
2023-07-25 01:20:41 +02:00
|
|
|
/**
|
|
|
|
* \brief Send an HID report.
|
|
|
|
*
|
|
|
|
* \param data A pointer to the data to send. Must always be 32 bytes in length.
|
|
|
|
* \param length The length of the buffer. Must always be 32.
|
|
|
|
*/
|
2019-08-30 20:19:03 +02:00
|
|
|
void raw_hid_send(uint8_t *data, uint8_t length);
|
2023-07-25 01:20:41 +02:00
|
|
|
|
|
|
|
/** \} */
|