whiskers 0.4.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
13#ifndef W_USB_H
14#define W_USB_H
15#include "../../hal/usb.h"
16#include "../../hal/standard.h"
17#include <stdio.h>
18#include <string.h>
19
24bool whiskers_usb_started();
29bool whiskers_usb_enabled();
34void whiskers_enable_usb(w_usb_mods *mods);
38void whiskers_start_usb();
42void whiskers_send_reset_report();
43
54void whiskers_send_ascii_string(char *str, size_t len);
55
62uint8_t whiskers_char_to_scancode(char key);
63
75uint8_t whiskers_ascii_to_modbyte(char *mods, size_t len);
76
95uint8_t whiskers_ascii_to_special_key(char *key, size_t len);
96
97/* Simple wrappers to stick with the code theme yknow what I mean */
98#define whiskers_usb_task() usb_loop()
103#define whiskers_send_report(x) usb_keyboard_send_report(x)
108#define whiskers_msc_setup(x, y, z) usb_setup_msc(x, y, z)
113
114#endif
Miscellaneous/Utility HAL functions.
HAL USB functions.