Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EtherCAT ¶
type EtherCAT struct {
// contains filtered or unexported fields
}
ecat represents an EtherCAT packet.
func NewEtherCAT ¶
func NewEtherCAT() *EtherCAT
NewEcat creates and returns a new EtherCAT packet with a default header and an empty list of datagrams.
Returns:
- ecat: New EtherCAT packet
func (*EtherCAT) AppendDatagram ¶
AppendDatagram appends a new EtherCAT datagram to the packet and updates the packet header(Length). It returns an error if the new header length exceeds the valid range.
Parameters:
- data (datagram.EcatDatagram): EtherCAT datagram to append
Returns:
- error: Error if the new header length exceeds the valid range
Click to show internal directories.
Click to hide internal directories.