mirror of
https://github.com/Fishwaldo/go-dcdc200.git
synced 2025-03-15 19:41:23 +00:00
35 lines
No EOL
815 B
Go
35 lines
No EOL
815 B
Go
// +build nogousb
|
|
|
|
package realusb
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
"github.com/go-logr/logr"
|
|
)
|
|
|
|
type UsbIF struct {
|
|
log logr.Logger
|
|
}
|
|
|
|
func Init(log logadapter.Logger) (*UsbIF) {
|
|
usbif := UsbIF{log: log}
|
|
log.Error(nil, "Not Compiled with USB Support!")
|
|
return &usbif
|
|
}
|
|
|
|
func (usbif *UsbIF) SetUSBDebug(level int) {
|
|
usbif.log.Error(nil, "Not Compiled with USB Support!")
|
|
}
|
|
|
|
func (usbif *UsbIF) Scan() (bool, error) {
|
|
usbif.log.Error(nil, "Not Compiled with USB Support")
|
|
return false, fmt.Errorf("Not Compiled with USB Support")
|
|
}
|
|
func (usbif *UsbIF) Close() {
|
|
usbif.log.Error(nil, "Not Compiled with USB Support")
|
|
}
|
|
func (usbif *UsbIF) GetAllParam(ctx context.Context) ([]byte, int, error) {
|
|
usbif.log.Error(nil, "Not Compiled with USB Support")
|
|
return nil, 0, fmt.Errorf("not compiled with USB Support")
|
|
} |