Documentation ¶
Index ¶
- type Serial
- func (s *Serial) Close() error
- func (s *Serial) File() *os.File
- func (s *Serial) Name() string
- func (s *Serial) Read(b []byte) (int, error)
- func (s *Serial) ReadByte() (byte, error)
- func (s *Serial) SetCanon(canon bool) error
- func (s *Serial) SetFlowCtrl(hw, soft bool) error
- func (s *Serial) SetParity(parity, odd bool) error
- func (s *Serial) SetRawRead(vmin, vtime int) error
- func (s *Serial) SetSpeed(boud int) error
- func (s *Serial) SetStopBits2(two bool) error
- func (s *Serial) Write(b []byte) (int, error)
- func (s *Serial) WriteByte(c byte) error
- func (s *Serial) WriteString(str string) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Serial ¶
type Serial struct {
// contains filtered or unexported fields
}
func (*Serial) SetFlowCtrl ¶
func (*Serial) SetRawRead ¶
Sets Read behavior for noncanonical mode.
vmin - minimum number of characters for Read vtime - timeout in deciseconds vmin == 0 && vtime == 0 : non-blocking Read, vmin == 0 && vtime > 0 : Read returns buffered characters or waits vtime for new charcters, vmin > 0 && vtime > 0 : Read returns n >= vmin characters or 0 < n < vmin if vtime expires after n-th char vmin > 0 && vtime == 0 : Read returns at least vmin characters
func (*Serial) SetStopBits2 ¶
two == true means two stop bits, two == false means one stop bit
Click to show internal directories.
Click to hide internal directories.