github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/machine/usb/config.go (about) 1 package usb 2 3 type EndpointConfig struct { 4 Index uint8 5 IsIn bool 6 TxHandler func() 7 RxHandler func([]byte) 8 Type uint8 9 } 10 11 type SetupConfig struct { 12 Index uint8 13 Handler func(Setup) bool 14 }