Documentation ¶
Index ¶
Constants ¶
View Source
const ( StateInitializing uint8 = 0 StatePreOperational uint8 = 127 StateOperational uint8 = 5 StateStopped uint8 = 4 StateUnknown uint8 = 255 )
Possible NMT states
View Source
const ( ResetNot uint8 = 0 ResetComm uint8 = 1 ResetApp uint8 = 2 ResetQuit uint8 = 3 )
Global node state to be used
View Source
const ServiceId = 0
View Source
const (
StartupToOperational uint16 = 0x0100
)
Variables ¶
View Source
var CommandDescription = map[Command]string{ CommandEnterOperational: "ENTER-OPERATIONAL", CommandEnterStopped: "ENTER-STOPPED", CommandEnterPreOperational: "ENTER-PREOPERATIONAL", CommandResetNode: "RESET-NODE", CommandResetCommunication: "RESET-COMMUNICATION", }
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command uint8
Available NMT commands They can be broadcasted to all nodes or to individual nodes
type NMT ¶
type NMT struct { *canopen.BusManager // contains filtered or unexported fields }
NMT object for processing NMT behaviour, slave or master
func (*NMT) Process ¶
Process NMT state machine and TX CAN frames It returns a computed global state request for the node This should be called periodically
func (*NMT) SendCommand ¶
Send an NMT command to the network
func (*NMT) SendInternalCommand ¶
Send NMT command to self, don't send on network
Click to show internal directories.
Click to hide internal directories.