siepatcher/pkg/device/device_interface.go
Ilya Bakulin 30ac27848c Massive refactoring
Now it's possible to switch between emulator and real phone very easily.
2023-09-27 19:03:31 +02:00

13 lines
389 B
Go

package device
import "github.com/siemens-mobile-hacks/siepatcher/pkg/pmb887x"
type Device interface {
// Name() returns a name and maybe some extra info about this Device. This info is not machine readable.
Name() string
// Connect() connects to the device. It may block.
ConnectAndBoot(loaderBin []byte) error
Disconnect() error
SetSpeed(speed int) error
PMB() pmb887x.Device
}