MCPcopy Create free account
hub / github.com/distributed/sers / SetMode

Method SetMode

sers.go:42–42  ·  view source on GitHub ↗

SetMode sets the frame format and handshaking configuration. baudrate may be freely chosen, the driver is allowed to reject unachievable baud rates. databits may be any number of data bits supported by the driver. parity is one of (N|O|E) for none, odd or even parity. handshake is either NO_HANDSHAK

(baudrate, databits, parity, stopbits, handshake int)

Source from the content-addressed store, hash-verified

40 //
41 // Known bug on Windows: Only NO_HANDSHAKE is supported.
42 SetMode(baudrate, databits, parity, stopbits, handshake int) error
43
44 // GetMode retrieves the current mode settings.
45 //

Callers 3

readFirstBytesFromPortFunction · 0.65
SetModeStructFunction · 0.65
MainFunction · 0.65

Implementers 2

baseportsers_termios.go
serialPortsers_windows.go

Calls

no outgoing calls

Tested by 1

readFirstBytesFromPortFunction · 0.52