MCPcopy Index your code

hub / github.com/brutella/can / functions

Functions52 in github.com/brutella/can

↓ 7 callersFunctionNewBus
NewBus returns a new CAN bus.
bus.go:33
↓ 7 callersMethodSubscribe
Subscribe adds a handler to the bus.
bus.go:58
↓ 6 callersMethodread
(v interface{})
frame.go:58
↓ 6 callersMethodwrite
(v interface{})
frame.go:69
↓ 5 callersFunctionNewEchoReadWriteCloser
NewEchoReadWriteCloser returns a ReadWriteCloser which echoes received bytes.
test_readwritecloser.go:15
↓ 5 callersFunctionnewTestHandler
()
bus_test.go:22
↓ 3 callersMethodpublish
(frame Frame)
bus.go:113
↓ 2 callersMethodClose
()
readwritecloser.go:72
↓ 2 callersMethodHandle
(frame Frame)
handler.go:5
↓ 2 callersFunctionMarshal
Marshal returns the byte encoding of frm.
frame.go:23
↓ 2 callersMethodRead
(b []byte)
readwritecloser.go:64
↓ 2 callersFunctionUnmarshal
Unmarshal parses the bytes b and stores the result in the value pointed to by frm.
frame.go:39
↓ 2 callersMethodUnsubscribe
Unsubscribe removes a handler.
bus.go:69
↓ 2 callersFunctionWait
Wait returns a channel, which receives a frame or an error, if the frame with the expected id didn't arrive on time.
wait.go:23
↓ 2 callersMethodWrite
(b []byte)
readwritecloser.go:68
↓ 2 callersMethodWriteFrame
(Frame)
readwritecloser.go:18
↓ 2 callersMethodcontains
(handler Handler)
bus.go:85
↓ 2 callersMethodpublishNextFrame
()
bus.go:95
↓ 1 callersMethodConnectAndPublish
ConnectAndPublish starts handling CAN frames to publish them to handlers.
bus.go:41
↓ 1 callersMethodDisconnect
Disconnect stops handling CAN frames.
bus.go:53
↓ 1 callersFunctionNewHandler
NewHandler returns a new handler which calls fn when a frame is received.
handler.go:16
↓ 1 callersFunctionNewReadWriteCloser
NewReadWriteCloser returns a ReadWriteCloser for an `io.ReadWriteCloser`.
readwritecloser.go:35
↓ 1 callersFunctionNewReadWriteCloserForInterface
(i *net.Interface)
readwritecloser_windows.go:8
↓ 1 callersFunctionNewReadWriteCloserForInterface
(i *net.Interface)
readwritecloser_linux.go:11
↓ 1 callersMethodReadFrame
(*Frame)
readwritecloser.go:11
↓ 1 callersMethodSubscribeFunc
SubscribeFunc adds a function as handler.
bus.go:63
↓ 1 callersFunctionnewFilter
(id uint32, handler Handler)
filter.go:8
↓ 1 callersFunctionprintableString
printableString creates a string from s and replaces non-printable bytes (i.e. 0-32, 127) with '.' – similar how candump from can-utils does it.
cmd/candump.go:75
↓ 1 callersFunctiontrimSuffix
trim returns a subslice of s by slicing off all trailing b bytes.
cmd/candump.go:63
MethodClose
()
test_readwritecloser.go:39
MethodHandle
(frame Frame)
filter.go:15
MethodHandle
(frame Frame)
handler.go:20
MethodHandle
(frame Frame)
bus_test.go:26
MethodHandle
(frame Frame)
wait.go:48
FunctionNewBusForInterfaceWithName
NewBusForInterfaceWithName returns a bus from the network interface with name ifaceName.
bus.go:18
FunctionNewReadWriteCloserForInterface
(i *net.Interface)
readwritecloser_darwin.go:8
FunctionNewSockaddr
NewSockaddr returns a socket address based on the protocol and interface index. TODO(brutella) This method has no implementation.
socket_darwin.go:7
FunctionNewSockaddr
(proto uint16, Ifindex int)
socket_linux.go:7
FunctionNewSockaddr
NewSockaddr returns a socket address based on the protocol and interface index. TODO(brutella) This method has no implementation.
socket_windows.go:7
MethodPublish
Publish publishes a frame on the bus. Frames publishes with the Publish methods are not received by handlers.
bus.go:81
MethodRead
(b []byte)
test_readwritecloser.go:19
MethodReadFrame
(frame *Frame)
readwritecloser.go:39
FunctionTestFrame
(t *testing.T)
frame_test.go:9
FunctionTestPublish
(t *testing.T)
bus_test.go:30
FunctionTestSubscribe
(t *testing.T)
bus_test.go:48
FunctionTestTimeoutErr
(t *testing.T)
wait_test.go:27
FunctionTestUnsubscribe
(t *testing.T)
bus_test.go:61
FunctionTestWait
(t *testing.T)
wait_test.go:8
MethodWrite
(b []byte)
test_readwritecloser.go:35
MethodWriteFrame
(frame Frame)
readwritecloser.go:52
FunctionlogCANFrame
logCANFrame logs a frame with the same format as candump from can-utils.
cmd/candump.go:56
Functionmain
()
cmd/candump.go:18