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 {
   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__))
 
struct ethercat_hardware::MotorHeatingModelParameters ethercat_hardware::__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 122 of file wg_util.h.

◆ BASE_ADDR

static const unsigned BASE_ADDR =0x806
static

Definition at line 87 of file wg_util.h.

◆ buffer_status

uint8_t buffer_status

Definition at line 70 of file wg_util.h.

◆ control

SyncManControl control

Definition at line 120 of file wg_util.h.

◆ deactivate

uint8_t deactivate

Definition at line 102 of file wg_util.h.

◆ direction

uint8_t direction

Definition at line 49 of file wg_util.h.

◆ ecat_irq_enable

uint8_t ecat_irq_enable

Definition at line 50 of file wg_util.h.

◆ ecat_latch_event

uint8_t ecat_latch_event

Definition at line 87 of file wg_util.h.

◆ enable

uint8_t enable

Definition at line 84 of file wg_util.h.

◆ interrupt_read

uint8_t interrupt_read

Definition at line 67 of file wg_util.h.

◆ interrupt_write

uint8_t interrupt_write

Definition at line 66 of file wg_util.h.

◆ length

uint16_t length

Definition at line 119 of file wg_util.h.

◆ mailbox_status

uint8_t mailbox_status

Definition at line 69 of file wg_util.h.

◆ mode

uint8_t mode

Definition at line 48 of file wg_util.h.

◆ pdi_control

SyncManPDIControl pdi_control

Definition at line 123 of file wg_util.h.

◆ pdi_irq_enable

uint8_t pdi_irq_enable

Definition at line 51 of file wg_util.h.

◆ pdi_latch_event

uint8_t pdi_latch_event

Definition at line 88 of file wg_util.h.

◆ raw

uint8_t raw

Definition at line 77 of file wg_util.h.

◆ repeat_ack

uint8_t repeat_ack

Definition at line 103 of file wg_util.h.

◆ repeat_request

uint8_t repeat_request

Definition at line 85 of file wg_util.h.

◆ res1

uint8_t res1

Definition at line 53 of file wg_util.h.

◆ res2

uint8_t res2

Definition at line 71 of file wg_util.h.

◆ res4

uint8_t res4

Definition at line 86 of file wg_util.h.

◆ res6

uint8_t res6

Definition at line 104 of file wg_util.h.

◆ start_addr

uint16_t start_addr

Definition at line 118 of file wg_util.h.

◆ status

SyncManStatus status

Definition at line 121 of file wg_util.h.

◆ watchdog_enable

uint8_t watchdog_enable

Definition at line 52 of file wg_util.h.



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