whiskers 0.2.0
RP2350 BadUSB Tool
Loading...
Searching...
No Matches
wusb.h
Go to the documentation of this file.
1/* Copyright (c) 2026 Zane A. Maples
2 Licensed under the MIT license. See LICENSE in the main repository for more information. */
3
11#ifndef W_USB_H
12#define W_USB_H
13#include "../../hal/usb.h"
14#include "../../hal/standard.h"
15#include <stdio.h>
16#include <string.h>
17
26void whiskers_start_usb_custom(w_usb_mods *mods);
31/* Simple wrappers to stick with the code theme yknow what I mean */
32#define whiskers_usb_task() usb_loop()
37#define whiskers_send_report(x) usb_keyboard_send_report(x)
42#define whiskers_msc_setup(x, y, z) usb_setup_msc(x, y, z)
47
48#endif
Miscellaneous/Utility HAL functions.
HAL USB functions.
void whiskers_send_reset_report()
Sends a HID reset report (all 8 bytes being zero).
Definition wusb.c:60
void whiskers_start_usb()
Starts the USB stack with default values (being the descriptors).
Definition wusb.c:42
void whiskers_start_usb_custom(w_usb_mods *mods)
Starts the USB stack with custom modifications.
Definition wusb.c:55