machine/usb: refactor endpoint configuration

This commit is contained in:
sago35
2023-08-02 08:30:51 +09:00
committed by Ron Evans
parent 069e4f0d98
commit 395ee2d338
5 changed files with 20 additions and 20 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
package usb
type EndpointConfig struct {
No uint8
Index uint8
IsIn bool
TxHandler func()
RxHandler func([]byte)
@@ -9,6 +9,6 @@ type EndpointConfig struct {
}
type SetupConfig struct {
No uint8
Index uint8
Handler func(Setup) bool
}