~ruther/qmk_firmware

ref: ac2424fec687ee1ffde580a58c031fe7ad9d302b qmk_firmware/quantum/raw_hid.h -rw-r--r-- 684 bytes
ac2424fe — dependabot[bot] Bump JamesIves/github-pages-deploy-action from 4.5.0 to 4.6.0 (#23548) 1 year, 15 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2023 QMK
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#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.
 */
void raw_hid_receive(uint8_t *data, uint8_t length);

/**
 * \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.
 */
void raw_hid_send(uint8_t *data, uint8_t length);

/** \} */
Do not follow this link