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

◆ __attribute__()

union ethercat_hardware::SyncMan::@46 ethercat_hardware::SyncMan::__attribute__ ( (__packed__)  )

◆ baseAddress()

unsigned ethercat_hardware::SyncMan::baseAddress ( unsigned  num)
static

Definition at line 64 of file wg_util.cpp.

◆ readData()

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

Read data from Sync Manager.

Parameters
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
returns true for success, false for failure

Definition at line 80 of file wg_util.cpp.

Member Data Documentation

◆ activate

SyncManActivate ethercat_hardware::SyncMan::activate

Definition at line 123 of file wg_util.h.

◆ BASE_ADDR

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

Definition at line 129 of file wg_util.h.

◆ control

SyncManControl ethercat_hardware::SyncMan::control

Definition at line 121 of file wg_util.h.

◆ length

uint16_t ethercat_hardware::SyncMan::length

Definition at line 120 of file wg_util.h.

◆ pdi_control

SyncManPDIControl ethercat_hardware::SyncMan::pdi_control

Definition at line 124 of file wg_util.h.

◆ raw

uint8_t ethercat_hardware::SyncMan::raw[8]

Definition at line 117 of file wg_util.h.

◆ start_addr

uint16_t ethercat_hardware::SyncMan::start_addr

Definition at line 119 of file wg_util.h.

◆ status

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:


ethercat_hardware
Author(s): Rob Wheeler , Derek King
autogenerated on Tue Mar 28 2023 02:10:20