org.robokind.impl.motion.dynamixel.enums
Enum Register

java.lang.Object
  extended by java.lang.Enum<Register>
      extended by org.robokind.impl.motion.dynamixel.enums.Register
All Implemented Interfaces:
Serializable, Comparable<Register>

public enum Register
extends Enum<Register>

Defines the various Registers of a DynamixelJoint. Contains the Register address, number of bytes, and caching and synchronization information.

Author:
Matthew Stevenson

Enum Constant Summary
AlarmLed
           
AlarmShutdown
           
BaudRate
           
CcwAngleLimit
           
CcwComplianceMargin
           
CcwComplianceSlope
           
CurrentLoad
           
CurrentPosition
           
CurrentSpeed
           
CurrentTemperature
           
CurrentVoltage
           
CwAngleLimit
           
CwComplianceMargin
           
CwComplianceSlope
           
DownCalibration
           
FirmwareVersion
           
GoalPosition
           
HighVoltageLimit
           
Id
           
Led
           
Lock
           
LowVoltageLimit
           
MaxTorque
           
ModelNumber
           
Moving
           
MovingSpeed
           
Punch
           
RegisteredInstruction
           
ReturnDelay
           
StatusReturnLevel
           
TemperatureLimit
           
TorqueEnable
           
TorqueLimit
           
UpCalibration
           
 
Method Summary
static Register get(byte b)
          Returns the Register value with the given address.
 byte getByte()
          Returns the Register address as a byte.
 int getLength()
          Returns the number of bytes associated with the Register.
 boolean isCached()
          Is the Registered cached.
 boolean isSynchronized()
          Is the Registered included in a standard synchronized write.
static Register valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Register[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ModelNumber

public static final Register ModelNumber

FirmwareVersion

public static final Register FirmwareVersion

Id

public static final Register Id

BaudRate

public static final Register BaudRate

ReturnDelay

public static final Register ReturnDelay

CwAngleLimit

public static final Register CwAngleLimit

CcwAngleLimit

public static final Register CcwAngleLimit

TemperatureLimit

public static final Register TemperatureLimit

LowVoltageLimit

public static final Register LowVoltageLimit

HighVoltageLimit

public static final Register HighVoltageLimit

MaxTorque

public static final Register MaxTorque

StatusReturnLevel

public static final Register StatusReturnLevel

AlarmLed

public static final Register AlarmLed

AlarmShutdown

public static final Register AlarmShutdown

DownCalibration

public static final Register DownCalibration

UpCalibration

public static final Register UpCalibration

TorqueEnable

public static final Register TorqueEnable

Led

public static final Register Led

CwComplianceMargin

public static final Register CwComplianceMargin

CcwComplianceMargin

public static final Register CcwComplianceMargin

CwComplianceSlope

public static final Register CwComplianceSlope

CcwComplianceSlope

public static final Register CcwComplianceSlope

GoalPosition

public static final Register GoalPosition

MovingSpeed

public static final Register MovingSpeed

TorqueLimit

public static final Register TorqueLimit

CurrentPosition

public static final Register CurrentPosition

CurrentSpeed

public static final Register CurrentSpeed

CurrentLoad

public static final Register CurrentLoad

CurrentVoltage

public static final Register CurrentVoltage

CurrentTemperature

public static final Register CurrentTemperature

RegisteredInstruction

public static final Register RegisteredInstruction

Moving

public static final Register Moving

Lock

public static final Register Lock

Punch

public static final Register Punch
Method Detail

values

public static Register[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Register c : Register.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Register valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getByte

public byte getByte()
Returns the Register address as a byte.

Returns:
Register address as a byte

getLength

public int getLength()
Returns the number of bytes associated with the Register.

Returns:
number of bytes associated with the Register

isCached

public boolean isCached()
Is the Registered cached.

Returns:
true if the Register value is cached by the DynamixelJoint

isSynchronized

public boolean isSynchronized()
Is the Registered included in a standard synchronized write.

Returns:
true if the Register is included in a standard synchronized write

get

public static Register get(byte b)
Returns the Register value with the given address.

Parameters:
b - Register address
Returns:
Register value with the given address


Copyright © 2011-2013. All Rights Reserved.