mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +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
112 lines
2.6 KiB
C++
112 lines
2.6 KiB
C++
// Copyright (c) National Instruments 2008. All Rights Reserved.
|
|
// Do Not Edit... this file is generated!
|
|
|
|
#ifndef __nFRC_2015_1_0_4_PWM_h__
|
|
#define __nFRC_2015_1_0_4_PWM_h__
|
|
|
|
#include "tSystemInterface.h"
|
|
|
|
namespace nFPGA
|
|
{
|
|
namespace nFRC_2015_1_0_4
|
|
{
|
|
|
|
class tPWM
|
|
{
|
|
public:
|
|
tPWM(){}
|
|
virtual ~tPWM(){}
|
|
|
|
virtual tSystemInterface* getSystemInterface() = 0;
|
|
static tPWM* create(tRioStatusCode *status);
|
|
|
|
typedef enum
|
|
{
|
|
kNumSystems = 1,
|
|
} tIfaceConstants;
|
|
|
|
typedef
|
|
union{
|
|
struct{
|
|
#ifdef __vxworks
|
|
unsigned Period : 16;
|
|
unsigned MinHigh : 16;
|
|
#else
|
|
unsigned MinHigh : 16;
|
|
unsigned Period : 16;
|
|
#endif
|
|
};
|
|
struct{
|
|
unsigned value : 32;
|
|
};
|
|
} tConfig;
|
|
|
|
|
|
|
|
typedef enum
|
|
{
|
|
} tConfig_IfaceConstants;
|
|
|
|
virtual void writeConfig(tConfig value, tRioStatusCode *status) = 0;
|
|
virtual void writeConfig_Period(unsigned short value, tRioStatusCode *status) = 0;
|
|
virtual void writeConfig_MinHigh(unsigned short value, tRioStatusCode *status) = 0;
|
|
virtual tConfig readConfig(tRioStatusCode *status) = 0;
|
|
virtual unsigned short readConfig_Period(tRioStatusCode *status) = 0;
|
|
virtual unsigned short readConfig_MinHigh(tRioStatusCode *status) = 0;
|
|
|
|
|
|
typedef enum
|
|
{
|
|
} tLoopTiming_IfaceConstants;
|
|
|
|
virtual unsigned short readLoopTiming(tRioStatusCode *status) = 0;
|
|
|
|
|
|
typedef enum
|
|
{
|
|
kNumPeriodScaleMXPElements = 10,
|
|
} tPeriodScaleMXP_IfaceConstants;
|
|
|
|
virtual void writePeriodScaleMXP(unsigned char bitfield_index, unsigned char value, tRioStatusCode *status) = 0;
|
|
virtual unsigned char readPeriodScaleMXP(unsigned char bitfield_index, tRioStatusCode *status) = 0;
|
|
|
|
|
|
typedef enum
|
|
{
|
|
kNumPeriodScaleHdrElements = 10,
|
|
} tPeriodScaleHdr_IfaceConstants;
|
|
|
|
virtual void writePeriodScaleHdr(unsigned char bitfield_index, unsigned char value, tRioStatusCode *status) = 0;
|
|
virtual unsigned char readPeriodScaleHdr(unsigned char bitfield_index, tRioStatusCode *status) = 0;
|
|
|
|
|
|
|
|
|
|
typedef enum
|
|
{
|
|
kNumHdrRegisters = 10,
|
|
} tHdr_IfaceConstants;
|
|
|
|
virtual void writeHdr(unsigned char reg_index, unsigned short value, tRioStatusCode *status) = 0;
|
|
virtual unsigned short readHdr(unsigned char reg_index, tRioStatusCode *status) = 0;
|
|
|
|
|
|
typedef enum
|
|
{
|
|
kNumMXPRegisters = 10,
|
|
} tMXP_IfaceConstants;
|
|
|
|
virtual void writeMXP(unsigned char reg_index, unsigned short value, tRioStatusCode *status) = 0;
|
|
virtual unsigned short readMXP(unsigned char reg_index, tRioStatusCode *status) = 0;
|
|
|
|
|
|
private:
|
|
tPWM(const tPWM&);
|
|
void operator=(const tPWM&);
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
#endif // __nFRC_2015_1_0_4_PWM_h__
|