2014-04-30 08:10:44 -07:00
|
|
|
package gobot
|
2013-10-23 22:00:03 -07:00
|
|
|
|
2014-12-31 05:15:52 -08:00
|
|
|
// Driver is the interface that describes a driver in gobot
|
2014-11-20 18:00:32 -08:00
|
|
|
type Driver interface {
|
2014-12-31 05:15:52 -08:00
|
|
|
// Name returns the label for the Driver
|
|
|
|
Name() string
|
|
|
|
// Start initiates the Driver
|
2014-11-19 23:21:19 -08:00
|
|
|
Start() []error
|
2014-12-31 05:15:52 -08:00
|
|
|
// Halt terminates the Driver
|
2014-11-19 23:21:19 -08:00
|
|
|
Halt() []error
|
2014-12-31 05:15:52 -08:00
|
|
|
// Connection returns the Connection assiciated with the Driver
|
2014-11-20 18:00:32 -08:00
|
|
|
Connection() Connection
|
2014-06-06 14:44:16 -07:00
|
|
|
}
|
2014-11-21 19:35:01 -08:00
|
|
|
|
2014-12-31 05:15:52 -08:00
|
|
|
// Pinner is the interface that describes a driver's pin
|
2014-11-28 19:04:22 -08:00
|
|
|
type Pinner interface {
|
2014-11-21 19:35:01 -08:00
|
|
|
Pin() string
|
|
|
|
}
|