SyncMan Struct Reference

#include <wg0x.h>

List of all members.

Public Member Functions

bool readData (EthercatCom *com, EtherCAT_SlaveHandler *sh, EthercatDevice::AddrMode addrMode, unsigned num)
 Read data from Sync Manager.

Static Public Member Functions

static unsigned baseAddress (unsigned num)

Public Attributes

union {
   struct {
      SyncManActivate   activate
      SyncManControl   control
      uint16_t   length
      SyncManPDIControl   pdi_control
      uint16_t   start_addr
      SyncManStatus   status
   }   __packed__
   uint8_t   raw [8]

Static Public Attributes

static const unsigned BASE_ADDR = 0x800

Detailed Description

Definition at line 191 of file wg0x.h.

Member Function Documentation

unsigned SyncMan::baseAddress ( unsigned  num  )  [static]

Definition at line 1509 of file wg0x.cpp.

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

Read data from Sync Manager.

com used to perform communication with device
sh slave to read data from
addrMode addressing mode used to read data (FIXED/POSITIONAL)
num syncman number to read 0-7
returns true for success, false for failure

Definition at line 1525 of file wg0x.cpp.

Member Data Documentation

union { ... } SyncMan::__packed__
struct { ... } SyncMan::__packed__

Definition at line 199 of file wg0x.h.

const unsigned SyncMan::BASE_ADDR = 0x800 [static]

Definition at line 205 of file wg0x.h.

Definition at line 197 of file wg0x.h.

uint16_t SyncMan::length

Definition at line 196 of file wg0x.h.

Definition at line 200 of file wg0x.h.

uint8_t SyncMan::raw[8]

Definition at line 193 of file wg0x.h.

Definition at line 195 of file wg0x.h.

Definition at line 198 of file wg0x.h.

The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines

Author(s): Maintained by Derek King (email:
autogenerated on Fri Jan 11 09:11:23 2013