1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-04-26 13:48:49 +08:00
hybridgroup.gobot/adaptor.go
deadprogram 56558cd9cb core: Starting refactor of new adaptor/new driver function signatures with ARDrone
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-09-25 11:46:55 +02:00

19 lines
436 B
Go

package gobot
// Adaptor is the interface that describes an adaptor in gobot
type Adaptor interface {
// Name returns the label for the Adaptor
Name() string
// SetName sets the label for the Adaptor
SetName(n string)
// Connect initiates the Adaptor
Connect() []error
// Finalize terminates the Adaptor
Finalize() []error
}
// Porter is the interface that describes an adaptor's port
type Porter interface {
Port() string
}