WG0XMbxHdr Struct Reference

#include <wg0x.h>

List of all members.

Public Member Functions

bool build (unsigned address, unsigned length, MbxCmdType type, unsigned seqnum)
bool verifyChecksum (void) const

Public Attributes

union {
   struct {
      uint16_t   length_:12
      uint16_t   seqnum_: 3
      uint16_t   write_nread_:1
   }   __packed__
   uint16_t   command_
}; 
uint16_t address_
uint8_t checksum_

Detailed Description

Definition at line 47 of file wg0x.h.


Member Function Documentation

bool WG0XMbxHdr::build ( unsigned  address,
unsigned  length,
MbxCmdType  type,
unsigned  seqnum 
)

Definition at line 87 of file wg0x.cpp.

bool WG0XMbxHdr::verifyChecksum ( void   )  const

Definition at line 119 of file wg0x.cpp.


Member Data Documentation

union { ... }
struct { ... } WG0XMbxHdr::__packed__

Definition at line 49 of file wg0x.h.

Definition at line 60 of file wg0x.h.

Definition at line 52 of file wg0x.h.

Definition at line 55 of file wg0x.h.

Definition at line 56 of file wg0x.h.

Definition at line 57 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


ethercat_hardware
Author(s): Maintained by Derek King (email: dking@willowgarage.com)
autogenerated on Fri Jan 11 09:11:23 2013