⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 paras.h

📁 这是我编写的深圳地铁S335型司机控制器的检测程序
💻 H
📖 第 1 页 / 共 3 页
字号:
#define CFG_DiTriggerEnableFallingPort6_Name    "DiTriggerEnableFallingPort6"
#define CFG_DiTriggerEnableFallingPort7_Name    "DiTriggerEnableFallingPort7"
#define CFG_DiTriggerEnableFallingPort8_Name    "DiTriggerEnableFallingPort8"
#define CFG_DiTriggerEnableFallingPort9_Name    "DiTriggerEnableFallingPort9"
#define CFG_DiTriggerEnableFallingPort10_Name   "DiTriggerEnableFallingPort10"
#define CFG_DiTriggerEnableFallingPort11_Name   "DiTriggerEnableFallingPort11"
#define CFG_DiTriggerEnableFallingPort12_Name   "DiTriggerEnableFallingPort12"
#define CFG_DiTriggerEnableFallingPort13_Name   "DiTriggerEnableFallingPort13"
#define CFG_DiTriggerEnableFallingPort14_Name   "DiTriggerEnableFallingPort14"
#define CFG_DiTriggerEnableFallingPort15_Name   "DiTriggerEnableFallingPort15"
#define CFG_DiTriggerEnableFallingForAll_Name   "DiTriggerEnableFallingForAll"

#define CFG_DiFilterEnablePort0_Name            "DiFilterEnablePort0"
#define CFG_DiFilterEnablePort1_Name            "DiFilterEnablePort1"
#define CFG_DiFilterEnablePort2_Name            "DiFilterEnablePort2"
#define CFG_DiFilterEnablePort3_Name            "DiFilterEnablePort3"
#define CFG_DiFilterEnablePort4_Name            "DiFilterEnablePort4"
#define CFG_DiFilterEnablePort5_Name            "DiFilterEnablePort5"
#define CFG_DiFilterEnablePort6_Name            "DiFilterEnablePort6"
#define CFG_DiFilterEnablePort7_Name            "DiFilterEnablePort7"
#define CFG_DiFilterEnablePort8_Name            "DiFilterEnablePort8"
#define CFG_DiFilterEnablePort9_Name            "DiFilterEnablePort9"
#define CFG_DiFilterEnablePort10_Name           "DiFilterEnablePort10"
#define CFG_DiFilterEnablePort11_Name           "DiFilterEnablePort11"
#define CFG_DiFilterEnablePort12_Name           "DiFilterEnablePort12"
#define CFG_DiFilterEnablePort13_Name           "DiFilterEnablePort13"
#define CFG_DiFilterEnablePort14_Name           "DiFilterEnablePort14"
#define CFG_DiFilterEnablePort15_Name           "DiFilterEnablePort15"
#define CFG_DiFilterEnableForAll_Name           "DiFilterEnableForAll"

#define CFG_DiFilterIntervalCounter_Name        "DiFilterIntervalCounter"

#define CFG_IDiTriggerEnableRisingChannel0      0x3A00
#define CFG_IDiTriggerEnableRisingChannel1      0x3A01
#define CFG_IDiTriggerEnableFallingChannel0     0x3A80
#define CFG_IDiTriggerEnableFallingChannel1     0x3A81

#define CFG_IDiTriggerEnableRisingChannel0_Name           "CFG_IDiTriggerEnableRisingChannel0"
#define CFG_IDiTriggerEnableRisingChannel1_Name           "CFG_IDiTriggerEnableRisingChannel1"
#define CFG_IDiTriggerEnableFallingChannel0_Name          "CFG_IDiTriggerEnableFallingChannel0"
#define CFG_IDiTriggerEnableFallingChannel1_Name          "CFG_IDiTriggerEnableFallingChannel1"


#define CFG_DiTriggerEnableRisingChannel0       0x3C00 
#define CFG_DiTriggerEnableRisingChannel1       0x3C01
#define CFG_DiTriggerEnableFallingChannel0      0x3C80
#define CFG_DiTriggerEnableFallingChannel1      0x3C81
#define CFG_DiDataWidth      			            0x3C82	  // Get DI data width. The optimized data width when Reading.
                                                           // Find the used value from Variable Group.
                                                           // Data type: LONG.   

#define CFG_DiChannelCount                      0x3C83     // Get DI Channel Count. Max available DI channel count on the card.
                                                           // Data type: LONG. 

#define CFG_DiPortCount                         0x3C84     // Get DI Port Count. Max available DI Port count on the card. 
                                                           // Data type: LONG.


// Get DI Interrupt supported channel.
// 
// Data type: BYTE Array. 
//     One bit for one channel. If a bit is 1, 
//     the channel can issue interrupt.
#define CFG_DiInterruptSupportedChannel		   0x3C85
													

// Get / Set DI channels which issue interrupt on RISING Edge.
//      Note: whether this property can be set or not depends on device feature.
//
// Data type: BYTE Array. 
//     One bit for one channel. If a bit is 1, 
//     the channel will issue interrupt on rising edge.
#define CFG_DiInterruptTriggerOnRisingEdge	   0x3C86
													

// Get / Set DI channels which issue interrupt on FALLING Edge.
//      Note: whether this property can be set or not depends on device feature.
//
// Data type: BYTE Array. 
//     One bit for one channel. If a bit is 1, 
//     the channel will issue interrupt on falling edge.
#define CFG_DiInterruptTriggerOnFallingEdge	   0x3C87



// Get DI channels which support Status Change interrupt.
//  
// Data type: BYTE Array. 
//     One bit for one channel. If a bit is 1, 
//     the channel can issue interrupt when status changed.
#define CFG_DiStatusChangeSupportedChannel	   0x3C88


// Get/Set DI channels which "Status Changed interrupt" function is enabled.
// 
// Data type: BYTE Array. 
//    One bit for one channel. If a bit is 1, 
//    the channel will issue interrupt when status changed.
#define CFG_DiStatusChangeEnabledChannel	      0x3C89


// Get DI channels which support pattern match interrupt.
//  
// Data type: BYTE Array. 
//     One bit for one channel. If a bit is 1, 
//     the channel can issue interrupt when pattern matched.
#define CFG_DiPatternMatchSupportedChannel	   0x3C8A


// Get/Set DI channels which "pattern match interrupt" function is enabled.
// 
// Data type: BYTE Array. 
//    One bit for one channel. If a bit is 1, 
//    the channel will issue interrupt when pattern matched.
#define CFG_DiPatternMatchEnabledChannel	      0x3C8B

// Get DI Interrupt supported trigger mode.
// 
// Data type: LONG. 
//     which trigger mode was supported.
#define CFG_DiInterruptSupportedTriggerMode     0x3C8C

// Get DI Pattern Match capability:
//     Wether the mask of this port can be set individually.
// Data Type: 
//     BYTE Array.
//     One byte for a port. If the byte is 1, then the mask
//     of this port can be set individually, otherwise it
//     can't be done. 
//     Note: if this property is not supported, it means that
//     the mask can be set individually too.
#define CFG_DiPatternMatchMaskSupportedPort     0x3C8D

// Get DI Status Change capability:
//     Wether the mask of this port can be set individually.
// Data Type: 
//     BYTE Array.
//     One byte for a port. If the byte is 1, then the mask
//     of this port can be set individually, otherwise it
//     can't be done. 
//     Note: if this property is not supported, it means that
//     the mask can be set individually too.
#define CFG_DiStatusChangeMaskSupportedPort      0x3C8E


#define CFG_DiTriggerEnableRisingChannel0_Name           "CFG_DiTriggerEnableRisingChannel0"
#define CFG_DiTriggerEnableRisingChannel1_Name           "CFG_DiTriggerEnableRisingChannel1"
#define CFG_DiTriggerEnableFallingChannel0_Name          "CFG_DiTriggerEnableFallingChannel0"
#define CFG_DiTriggerEnableFallingChannel1_Name          "CFG_DiTriggerEnableFallingChannel1"


// ----------------------------------
// 0x4000 ~ 0x4fff for DO Group 
// ----------------------------------
// sub group 0x4000 ~ 0x47ff for DO General ID

// sub group 0x4800 ~ 0x4fff for DO others ID
// Fast DO functions paramaters
#define CFG_DoOperationMode   0x4800     // Normal (0), Handahaking (1), Burst handshaking(2)
#define CFG_DoStartMethod     0x4801     // Software(1), External signal(2)
#define CFG_DoStopMethod      0x4802     // Software(1), External signal(2)
#define CFG_DoPacerSource     0x4803     // 30, 15, 10 Mhz, Counter1, External signal (value range 1-5)
#define CFG_DoControlSignals  0x4804     // Control signals 
                                         //   Bit 0: External DO start signal control (STRRF), 0 rising edge, 1 falling edge. 
                                         //   Bit 1: External DO stop signal control (STPRF), 0 rising edge, 1 falling edge.
                                         //   Bit 2: DO request signal control (REQRF), 0 rising edge, 1 falling edge.
                                         //   Bit 3: DO acknowledge signal control (ACKRF), 0 rising edge, 1 falling edge.
                                         //   Bit 4: DO sampling clock signal control (CLKRF), 0 rising edge, 1 falling edge
#define CFG_DoPresetValue     0x4805     // DO status before transfering. 


// Get DO data width. The optimized data width when writing.
//  
// Data type: LONG. 
//     See the following for all available setting.
#define CFG_DoDataWidth       0x4806	

// Get DO Channel Count. Max available DO channel count on the card.
//  
// Data type: LONG. 
#define CFG_DoChannelCount    0x4807	   


// Get Do Port Count. Max available DO Port count on the card. 
// 
// Data type: LONG.
#define CFG_DoPortCount       0x4808


#define CFG_DoOperationMode_Name   "DoOperationMode"  
#define CFG_DoStartMethod_Name     "DoStartMethod"     
#define CFG_DoStopMethod_Name      "DoStopMethod"      
#define CFG_DoPacerSource_Name     "DoPacerSource"     
#define CFG_DoControlSignals_Name  "DoControlSignals"
#define CFG_DoPresetValue_Name     "DoPresetValue"    


// ---------------------------------------
// 0x5000 ~ 0x5fff for Counter/Timer  
// ---------------------------------------
// sub group 0x5000 ~ 0x57ff for Counter/Timer general ID
// Counter functions
#define CFG_CounterCountValue 0x5000 // 82C54 Counter 0-2 value

#define    CFG_CounterCountValue_Name "CounterCountValue" 

// ji.dong added for counter control. 2005-06-01..........................

// Get Counter channels' capability.
//  
// Data type: Long Array. 
//     One 'Long' for one channel, each bit of the long indicates
// a specified function whether is available or not and the
// following function has been defined. 
//     
#define CFG_CntrChannelCapability         0x5001

// Get supported gate of the counter.
//  
// Data type: Long. 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -