mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
This is the changes made by Patrick Plenefisch converting the native code to use CMake and the CMake Maven Plugin, as opposed to the native Maven plugin. This is to allow for compatibility with newer versions of the GCC toolchain. All the cpp sources were moved from maven style directories to cpp style directories for CMake. Change-Id: I67f5e3608948f37c83b0990d232105a3784f8593
88 lines
1.7 KiB
C++
88 lines
1.7 KiB
C++
// Copyright (c) National Instruments 2008. All Rights Reserved.
|
|
// Do Not Edit... this file is generated!
|
|
|
|
#ifndef __nFRC_2015_1_0_4_Accumulator_h__
|
|
#define __nFRC_2015_1_0_4_Accumulator_h__
|
|
|
|
#include "tSystemInterface.h"
|
|
|
|
namespace nFPGA
|
|
{
|
|
namespace nFRC_2015_1_0_4
|
|
{
|
|
|
|
class tAccumulator
|
|
{
|
|
public:
|
|
tAccumulator(){}
|
|
virtual ~tAccumulator(){}
|
|
|
|
virtual tSystemInterface* getSystemInterface() = 0;
|
|
static tAccumulator* create(unsigned char sys_index, tRioStatusCode *status);
|
|
virtual unsigned char getSystemIndex() = 0;
|
|
|
|
|
|
typedef enum
|
|
{
|
|
kNumSystems = 2,
|
|
} tIfaceConstants;
|
|
|
|
typedef
|
|
union{
|
|
struct{
|
|
signed long long Value;
|
|
unsigned Count : 32;
|
|
};
|
|
struct{
|
|
unsigned value : 32;
|
|
unsigned value2 : 32;
|
|
unsigned value3 : 32;
|
|
};
|
|
} tOutput;
|
|
|
|
|
|
typedef enum
|
|
{
|
|
} tOutput_IfaceConstants;
|
|
|
|
virtual tOutput readOutput(tRioStatusCode *status) = 0;
|
|
virtual signed long long readOutput_Value(tRioStatusCode *status) = 0;
|
|
virtual unsigned int readOutput_Count(tRioStatusCode *status) = 0;
|
|
|
|
|
|
typedef enum
|
|
{
|
|
} tCenter_IfaceConstants;
|
|
|
|
virtual void writeCenter(signed int value, tRioStatusCode *status) = 0;
|
|
virtual signed int readCenter(tRioStatusCode *status) = 0;
|
|
|
|
|
|
typedef enum
|
|
{
|
|
} tDeadband_IfaceConstants;
|
|
|
|
virtual void writeDeadband(signed int value, tRioStatusCode *status) = 0;
|
|
virtual signed int readDeadband(tRioStatusCode *status) = 0;
|
|
|
|
|
|
typedef enum
|
|
{
|
|
} tReset_IfaceConstants;
|
|
|
|
virtual void strobeReset(tRioStatusCode *status) = 0;
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
tAccumulator(const tAccumulator&);
|
|
void operator=(const tAccumulator&);
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
#endif // __nFRC_2015_1_0_4_Accumulator_h__
|