Go to the source code of this file.
Classes |
struct | ethercat_hardware::WG0XMbxCmd |
struct | ethercat_hardware::WG0XMbxHdr |
Namespaces |
namespace | ethercat_hardware |
Defines |
#define | ERR_MODE "\033[41m" |
#define | ERROR_HDR "\033[41mERROR\033[0m" |
#define | GOOD_MODE "\033[42m" |
#define | INFO_MODE "\033[44m" |
#define | STD_MODE "\033[0m" |
#define | WARN_HDR "\033[43mERROR\033[0m" |
#define | WARN_MODE "\033[43m" |
Enumerations |
enum | ethercat_hardware::MbxCmdType { ethercat_hardware::LOCAL_BUS_READ = 1,
ethercat_hardware::LOCAL_BUS_WRITE = 2
} |
Functions |
struct
ethercat_hardware::MotorHeatingModelParameters | ethercat_hardware::__attribute__ ((__packed__)) |
bool | build (unsigned address, unsigned length, MbxCmdType type, unsigned seqnum) |
bool | build (unsigned address, unsigned length, MbxCmdType type, unsigned seqnum, void const *data) |
int | ethercat_hardware::safe_clock_gettime (clockid_t clk_id, timespec *time) |
| error checking wrapper around clock_gettime
|
void | ethercat_hardware::safe_usleep (uint32_t usec) |
| safe version of usleep.
|
int | ethercat_hardware::timediff_ms (const timespec ¤t, const timespec &start) |
| Find difference between two timespec values.
|
void | ethercat_hardware::updateIndexAndWkc (EC_Telegram *tg, EC_Logic *logic) |
bool | verifyChecksum (void) const |
Variables |
union { |
uint16_t command_ |
} | __attribute__ |
uint16_t | address_ |
uint8_t | checksum_ |
uint8_t | data_ [MBX_DATA_SIZE] |
WG0XMbxHdr | hdr_ |
uint16_t | length_ |
static const unsigned | ethercat_hardware::MBX_DATA_SIZE = (MBX_SIZE - sizeof(WG0XMbxHdr) - 1) |
static const unsigned | ethercat_hardware::MBX_SIZE = 512 |
uint16_t | seqnum_ |
uint16_t | write_nread_ |
Define Documentation
Function Documentation
bool __attribute__::build |
( |
unsigned |
address, |
|
|
unsigned |
length, |
|
|
MbxCmdType |
type, |
|
|
unsigned |
seqnum, |
|
|
void const * |
data |
|
) |
| |
Variable Documentation
uint8_t data_[MBX_DATA_SIZE] |