mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Add all of the most recent headers and .SOs Also make DriverStation work with the new FRC comm protocol, using the new functions for getting status data Change-Id: I1c7fc5f90e72c5fbebf87d9923ce0967ed0ef3bc Initial HAL support for v13 ds Change-Id: I9a7f37ef8e24241598fa3981cb3df30c07c52e0f New ds stuff in the HAL Change-Id: I025910625453baf63f79f49bbc70ba8b2f093f50 New ds stuff in C++ Joysticks are still todo Driver station IO is pulled out Change-Id: I1bb59037c097713bd943e7bef00e12f67f13c3ac New ds works in C++ and Java. Joysticks still todo Change-Id: Ic93f8686856761badc592eceaf05964f52355578 Make joysticks work again with the v13 image protocol Change-Id: Ief7ee95d3398c2262ca07ab7d60499af3c8f60f7
150 lines
3.8 KiB
C++
150 lines
3.8 KiB
C++
// Copyright (c) National Instruments 2008. All Rights Reserved.
|
|
// Do Not Edit... this file is generated!
|
|
|
|
#ifndef __nFRC_2012_1_6_4_AI_h__
|
|
#define __nFRC_2012_1_6_4_AI_h__
|
|
|
|
#include "tSystemInterface.h"
|
|
|
|
namespace nFPGA
|
|
{
|
|
namespace nFRC_2012_1_6_4
|
|
{
|
|
|
|
class tAI
|
|
{
|
|
public:
|
|
tAI(){}
|
|
virtual ~tAI(){}
|
|
|
|
virtual tSystemInterface* getSystemInterface() = 0;
|
|
static tAI* create(unsigned char sys_index, tRioStatusCode *status);
|
|
virtual unsigned char getSystemIndex() = 0;
|
|
|
|
|
|
typedef enum
|
|
{
|
|
kNumSystems = 2,
|
|
} tIfaceConstants;
|
|
|
|
typedef
|
|
union{
|
|
struct{
|
|
#ifdef __vxworks
|
|
unsigned Channel : 3;
|
|
unsigned Module : 1;
|
|
unsigned Averaged : 1;
|
|
#else
|
|
unsigned Averaged : 1;
|
|
unsigned Module : 1;
|
|
unsigned Channel : 3;
|
|
#endif
|
|
};
|
|
struct{
|
|
unsigned value : 5;
|
|
};
|
|
} tReadSelect;
|
|
typedef
|
|
union{
|
|
struct{
|
|
#ifdef __vxworks
|
|
unsigned ScanSize : 3;
|
|
unsigned ConvertRate : 26;
|
|
#else
|
|
unsigned ConvertRate : 26;
|
|
unsigned ScanSize : 3;
|
|
#endif
|
|
};
|
|
struct{
|
|
unsigned value : 29;
|
|
};
|
|
} tConfig;
|
|
|
|
|
|
typedef enum
|
|
{
|
|
} tConfig_IfaceConstants;
|
|
|
|
virtual void writeConfig(tConfig value, tRioStatusCode *status) = 0;
|
|
virtual void writeConfig_ScanSize(unsigned char value, tRioStatusCode *status) = 0;
|
|
virtual void writeConfig_ConvertRate(unsigned int value, tRioStatusCode *status) = 0;
|
|
virtual tConfig readConfig(tRioStatusCode *status) = 0;
|
|
virtual unsigned char readConfig_ScanSize(tRioStatusCode *status) = 0;
|
|
virtual unsigned int readConfig_ConvertRate(tRioStatusCode *status) = 0;
|
|
|
|
|
|
typedef enum
|
|
{
|
|
} tLoopTiming_IfaceConstants;
|
|
|
|
virtual unsigned int readLoopTiming(tRioStatusCode *status) = 0;
|
|
|
|
|
|
typedef enum
|
|
{
|
|
kNumOversampleBitsElements = 8,
|
|
} tOversampleBits_IfaceConstants;
|
|
|
|
virtual void writeOversampleBits(unsigned char bitfield_index, unsigned char value, tRioStatusCode *status) = 0;
|
|
virtual unsigned char readOversampleBits(unsigned char bitfield_index, tRioStatusCode *status) = 0;
|
|
|
|
|
|
typedef enum
|
|
{
|
|
kNumAverageBitsElements = 8,
|
|
} tAverageBits_IfaceConstants;
|
|
|
|
virtual void writeAverageBits(unsigned char bitfield_index, unsigned char value, tRioStatusCode *status) = 0;
|
|
virtual unsigned char readAverageBits(unsigned char bitfield_index, tRioStatusCode *status) = 0;
|
|
|
|
|
|
typedef enum
|
|
{
|
|
kNumScanListElements = 8,
|
|
} tScanList_IfaceConstants;
|
|
|
|
virtual void writeScanList(unsigned char bitfield_index, unsigned char value, tRioStatusCode *status) = 0;
|
|
virtual unsigned char readScanList(unsigned char bitfield_index, tRioStatusCode *status) = 0;
|
|
|
|
|
|
|
|
typedef enum
|
|
{
|
|
} tOutput_IfaceConstants;
|
|
|
|
virtual signed int readOutput(tRioStatusCode *status) = 0;
|
|
|
|
|
|
typedef enum
|
|
{
|
|
} tLatchOutput_IfaceConstants;
|
|
|
|
virtual void strobeLatchOutput(tRioStatusCode *status) = 0;
|
|
|
|
|
|
typedef enum
|
|
{
|
|
} tReadSelect_IfaceConstants;
|
|
|
|
virtual void writeReadSelect(tReadSelect value, tRioStatusCode *status) = 0;
|
|
virtual void writeReadSelect_Channel(unsigned char value, tRioStatusCode *status) = 0;
|
|
virtual void writeReadSelect_Module(unsigned char value, tRioStatusCode *status) = 0;
|
|
virtual void writeReadSelect_Averaged(bool value, tRioStatusCode *status) = 0;
|
|
virtual tReadSelect readReadSelect(tRioStatusCode *status) = 0;
|
|
virtual unsigned char readReadSelect_Channel(tRioStatusCode *status) = 0;
|
|
virtual unsigned char readReadSelect_Module(tRioStatusCode *status) = 0;
|
|
virtual bool readReadSelect_Averaged(tRioStatusCode *status) = 0;
|
|
|
|
|
|
|
|
|
|
private:
|
|
tAI(const tAI&);
|
|
void operator=(const tAI&);
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
#endif // __nFRC_2012_1_6_4_AI_h__
|