mirror of
https://github.com/siemens-mobile-hacks/siepatcher.git
synced 2026-11-25 19:37:15 +00:00
13 lines
389 B
Go
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
|
|
}
|