generated from thinkode/modelRepository
add OS2L device creation
This commit is contained in:
@@ -21,10 +21,12 @@ type PeripheralInfo struct {
|
||||
Settings []interface{} `yaml:"settings"` // Number of DMX universes handled by the peripheral
|
||||
}
|
||||
|
||||
// PeripheralFinder represents how compatible peripheral finders are implemented
|
||||
type PeripheralFinder interface {
|
||||
Initialize() error // Initializes the protocol
|
||||
GetName() string // Get the name of the finder
|
||||
GetPeripheral(string) (Peripheral, bool) // Get the peripheral
|
||||
Scan(context.Context) error // Scan for peripherals
|
||||
// PeripheralDriver represents how compatible peripheral drivers are implemented
|
||||
type PeripheralDriver interface {
|
||||
Initialize() error // Initializes the protocol
|
||||
GetName() string // Get the name of the finder
|
||||
GetPeripheral(string) (Peripheral, bool) // Get the peripheral
|
||||
Scan(context.Context) error // Scan for peripherals
|
||||
CreatePeripheral(ctx context.Context) (Peripheral, error) // Creates a new peripheral
|
||||
RemovePeripheral(serialNumber string) error // Removes a peripheral
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user