Updates to 2018 v9 image (#686)

This commit is contained in:
Thad House
2017-10-27 00:47:56 -07:00
committed by Peter Johnson
parent f02bb058bd
commit 541753c814
25 changed files with 380 additions and 85 deletions

View File

@@ -1,15 +1,15 @@
// Copyright (c) National Instruments 2008. All Rights Reserved.
// Do Not Edit... this file is generated!
#ifndef __nFRC_2018_18_0_1_SPI_h__
#define __nFRC_2018_18_0_1_SPI_h__
#ifndef __nFRC_2018_18_0_4_SPI_h__
#define __nFRC_2018_18_0_4_SPI_h__
#include "../tSystem.h"
#include "../tSystemInterface.h"
namespace nFPGA
{
namespace nFRC_2018_18_0_1
namespace nFRC_2018_18_0_4
{
class tSPI
@@ -26,6 +26,27 @@ public:
kNumSystems = 1,
} tIfaceConstants;
typedef
union{
struct{
#ifdef __vxworks
unsigned ExternalClockSource_Channel : 4;
unsigned ExternalClockSource_Module : 1;
unsigned ExternalClockSource_AnalogTrigger : 1;
unsigned RisingEdge : 1;
unsigned FallingEdge : 1;
#else
unsigned FallingEdge : 1;
unsigned RisingEdge : 1;
unsigned ExternalClockSource_AnalogTrigger : 1;
unsigned ExternalClockSource_Module : 1;
unsigned ExternalClockSource_Channel : 4;
#endif
};
struct{
unsigned value : 8;
};
} tAutoTriggerConfig;
typedef
union{
struct{
@@ -44,6 +65,97 @@ public:
typedef enum
{
} tDebugIntStatReadCount_IfaceConstants;
virtual unsigned int readDebugIntStatReadCount(tRioStatusCode *status) = 0;
typedef enum
{
} tDebugState_IfaceConstants;
virtual unsigned short readDebugState(tRioStatusCode *status) = 0;
typedef enum
{
} tAutoTriggerConfig_IfaceConstants;
virtual void writeAutoTriggerConfig(tAutoTriggerConfig value, tRioStatusCode *status) = 0;
virtual void writeAutoTriggerConfig_ExternalClockSource_Channel(unsigned char value, tRioStatusCode *status) = 0;
virtual void writeAutoTriggerConfig_ExternalClockSource_Module(unsigned char value, tRioStatusCode *status) = 0;
virtual void writeAutoTriggerConfig_ExternalClockSource_AnalogTrigger(bool value, tRioStatusCode *status) = 0;
virtual void writeAutoTriggerConfig_RisingEdge(bool value, tRioStatusCode *status) = 0;
virtual void writeAutoTriggerConfig_FallingEdge(bool value, tRioStatusCode *status) = 0;
virtual tAutoTriggerConfig readAutoTriggerConfig(tRioStatusCode *status) = 0;
virtual unsigned char readAutoTriggerConfig_ExternalClockSource_Channel(tRioStatusCode *status) = 0;
virtual unsigned char readAutoTriggerConfig_ExternalClockSource_Module(tRioStatusCode *status) = 0;
virtual bool readAutoTriggerConfig_ExternalClockSource_AnalogTrigger(tRioStatusCode *status) = 0;
virtual bool readAutoTriggerConfig_RisingEdge(tRioStatusCode *status) = 0;
virtual bool readAutoTriggerConfig_FallingEdge(tRioStatusCode *status) = 0;
typedef enum
{
} tAutoChipSelect_IfaceConstants;
virtual void writeAutoChipSelect(unsigned char value, tRioStatusCode *status) = 0;
virtual unsigned char readAutoChipSelect(tRioStatusCode *status) = 0;
typedef enum
{
} tAutoForceGo_IfaceConstants;
virtual void strobeAutoForceGo(tRioStatusCode *status) = 0;
typedef enum
{
} tDebugRevision_IfaceConstants;
virtual unsigned int readDebugRevision(tRioStatusCode *status) = 0;
typedef enum
{
} tAutoByteCount_IfaceConstants;
virtual void writeAutoByteCount(unsigned char value, tRioStatusCode *status) = 0;
virtual unsigned char readAutoByteCount(tRioStatusCode *status) = 0;
typedef enum
{
} tDebugIntStat_IfaceConstants;
virtual unsigned int readDebugIntStat(tRioStatusCode *status) = 0;
typedef enum
{
} tDebugEnabled_IfaceConstants;
virtual unsigned int readDebugEnabled(tRioStatusCode *status) = 0;
typedef enum
{
} tAutoSPI1Select_IfaceConstants;
virtual void writeAutoSPI1Select(bool value, tRioStatusCode *status) = 0;
virtual bool readAutoSPI1Select(tRioStatusCode *status) = 0;
typedef enum
{
} tDebugSubstate_IfaceConstants;
virtual unsigned char readDebugSubstate(tRioStatusCode *status) = 0;
typedef enum
{
} tEnableDIO_IfaceConstants;
@@ -66,6 +178,16 @@ public:
typedef enum
{
kNumAutoTxRegisters = 4,
kNumAutoTxElements = 4,
} tAutoTx_IfaceConstants;
virtual void writeAutoTx(unsigned char reg_index, unsigned char bitfield_index, unsigned char value, tRioStatusCode *status) = 0;
virtual unsigned char readAutoTx(unsigned char reg_index, unsigned char bitfield_index, tRioStatusCode *status) = 0;
private:
tSPI(const tSPI&);
void operator=(const tSPI&);
@@ -74,4 +196,4 @@ private:
}
}
#endif // __nFRC_2018_18_0_1_SPI_h__
#endif // __nFRC_2018_18_0_4_SPI_h__