WG0XSpiEepromCmd Struct Reference

#include <wg0x.h>

List of all members.

Public Member Functions

void build_arbitrary (unsigned length)
void build_read (unsigned page)
void build_write (unsigned page)

Public Attributes

union {
   struct {
      uint8_t   busy_:1
      uint8_t   operation_:4
      uint8_t   start_:1
      uint8_t   unused2_:2
   }   __packed__
   uint8_t   command_
}; 
uint16_t page_

Static Public Attributes

static const unsigned SPI_ARBITRARY_OP = 3
static const unsigned SPI_BUFFER_ADDR = 0xF400
static const unsigned SPI_COMMAND_ADDR = 0x0230
static const unsigned SPI_READ_OP = 0
static const unsigned SPI_WRITE_OP = 1

Detailed Description

Definition at line 77 of file wg0x.h.


Member Function Documentation

void WG0XSpiEepromCmd::build_arbitrary ( unsigned  length  )  [inline]

Definition at line 104 of file wg0x.h.

void WG0XSpiEepromCmd::build_read ( unsigned  page  )  [inline]

Definition at line 92 of file wg0x.h.

void WG0XSpiEepromCmd::build_write ( unsigned  page  )  [inline]

Definition at line 98 of file wg0x.h.


Member Data Documentation

union { ... }

Definition at line 87 of file wg0x.h.

Definition at line 82 of file wg0x.h.

Definition at line 85 of file wg0x.h.

Definition at line 79 of file wg0x.h.

const unsigned WG0XSpiEepromCmd::SPI_ARBITRARY_OP = 3 [static]

Definition at line 113 of file wg0x.h.

const unsigned WG0XSpiEepromCmd::SPI_BUFFER_ADDR = 0xF400 [static]

Definition at line 116 of file wg0x.h.

const unsigned WG0XSpiEepromCmd::SPI_COMMAND_ADDR = 0x0230 [static]

Definition at line 115 of file wg0x.h.

const unsigned WG0XSpiEepromCmd::SPI_READ_OP = 0 [static]

Definition at line 111 of file wg0x.h.

const unsigned WG0XSpiEepromCmd::SPI_WRITE_OP = 1 [static]

Definition at line 112 of file wg0x.h.

Definition at line 86 of file wg0x.h.

Definition at line 88 of file wg0x.h.


The documentation for this struct was generated from the following file:
 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