edu.wpi.first.wpilibj.fpga
Class tEncoder

java.lang.Object
  extended by edu.wpi.first.wpilibj.fpga.tSystem
      extended by edu.wpi.first.wpilibj.fpga.tEncoder
All Implemented Interfaces:
ExpectedFPGASignature

public class tEncoder
extends tSystem


Field Summary
static int kNumSystems
           
 int m_SystemIndex
           
 
Fields inherited from class edu.wpi.first.wpilibj.fpga.tSystem
m_DeviceHandle, status
 
Fields inherited from interface edu.wpi.first.wpilibj.fpga.ExpectedFPGASignature
kBitfileName, kExpectedFPGARevision, kExpectedFPGASignature, kExpectedFPGASignatureStr, kExpectedFPGAVersion
 
Constructor Summary
tEncoder(int sys_index)
           
 
Method Summary
protected  void finalize()
           
 int getSystemIndex()
           
 boolean readConfig_ASource_AnalogTrigger()
           
 byte readConfig_ASource_Channel()
           
 byte readConfig_ASource_Module()
           
 boolean readConfig_BSource_AnalogTrigger()
           
 byte readConfig_BSource_Channel()
           
 byte readConfig_BSource_Module()
           
 boolean readConfig_Enable()
           
 boolean readConfig_IndexActiveHigh()
           
 boolean readConfig_IndexSource_AnalogTrigger()
           
 byte readConfig_IndexSource_Channel()
           
 byte readConfig_IndexSource_Module()
           
 boolean readConfig_Reverse()
           
 int readConfig()
           
 boolean readOutput_Direction()
           
 int readOutput_Value()
           
 int readOutput()
           
 byte readTimerConfig_AverageSize()
           
 int readTimerConfig_StallPeriod()
           
 boolean readTimerConfig_UpdateWhenEmpty()
           
 int readTimerConfig()
           
 byte readTimerOutput_Count()
           
 int readTimerOutput_Period()
           
 boolean readTimerOutput_Stalled()
           
 int readTimerOutput()
           
 void strobeReset()
           
 void writeConfig_ASource_AnalogTrigger(boolean value)
           
 void writeConfig_ASource_Channel(int value)
           
 void writeConfig_ASource_Module(int value)
           
 void writeConfig_BSource_AnalogTrigger(boolean value)
           
 void writeConfig_BSource_Channel(int value)
           
 void writeConfig_BSource_Module(int value)
           
 void writeConfig_Enable(boolean value)
           
 void writeConfig_IndexActiveHigh(boolean value)
           
 void writeConfig_IndexSource_AnalogTrigger(boolean value)
           
 void writeConfig_IndexSource_Channel(int value)
           
 void writeConfig_IndexSource_Module(int value)
           
 void writeConfig_Reverse(boolean value)
           
 void writeConfig(int value)
           
 void writeTimerConfig_AverageSize(int value)
           
 void writeTimerConfig_StallPeriod(int value)
           
 void writeTimerConfig_UpdateWhenEmpty(boolean value)
           
 void writeTimerConfig(int value)
           
 
Methods inherited from class edu.wpi.first.wpilibj.fpga.tSystem
Release
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

kNumSystems

public static final int kNumSystems
See Also:
Constant Field Values

m_SystemIndex

public final int m_SystemIndex
Constructor Detail

tEncoder

public tEncoder(int sys_index)
Method Detail

finalize

protected void finalize()
Overrides:
finalize in class tSystem

getSystemIndex

public int getSystemIndex()

readOutput

public int readOutput()

readOutput_Direction

public boolean readOutput_Direction()

readOutput_Value

public int readOutput_Value()

writeConfig

public void writeConfig(int value)

writeConfig_ASource_Channel

public void writeConfig_ASource_Channel(int value)

writeConfig_ASource_Module

public void writeConfig_ASource_Module(int value)

writeConfig_ASource_AnalogTrigger

public void writeConfig_ASource_AnalogTrigger(boolean value)

writeConfig_BSource_Channel

public void writeConfig_BSource_Channel(int value)

writeConfig_BSource_Module

public void writeConfig_BSource_Module(int value)

writeConfig_BSource_AnalogTrigger

public void writeConfig_BSource_AnalogTrigger(boolean value)

writeConfig_IndexSource_Channel

public void writeConfig_IndexSource_Channel(int value)

writeConfig_IndexSource_Module

public void writeConfig_IndexSource_Module(int value)

writeConfig_IndexSource_AnalogTrigger

public void writeConfig_IndexSource_AnalogTrigger(boolean value)

writeConfig_IndexActiveHigh

public void writeConfig_IndexActiveHigh(boolean value)

writeConfig_Reverse

public void writeConfig_Reverse(boolean value)

writeConfig_Enable

public void writeConfig_Enable(boolean value)

readConfig

public int readConfig()

readConfig_ASource_Channel

public byte readConfig_ASource_Channel()

readConfig_ASource_Module

public byte readConfig_ASource_Module()

readConfig_ASource_AnalogTrigger

public boolean readConfig_ASource_AnalogTrigger()

readConfig_BSource_Channel

public byte readConfig_BSource_Channel()

readConfig_BSource_Module

public byte readConfig_BSource_Module()

readConfig_BSource_AnalogTrigger

public boolean readConfig_BSource_AnalogTrigger()

readConfig_IndexSource_Channel

public byte readConfig_IndexSource_Channel()

readConfig_IndexSource_Module

public byte readConfig_IndexSource_Module()

readConfig_IndexSource_AnalogTrigger

public boolean readConfig_IndexSource_AnalogTrigger()

readConfig_IndexActiveHigh

public boolean readConfig_IndexActiveHigh()

readConfig_Reverse

public boolean readConfig_Reverse()

readConfig_Enable

public boolean readConfig_Enable()

readTimerOutput

public int readTimerOutput()

readTimerOutput_Period

public int readTimerOutput_Period()

readTimerOutput_Count

public byte readTimerOutput_Count()

readTimerOutput_Stalled

public boolean readTimerOutput_Stalled()

strobeReset

public void strobeReset()

writeTimerConfig

public void writeTimerConfig(int value)

writeTimerConfig_StallPeriod

public void writeTimerConfig_StallPeriod(int value)

writeTimerConfig_AverageSize

public void writeTimerConfig_AverageSize(int value)

writeTimerConfig_UpdateWhenEmpty

public void writeTimerConfig_UpdateWhenEmpty(boolean value)

readTimerConfig

public int readTimerConfig()

readTimerConfig_StallPeriod

public int readTimerConfig_StallPeriod()

readTimerConfig_AverageSize

public byte readTimerConfig_AverageSize()

readTimerConfig_UpdateWhenEmpty

public boolean readTimerConfig_UpdateWhenEmpty()