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
105 lines
2.3 KiB
C++
105 lines
2.3 KiB
C++
// Copyright (c) National Instruments 2008. All Rights Reserved.
|
|
// Do Not Edit... this file is generated!
|
|
|
|
#ifndef __nFRC_2015_1_0_7_Global_h__
|
|
#define __nFRC_2015_1_0_7_Global_h__
|
|
|
|
#include "tSystemInterface.h"
|
|
|
|
namespace nFPGA
|
|
{
|
|
namespace nFRC_2015_1_0_7
|
|
{
|
|
|
|
class tGlobal
|
|
{
|
|
public:
|
|
tGlobal(){}
|
|
virtual ~tGlobal(){}
|
|
|
|
virtual tSystemInterface* getSystemInterface() = 0;
|
|
static tGlobal* create(tRioStatusCode *status);
|
|
|
|
typedef enum
|
|
{
|
|
kNumSystems = 1,
|
|
} tIfaceConstants;
|
|
|
|
typedef
|
|
union{
|
|
struct{
|
|
#ifdef __vxworks
|
|
unsigned Radio : 8;
|
|
unsigned Comm : 8;
|
|
unsigned Mode : 8;
|
|
unsigned RSL : 1;
|
|
#else
|
|
unsigned RSL : 1;
|
|
unsigned Mode : 8;
|
|
unsigned Comm : 8;
|
|
unsigned Radio : 8;
|
|
#endif
|
|
};
|
|
struct{
|
|
unsigned value : 25;
|
|
};
|
|
} tLEDs;
|
|
|
|
|
|
|
|
typedef enum
|
|
{
|
|
} tLEDs_IfaceConstants;
|
|
|
|
virtual void writeLEDs(tLEDs value, tRioStatusCode *status) = 0;
|
|
virtual void writeLEDs_Radio(unsigned char value, tRioStatusCode *status) = 0;
|
|
virtual void writeLEDs_Comm(unsigned char value, tRioStatusCode *status) = 0;
|
|
virtual void writeLEDs_Mode(unsigned char value, tRioStatusCode *status) = 0;
|
|
virtual void writeLEDs_RSL(bool value, tRioStatusCode *status) = 0;
|
|
virtual tLEDs readLEDs(tRioStatusCode *status) = 0;
|
|
virtual unsigned char readLEDs_Radio(tRioStatusCode *status) = 0;
|
|
virtual unsigned char readLEDs_Comm(tRioStatusCode *status) = 0;
|
|
virtual unsigned char readLEDs_Mode(tRioStatusCode *status) = 0;
|
|
virtual bool readLEDs_RSL(tRioStatusCode *status) = 0;
|
|
|
|
|
|
typedef enum
|
|
{
|
|
} tVersion_IfaceConstants;
|
|
|
|
virtual unsigned short readVersion(tRioStatusCode *status) = 0;
|
|
|
|
|
|
typedef enum
|
|
{
|
|
} tLocalTime_IfaceConstants;
|
|
|
|
virtual unsigned int readLocalTime(tRioStatusCode *status) = 0;
|
|
|
|
|
|
typedef enum
|
|
{
|
|
} tUserButton_IfaceConstants;
|
|
|
|
virtual bool readUserButton(tRioStatusCode *status) = 0;
|
|
|
|
|
|
typedef enum
|
|
{
|
|
} tRevision_IfaceConstants;
|
|
|
|
virtual unsigned int readRevision(tRioStatusCode *status) = 0;
|
|
|
|
|
|
|
|
|
|
private:
|
|
tGlobal(const tGlobal&);
|
|
void operator=(const tGlobal&);
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
#endif // __nFRC_2015_1_0_7_Global_h__
|