WPILib 2012
WPILibRoboticsLibraryforFRC
ChipObject/tAccumulator.h
00001 // Copyright (c) National Instruments 2008.  All Rights Reserved.
00002 // Do Not Edit... this file is generated!
00003 
00004 #ifndef __nFRC_2012_1_6_4_Accumulator_h__
00005 #define __nFRC_2012_1_6_4_Accumulator_h__
00006 
00007 #include "tSystemInterface.h"
00008 
00009 namespace nFPGA
00010 {
00011 namespace nFRC_2012_1_6_4
00012 {
00013 
00014 class tAccumulator
00015 {
00016 public:
00017    tAccumulator(){}
00018    virtual ~tAccumulator(){}
00019 
00020    virtual tSystemInterface* getSystemInterface() = 0;
00021    static tAccumulator* create(unsigned char sys_index, tRioStatusCode *status);
00022    virtual unsigned char getSystemIndex() = 0;
00023 
00024 
00025    typedef enum
00026    {
00027       kNumSystems = 2,
00028    } tIfaceConstants;
00029 
00030    typedef
00031    union{
00032       struct{
00033          signed long long Value;
00034          unsigned Count : 32;
00035       };
00036       struct{
00037          unsigned value : 32;
00038          unsigned value2 : 32;
00039          unsigned value3 : 32;
00040       };
00041    } tOutput;
00042 
00043 
00044    typedef enum
00045    {
00046    } tOutput_IfaceConstants;
00047 
00048    virtual tOutput readOutput(tRioStatusCode *status) = 0;
00049    virtual signed long long readOutput_Value(tRioStatusCode *status) = 0;
00050    virtual unsigned int readOutput_Count(tRioStatusCode *status) = 0;
00051 
00052 
00053    typedef enum
00054    {
00055    } tCenter_IfaceConstants;
00056 
00057    virtual void writeCenter(signed int value, tRioStatusCode *status) = 0;
00058    virtual signed int readCenter(tRioStatusCode *status) = 0;
00059 
00060 
00061    typedef enum
00062    {
00063    } tReset_IfaceConstants;
00064 
00065    virtual void strobeReset(tRioStatusCode *status) = 0;
00066 
00067 
00068    typedef enum
00069    {
00070    } tDeadband_IfaceConstants;
00071 
00072    virtual void writeDeadband(signed int value, tRioStatusCode *status) = 0;
00073    virtual signed int readDeadband(tRioStatusCode *status) = 0;
00074 
00075 
00076 
00077 
00078 
00079 private:
00080    tAccumulator(const tAccumulator&);
00081    void operator=(const tAccumulator&);
00082 };
00083 
00084 }
00085 }
00086 
00087 #endif // __nFRC_2012_1_6_4_Accumulator_h__
 All Classes Functions Variables