Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
ethercat_hardware::SyncMan Struct Reference

#include <wg_util.h>

Public Member Functions

union {
   uint8_t   raw [8]
__attribute__ ((__packed__))
bool readData (EthercatCom *com, EtherCAT_SlaveHandler *sh, EthercatDevice::AddrMode addrMode, unsigned num)
 Read data from Sync Manager. More...

Static Public Member Functions

static unsigned baseAddress (unsigned num)

Static Public Attributes

static const unsigned BASE_ADDR =0x800

Detailed Description

Definition at line 115 of file wg_util.h.

Member Function Documentation

union ethercat_hardware::SyncMan::@46 ethercat_hardware::SyncMan::__attribute__ ( (__packed__)  )
unsigned ethercat_hardware::SyncMan::baseAddress ( unsigned  num)

Definition at line 64 of file wg_util.cpp.

bool ethercat_hardware::SyncMan::readData ( EthercatCom com,
EtherCAT_SlaveHandler *  sh,
EthercatDevice::AddrMode  addrMode,
unsigned  num 

Read data from Sync Manager.

comused to perform communication with device
shslave to read data from
addrModeaddressing mode used to read data (FIXED/POSITIONAL)
numsyncman number to read 0-7
returns true for success, false for failure

Definition at line 80 of file wg_util.cpp.

Member Data Documentation

SyncManActivate ethercat_hardware::SyncMan::activate

Definition at line 123 of file wg_util.h.

const unsigned ethercat_hardware::SyncMan::BASE_ADDR =0x800

Definition at line 129 of file wg_util.h.

SyncManControl ethercat_hardware::SyncMan::control

Definition at line 121 of file wg_util.h.

uint16_t ethercat_hardware::SyncMan::length

Definition at line 120 of file wg_util.h.

SyncManPDIControl ethercat_hardware::SyncMan::pdi_control

Definition at line 124 of file wg_util.h.

uint8_t ethercat_hardware::SyncMan::raw[8]

Definition at line 117 of file wg_util.h.

uint16_t ethercat_hardware::SyncMan::start_addr

Definition at line 119 of file wg_util.h.

SyncManStatus ethercat_hardware::SyncMan::status

Definition at line 122 of file wg_util.h.

The documentation for this struct was generated from the following files:

Author(s): Rob Wheeler , Derek King
autogenerated on Fri Mar 15 2019 02:53:30