Motion Master 6.0.0-alpha.111
Next-generation motion control software
Loading...
Searching...
No Matches
soem_mailbox.h File Reference
#include <soem/soem.h>
#include <cstdint>
#include <vector>
#include "comm/fieldbus_driver.h"
Include dependency graph for soem_mailbox.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  mm
 
namespace  mm::comm
 
namespace  mm::comm::soem
 

Functions

void mm::comm::soem::drainMailbox (ecx_contextt *ctx, uint16_t slavePosition)
 Discards whatever is sitting in a slave's read mailbox, ignoring the contents.
 
void mm::comm::soem::reportUnknownMailboxWrites (ecx_contextt *ctx, uint16_t slavePosition)
 Logs the mailbox writes to a slave that got no frame back, and resets their count.
 
std::vector< uint8_t > mm::comm::soem::makeFoeAbortRequest (uint8_t counter)
 Builds an FoE ERROR request, which aborts a slave's FoE transfer.
 
void mm::comm::soem::abortFoeTransfer (ecx_contextt *ctx, uint16_t slavePosition)
 Ends the FoE transfer a slave may still have in progress.
 
void mm::comm::soem::updateMailboxSyncManagers (ecx_contextt *ctx, uint16_t slave, EtherCatState targetState)
 Programs the mailbox sync managers of a slave for targetState.
 

Variables

constexpr int mm::comm::soem::kLateFrameTimeoutUs = 100'000
 How long a register read or write that a state change depends on waits for its frame, in microseconds.