generated from thinkode/modelRepository
fixed saved peripherals for a new project
This commit is contained in:
@@ -4,11 +4,11 @@ import "context"
|
||||
|
||||
// Peripheral represents the methods used to manage a peripheral (input or output hardware)
|
||||
type Peripheral interface {
|
||||
Connect() error // Connect the peripheral
|
||||
Disconnect() error // Disconnect the peripheral
|
||||
Activate() error // Activate the peripheral
|
||||
Deactivate() error // Deactivate the peripheral
|
||||
SetDeviceProperty(uint32, uint32, byte) error // Update a device property
|
||||
Connect(context.Context) error // Connect the peripheral
|
||||
Disconnect(context.Context) error // Disconnect the peripheral
|
||||
Activate(context.Context) error // Activate the peripheral
|
||||
Deactivate(context.Context) error // Deactivate the peripheral
|
||||
SetDeviceProperty(context.Context, uint32, uint32, byte) error // Update a device property
|
||||
|
||||
GetInfo() PeripheralInfo // Get the peripheral information
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user