whiskers
0.4.0
RP2350 BadUSB Tool
Toggle main menu visibility
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
24
bool
whiskers_usb_started();
29
bool
whiskers_usb_enabled();
34
void
whiskers_enable_usb(w_usb_mods *mods);
38
void
whiskers_start_usb();
42
void
whiskers_send_reset_report();
43
54
void
whiskers_send_ascii_string(
char
*str,
size_t
len);
55
62
uint8_t whiskers_char_to_scancode(
char
key);
63
75
uint8_t whiskers_ascii_to_modbyte(
char
*mods,
size_t
len);
76
95
uint8_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
standard.h
Miscellaneous/Utility HAL functions.
usb.h
HAL USB functions.
code
src
usb
wusb.h
Generated by
1.18.0