Motion Master 6.0.0-alpha.111
Next-generation motion control software
Loading...
Searching...
No Matches
ethercat_frame.h File Reference

One EtherCAT frame as it sits on the wire, read from its bytes. More...

#include <cstdint>
#include <optional>
#include <span>
#include <vector>
Include dependency graph for ethercat_frame.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mm::capture::Datagram
 The header of one datagram in a frame, without its data. More...
 
struct  mm::capture::EtherCatFrame
 One EtherCAT frame. More...
 

Namespaces

namespace  mm
 
namespace  mm::capture
 

Functions

bool mm::capture::isLogicalCommand (uint8_t command)
 Whether command addresses the process image: LRD, LWR or LRW.
 
bool mm::capture::isPositionCountedUp (uint8_t command)
 Whether every slave counts command's position up as the frame passes.
 
std::optional< EtherCatFrame > mm::capture::parseEtherCatFrame (std::span< const uint8_t > bytes)
 Reads one Ethernet frame that carries EtherCAT datagrams.
 

Variables

constexpr uint16_t mm::capture::kEtherCatEtherType = 0x88A4
 The Ethernet type of an EtherCAT frame.
 

Detailed Description

One EtherCAT frame as it sits on the wire, read from its bytes.