Classes | Namespaces | Functions | Variables
wg_util.h File Reference
#include <stdint.h>
#include "ethercat_hardware/ethercat_com.h"
#include "ethercat_hardware/ethercat_device.h"
Include dependency graph for wg_util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ethercat_hardware::SyncMan
 
struct  ethercat_hardware::SyncManActivate
 
struct  ethercat_hardware::SyncManControl
 
struct  ethercat_hardware::SyncManPDIControl
 
struct  ethercat_hardware::SyncManStatus
 

Namespaces

 ethercat_hardware
 
 ethercat_hardware::wg_util
 

Functions

struct ethercat_hardware::MotorHeatingModelParameters ethercat_hardware::__attribute__ ((__packed__))
 
struct {
   uint8_t   direction: 2
 
   uint8_t   ecat_irq_enable: 1
 
   uint8_t   mode: 2
 
   uint8_t   pdi_irq_enable: 1
 
   uint8_t   res1: 1
 
   uint8_t   watchdog_enable: 1
 
__attribute__ ((__packed__))
 
static unsigned baseAddress (unsigned num)
 
unsigned ethercat_hardware::wg_util::computeChecksum (void const *data, unsigned length)
 
bool readData (EthercatCom *com, EtherCAT_SlaveHandler *sh, EthercatDevice::AddrMode addrMode, unsigned num)
 
unsigned int ethercat_hardware::wg_util::rotateRight8 (unsigned in)
 
bool writeData (EthercatCom *com, EtherCAT_SlaveHandler *sh, EthercatDevice::AddrMode addrMode, unsigned num) const
 

Variables

SyncManActivate activate
 
static const unsigned BASE_ADDR =0x806
 
uint8_t buffer_status
 
SyncManControl control
 
uint8_t deactivate
 
uint8_t direction
 
uint8_t ecat_irq_enable
 
uint8_t ecat_latch_event
 
uint8_t enable
 
uint8_t interrupt_read
 
uint8_t interrupt_write
 
uint16_t length
 
uint8_t mailbox_status
 
uint8_t mode
 
SyncManPDIControl pdi_control
 
uint8_t pdi_irq_enable
 
uint8_t pdi_latch_event
 
uint8_t raw
 
uint8_t repeat_ack
 
uint8_t repeat_request
 
uint8_t res1
 
uint8_t res2
 
uint8_t res4
 
uint8_t res6
 
uint16_t start_addr
 
SyncManStatus status
 
uint8_t watchdog_enable
 

Function Documentation

◆ __attribute__()

struct @24 __attribute__::__attribute__ ( (__packed__)  )

◆ baseAddress()

static unsigned baseAddress ( unsigned  num)
static

◆ readData()

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

◆ writeData()

bool __attribute__::writeData ( EthercatCom com,
EtherCAT_SlaveHandler *  sh,
EthercatDevice::AddrMode  addrMode,
unsigned  num 
) const

Variable Documentation

◆ activate

SyncManActivate activate

Definition at line 154 of file wg_util.h.

◆ BASE_ADDR

static const unsigned BASE_ADDR =0x806
static

Definition at line 12 of file wg_util.h.

◆ buffer_status

uint8_t buffer_status

Definition at line 102 of file wg_util.h.

◆ control

SyncManControl control

Definition at line 152 of file wg_util.h.

◆ deactivate

uint8_t deactivate

Definition at line 134 of file wg_util.h.

◆ direction

uint8_t direction

Definition at line 145 of file wg_util.h.

◆ ecat_irq_enable

uint8_t ecat_irq_enable

Definition at line 146 of file wg_util.h.

◆ ecat_latch_event

uint8_t ecat_latch_event

Definition at line 119 of file wg_util.h.

◆ enable

uint8_t enable

Definition at line 116 of file wg_util.h.

◆ interrupt_read

uint8_t interrupt_read

Definition at line 99 of file wg_util.h.

◆ interrupt_write

uint8_t interrupt_write

Definition at line 98 of file wg_util.h.

◆ length

uint16_t length

Definition at line 151 of file wg_util.h.

◆ mailbox_status

uint8_t mailbox_status

Definition at line 101 of file wg_util.h.

◆ mode

uint8_t mode

Definition at line 144 of file wg_util.h.

◆ pdi_control

SyncManPDIControl pdi_control

Definition at line 155 of file wg_util.h.

◆ pdi_irq_enable

uint8_t pdi_irq_enable

Definition at line 147 of file wg_util.h.

◆ pdi_latch_event

uint8_t pdi_latch_event

Definition at line 120 of file wg_util.h.

◆ raw

uint8_t raw

Definition at line 34 of file wg_util.h.

◆ repeat_ack

uint8_t repeat_ack

Definition at line 135 of file wg_util.h.

◆ repeat_request

uint8_t repeat_request

Definition at line 117 of file wg_util.h.

◆ res1

uint8_t res1

Definition at line 149 of file wg_util.h.

◆ res2

uint8_t res2

Definition at line 103 of file wg_util.h.

◆ res4

uint8_t res4

Definition at line 118 of file wg_util.h.

◆ res6

uint8_t res6

Definition at line 136 of file wg_util.h.

◆ start_addr

uint16_t start_addr

Definition at line 150 of file wg_util.h.

◆ status

SyncManStatus status

Definition at line 153 of file wg_util.h.

◆ watchdog_enable

uint8_t watchdog_enable

Definition at line 148 of file wg_util.h.



ethercat_hardware
Author(s): Rob Wheeler , Derek King
autogenerated on Thu Sep 26 2024 02:44:05