jerrym | f157933 | 2013-02-07 01:56:28 +0000 | [diff] [blame^] | 1 | // Copyright (c) National Instruments 2008. All Rights Reserved.
|
| 2 | // Do Not Edit... this file is generated!
|
| 3 |
|
| 4 | #ifndef __nFRC_2012_1_6_4_AI_h__
|
| 5 | #define __nFRC_2012_1_6_4_AI_h__
|
| 6 |
|
| 7 | #include "tSystemInterface.h"
|
| 8 |
|
| 9 | namespace nFPGA
|
| 10 | {
|
| 11 | namespace nFRC_2012_1_6_4
|
| 12 | {
|
| 13 |
|
| 14 | class tAI
|
| 15 | {
|
| 16 | public:
|
| 17 | tAI(){}
|
| 18 | virtual ~tAI(){}
|
| 19 |
|
| 20 | virtual tSystemInterface* getSystemInterface() = 0;
|
| 21 | static tAI* create(unsigned char sys_index, tRioStatusCode *status);
|
| 22 | virtual unsigned char getSystemIndex() = 0;
|
| 23 |
|
| 24 |
|
| 25 | typedef enum
|
| 26 | {
|
| 27 | kNumSystems = 2,
|
| 28 | } tIfaceConstants;
|
| 29 |
|
| 30 | typedef
|
| 31 | union{
|
| 32 | struct{
|
| 33 | unsigned Channel : 3;
|
| 34 | unsigned Module : 1;
|
| 35 | unsigned Averaged : 1;
|
| 36 | };
|
| 37 | struct{
|
| 38 | unsigned value : 5;
|
| 39 | };
|
| 40 | } tReadSelect;
|
| 41 | typedef
|
| 42 | union{
|
| 43 | struct{
|
| 44 | unsigned ScanSize : 3;
|
| 45 | unsigned ConvertRate : 26;
|
| 46 | };
|
| 47 | struct{
|
| 48 | unsigned value : 29;
|
| 49 | };
|
| 50 | } tConfig;
|
| 51 |
|
| 52 |
|
| 53 | typedef enum
|
| 54 | {
|
| 55 | } tConfig_IfaceConstants;
|
| 56 |
|
| 57 | virtual void writeConfig(tConfig value, tRioStatusCode *status) = 0;
|
| 58 | virtual void writeConfig_ScanSize(unsigned char value, tRioStatusCode *status) = 0;
|
| 59 | virtual void writeConfig_ConvertRate(unsigned int value, tRioStatusCode *status) = 0;
|
| 60 | virtual tConfig readConfig(tRioStatusCode *status) = 0;
|
| 61 | virtual unsigned char readConfig_ScanSize(tRioStatusCode *status) = 0;
|
| 62 | virtual unsigned int readConfig_ConvertRate(tRioStatusCode *status) = 0;
|
| 63 |
|
| 64 |
|
| 65 | typedef enum
|
| 66 | {
|
| 67 | kNumScanListElements = 8,
|
| 68 | } tScanList_IfaceConstants;
|
| 69 |
|
| 70 | virtual void writeScanList(unsigned char bitfield_index, unsigned char value, tRioStatusCode *status) = 0;
|
| 71 | virtual unsigned char readScanList(unsigned char bitfield_index, tRioStatusCode *status) = 0;
|
| 72 |
|
| 73 |
|
| 74 | typedef enum
|
| 75 | {
|
| 76 | } tLoopTiming_IfaceConstants;
|
| 77 |
|
| 78 | virtual unsigned int readLoopTiming(tRioStatusCode *status) = 0;
|
| 79 |
|
| 80 |
|
| 81 | typedef enum
|
| 82 | {
|
| 83 | kNumAverageBitsElements = 8,
|
| 84 | } tAverageBits_IfaceConstants;
|
| 85 |
|
| 86 | virtual void writeAverageBits(unsigned char bitfield_index, unsigned char value, tRioStatusCode *status) = 0;
|
| 87 | virtual unsigned char readAverageBits(unsigned char bitfield_index, tRioStatusCode *status) = 0;
|
| 88 |
|
| 89 |
|
| 90 | typedef enum
|
| 91 | {
|
| 92 | kNumOversampleBitsElements = 8,
|
| 93 | } tOversampleBits_IfaceConstants;
|
| 94 |
|
| 95 | virtual void writeOversampleBits(unsigned char bitfield_index, unsigned char value, tRioStatusCode *status) = 0;
|
| 96 | virtual unsigned char readOversampleBits(unsigned char bitfield_index, tRioStatusCode *status) = 0;
|
| 97 |
|
| 98 |
|
| 99 |
|
| 100 | typedef enum
|
| 101 | {
|
| 102 | } tOutput_IfaceConstants;
|
| 103 |
|
| 104 | virtual signed int readOutput(tRioStatusCode *status) = 0;
|
| 105 |
|
| 106 |
|
| 107 | typedef enum
|
| 108 | {
|
| 109 | } tReadSelect_IfaceConstants;
|
| 110 |
|
| 111 | virtual void writeReadSelect(tReadSelect value, tRioStatusCode *status) = 0;
|
| 112 | virtual void writeReadSelect_Channel(unsigned char value, tRioStatusCode *status) = 0;
|
| 113 | virtual void writeReadSelect_Module(unsigned char value, tRioStatusCode *status) = 0;
|
| 114 | virtual void writeReadSelect_Averaged(bool value, tRioStatusCode *status) = 0;
|
| 115 | virtual tReadSelect readReadSelect(tRioStatusCode *status) = 0;
|
| 116 | virtual unsigned char readReadSelect_Channel(tRioStatusCode *status) = 0;
|
| 117 | virtual unsigned char readReadSelect_Module(tRioStatusCode *status) = 0;
|
| 118 | virtual bool readReadSelect_Averaged(tRioStatusCode *status) = 0;
|
| 119 |
|
| 120 |
|
| 121 | typedef enum
|
| 122 | {
|
| 123 | } tLatchOutput_IfaceConstants;
|
| 124 |
|
| 125 | virtual void strobeLatchOutput(tRioStatusCode *status) = 0;
|
| 126 |
|
| 127 |
|
| 128 |
|
| 129 |
|
| 130 | private:
|
| 131 | tAI(const tAI&);
|
| 132 | void operator=(const tAI&);
|
| 133 | };
|
| 134 |
|
| 135 | }
|
| 136 | }
|
| 137 |
|
| 138 | #endif // __nFRC_2012_1_6_4_AI_h__
|