Classes | Namespaces | Functions | Variables
wg_eeprom.cpp File Reference
#include "ethercat_hardware/wg_eeprom.h"
#include "ros/ros.h"
#include <boost/thread.hpp>
Include dependency graph for wg_eeprom.cpp:

Go to the source code of this file.

Classes

struct  ethercat_hardware::EepromStatusReg
 
struct  ethercat_hardware::WG0XSpiEepromCmd
 

Namespaces

 ethercat_hardware
 

Functions

struct ethercat_hardware::MotorHeatingModelParameters ethercat_hardware::__attribute__ ((__packed__))
 
struct {
   uint8_t   compare_: 1
 
   uint8_t   eeprom_size_: 4
 
   uint8_t   page_size_: 1
 
   uint8_t   ready_: 1
 
   uint8_t   write_protect_: 1
 
__attribute__ ((__packed__))
 
void build_arbitrary (unsigned length)
 
void build_read (unsigned page)
 
void build_write (unsigned page)
 

Variables

union {
   uint8_t   command_
 
__attribute__
 
uint8_t busy_
 
uint8_t compare_
 
uint8_t eeprom_size_
 
uint8_t operation_
 
uint16_t page_
 
uint8_t page_size_
 
uint8_t raw_
 
uint8_t ready_
 
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
 
uint8_t start_
 
uint8_t unused2_
 
uint8_t write_protect_
 

Function Documentation

struct @59 __attribute__::__attribute__ ( (__packed__)  )
void __attribute__::build_arbitrary ( unsigned  length)

Definition at line 1349 of file wg_eeprom.cpp.

void __attribute__::build_read ( unsigned  page)

Definition at line 1337 of file wg_eeprom.cpp.

void __attribute__::build_write ( unsigned  page)

Definition at line 1343 of file wg_eeprom.cpp.

Variable Documentation

union { ... } __attribute__
uint8_t busy_

Definition at line 52 of file wg_eeprom.cpp.

uint8_t command_

Definition at line 1327 of file wg_eeprom.cpp.

uint8_t compare_

Definition at line 95 of file wg_eeprom.cpp.

uint8_t eeprom_size_

Definition at line 94 of file wg_eeprom.cpp.

uint8_t operation_

Definition at line 50 of file wg_eeprom.cpp.

uint16_t page_

Definition at line 1324 of file wg_eeprom.cpp.

uint8_t page_size_

Definition at line 92 of file wg_eeprom.cpp.

uint8_t raw_

Definition at line 1332 of file wg_eeprom.cpp.

uint8_t ready_

Definition at line 96 of file wg_eeprom.cpp.

const unsigned SPI_ARBITRARY_OP = 3
static

Definition at line 1358 of file wg_eeprom.cpp.

const unsigned SPI_BUFFER_ADDR = 0xF400
static

Definition at line 1361 of file wg_eeprom.cpp.

const unsigned SPI_COMMAND_ADDR = 0x0230
static

Definition at line 1360 of file wg_eeprom.cpp.

const unsigned SPI_READ_OP = 0
static

Definition at line 1356 of file wg_eeprom.cpp.

const unsigned SPI_WRITE_OP = 1
static

Definition at line 1357 of file wg_eeprom.cpp.

uint8_t start_

Definition at line 51 of file wg_eeprom.cpp.

uint8_t unused2_

Definition at line 53 of file wg_eeprom.cpp.

uint8_t write_protect_

Definition at line 93 of file wg_eeprom.cpp.



ethercat_hardware
Author(s): Rob Wheeler , Derek King
autogenerated on Fri Mar 15 2019 02:53:29