Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Serial ¶
type Serial struct {
Name string
Baud int
Size byte
StopBits serial.StopBits
Timeout time.Duration
Config *serial.Config // Serial config pointer
Port *serial.Port // Serial port pointer
ConfigMade bool // Valid config status
PortOpen bool // Port connection status
}
func (*Serial) MakeConfig ¶
func (s *Serial) MakeConfig()
func (*Serial) OpenPortConnection ¶
func (*Serial) ReadSerial ¶
func (*Serial) WriteToFile ¶
type SerialWorker ¶
type SerialWorker interface {
OpenPortConnection()
MakeConfig()
Listen()
Read()
}
Click to show internal directories.
Click to hide internal directories.