MCPcopy Create free account

hub / github.com/distributed/sers / functions

Functions70 in github.com/distributed/sers

↓ 10 callersFunctiongetProcAddr
(lib syscall.Handle, name string)
sers_windows.go:215
↓ 5 callersFunctionOpen
(fn string)
sers_termios.go:277
↓ 4 callersMethodgetattr
()
sers_termios.go:88
↓ 3 callersMethodClose
()
sers_termios.go:80
↓ 3 callersMethodSetMode
SetMode sets the frame format and handshaking configuration. baudrate may be freely chosen, the driver is allowed to reject unachievable baud rates. d
sers.go:42
↓ 3 callersMethodsetattr
(tio *C.struct_termios)
sers_termios.go:98
↓ 2 callersMethodError
()
sers_windows.go:53
↓ 2 callersFunctionParseModestring
Parses a modestring like "115200,8n1,rtscts" into a struct Mode. The format is baudrate,framestring,handshake. Either the handshake part or both the f
modestring.go:28
↓ 2 callersMethodRead
(b []byte)
sers_termios.go:70
↓ 2 callersMethodSetBreak
SetBreak turns on the generation of a break condition if on == true, otherwise it clear the break condition.
sers.go:57
↓ 2 callersFunctiongetOverlappedResult
(h syscall.Handle, overlapped *syscall.Overlapped)
sers_windows.go:372
↓ 2 callersFunctionnewOverlapped
()
sers_windows.go:362
↓ 2 callersFunctionresetEvent
(h syscall.Handle)
sers_windows.go:354
↓ 2 callersFunctionsetCommTimeouts
(h syscall.Handle, constTimeout float64)
sers_windows.go:296
↓ 1 callersMethodClose
()
sers_windows.go:110
↓ 1 callersMethodGetMode
GetMode retrieves the current mode settings. Known bug on OS X: GetMode only works after SetMode has been called before. If not, it returns an error.
sers.go:48
↓ 1 callersFunctionMain
()
verification/setgetmode/setgetmode.go:17
↓ 1 callersFunctionMain
()
verification/readclose/readclose.go:36
↓ 1 callersFunctionMain
()
verification/breakpulse/breakpulse.go:21
↓ 1 callersFunctionMain
()
verification/setbaudrate/setbaudrate.go:22
↓ 1 callersMethodSetBaudRate
(br int)
sers_linux.go:21
↓ 1 callersFunctionSetModeStruct
(sp SerialPort, mode Mode)
sers.go:60
↓ 1 callersMethodSetReadParams
SetReadParams sets the minimum number of bytes to read and a read timeout in seconds. These parameters roughly correspond to the UNIX termios concepts
sers.go:53
↓ 1 callersMethodString
()
sers.go:93
↓ 1 callersMethodValid
()
sers.go:73
↓ 1 callersMethodWrite
(b []byte)
sers_termios.go:84
↓ 1 callersMethodgetBaudrate
()
sers_linux.go:31
↓ 1 callersFunctionlookupbaudrate
sers_linux.c:65
↓ 1 callersFunctionreadFirstBytesFromPort
(fn string)
sers_test.go:27
↓ 1 callersFunctionreadpart
(r io.ReadCloser)
verification/readclose/readclose.go:20
↓ 1 callersFunctionsetCommMask
(h syscall.Handle)
sers_windows.go:345
↓ 1 callersFunctionsetCommState
(h syscall.Handle, mode Mode)
sers_windows.go:223
↓ 1 callersFunctionsetupComm
(h syscall.Handle, in, out int)
sers_windows.go:337
↓ 1 callersFunctionspeedtobaudrate
sers_linux.c:101
↓ 1 callersFunctiontakeOverFD
(fd int, fn string)
sers_termios.go:33
MethodError
()
sers.go:135
MethodError
()
sers.go:144
MethodError
()
sers.go:153
MethodError
()
sers_darwin.go:60
MethodError
()
sers_termios.go:299
MethodError
()
sers_windows.go:409
FunctionExample
This program opens a serial port, configurable by changing portname below and configures it for 57600 baud, 8 data bits, no parity bit, 1 stop bit, no
sers_test.go:16
MethodGetMode
()
sers_termios.go:184
MethodGetMode
()
sers_windows.go:263
FunctionOpen
func openPort(name string) (rwc io.ReadWriteCloser, err error) { // TODO
sers_windows.go:58
MethodRead
(buf []byte)
sers_windows.go:132
MethodSetBaudRate
(br int)
sers_darwin.go:39
MethodSetBreak
(on bool)
sers_termios.go:260
MethodSetBreak
(on bool)
sers_windows.go:161
MethodSetMode
(baudrate, databits, parity, stopbits, handshake int)
sers_termios.go:107
MethodSetMode
(baudrate, databits, parity, stopbits, handshake int)
sers_windows.go:385
MethodSetReadParams
(minread int, timeout float64)
sers_termios.go:231
MethodSetReadParams
(minread int, timeout float64)
sers_windows.go:401
FunctionTakeOver
TakeOver accepts an open *os.File and returns a SerialPort representing the open file. Attention: This calls the .Fd() method of the *os.File and thu
sers_termios.go:61
FunctionTestModestringStringMethod
(t *testing.T)
modestring_test.go:65
FunctionTestParseModestring
(t *testing.T)
modestring_test.go:5
MethodTimeout
()
sers_termios.go:303
MethodTimeout
()
sers_windows.go:413
MethodWrite
(buf []byte)
sers_windows.go:114
Functionfcntl1
sers_darwin.c:8
MethodgetBaudrate
()
sers_darwin.go:64
Functiongetbaudrate
sers_linux.c:173
Functioninit
()
sers_windows.go:196
Functionioctl1
sers_darwin.c:4
Functionioctl1
sers_linux.c:61
Functionmain
()
verification/setgetmode/setgetmode.go:10
Functionmain
()
verification/readclose/readclose.go:13
Functionmain
()
verification/breakpulse/breakpulse.go:11
Functionmain
()
verification/setbaudrate/setbaudrate.go:13
Functionsetbaudrate
sers_linux.c:138