int writeMailbox_(EthercatCom *com, unsigned address, void const *data, unsigned length)
Internal function.
bool writeMailboxInternal(EthercatCom *com, void const *data, unsigned length)
Writes data to mailbox.
void publishMailboxDiagnostics(diagnostic_updater::DiagnosticStatusWrapper &d)
bool readMailboxInternal(EthercatCom *com, void *data, unsigned length)
Reads data from read mailbox.
int readMailbox(EthercatCom *com, unsigned address, void *data, unsigned length)
Read data from WG0X local bus using mailbox communication.
EtherCAT_SlaveHandler * sh_
pthread_mutex_t mailbox_lock_
bool verifyDeviceStateForMailboxOperation()
static const unsigned MBX_COMMAND_PHY_ADDR
int readMailbox_(EthercatCom *com, unsigned address, void *data, unsigned length)
Internal function.
bool waitForWriteMailboxReady(EthercatCom *com)
Waits until write mailbox is empty or timeout.
static const unsigned MBX_COMMAND_SYNCMAN_NUM
static const unsigned MBX_STATUS_SYNCMAN_NUM
MbxDiagnostics mailbox_publish_diagnostics_
bool _readMailboxRepeatRequest(EthercatCom *com)
int writeMailbox(EthercatCom *com, unsigned address, void const *data, unsigned length)
Write data to WG0X local bus using mailbox communication.
bool readMailboxRepeatRequest(EthercatCom *com)
bool waitForReadMailboxReady(EthercatCom *com)
Waits until read mailbox is full or timeout.
void diagnoseMailboxError(EthercatCom *com)
Runs diagnostic on read and write mailboxes.
MbxDiagnostics mailbox_diagnostics_
static const unsigned MBX_STATUS_SIZE
static const unsigned MBX_STATUS_PHY_ADDR
bool clearReadMailbox(EthercatCom *com)
Clears read mailbox by reading first and last byte.
bool initialize(EtherCAT_SlaveHandler *sh)
static const unsigned MBX_COMMAND_SIZE
ethercat_hardware
Author(s): Rob Wheeler
, Derek King
autogenerated on Thu Sep 26 2024 02:44:04