DELIB API reference |
Seite
58
5.7. Set TTL-In-/Outputs direction with DapiSpecialCommand
5.7.1. DAPI_SPECIAL_CMD_SET_DIR_DX_1
Description
This command sets the direction of the TTL-In/Outputs (1-Bit).
Definition
void DapiSpecialCommand(ULONG handle, DAPI_SPECIAL_CMD_SET_DIR_DX_1,
ULONG ch, ULONG dir, 0);
Parameters
handle=This is the handle of an opened module.
ch=Specifies the number of the output, from which the direction should be set
(0, 8, 16, 24..)
dir=Specifies the direction for 8 channels (1=output / 0=input) / Bit 0 signifies
channel 0, Bit 1 channel 1 ...
Example program
DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_SET_DIR_DX_1, 0, 0x01 , 0);
// Set Dir of TTL-I/O CH0 to output, others to input
DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_SET_DIR_DX_1, 0, 0x02 , 0);
// Set Dir of TTL-I/O CH1 to output, others to input
DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_SET_DIR_DX_1, 0, 0x04 , 0);
// Set Dir of TTL-I/O CH2 to output, others to input
DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_SET_DIR_DX_1, 0, 0x08 , 0);
// Set Dir of TTL-I/O CH3 to output, others to input
DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_SET_DIR_DX_1, 0, 0x10 , 0);
// Set Dir of TTL-I/O CH4 to output, others to input
DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_SET_DIR_DX_1, 0, 0x20 , 0);
// Set Dir of TTL-I/O CH5 to output, others to input
DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_SET_DIR_DX_1, 0, 0x40 , 0);
// Set Dir of TTL-I/O CH6 to output, others to input
DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_SET_DIR_DX_1, 0, 0x80 , 0);
// Set Dir of TTL-I/O CH7 to output, others to input
DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_SET_DIR_DX_1, 0, 0x0f , 0);
// Set Dir of TTL-I/O CH0-3 to output, others to input
DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_SET_DIR_DX_1, 0, 0xff , 0);
// Set Dir of TTL-I/O CH0-7 to output, others to input
Summary of Contents for RO-INTERFACE-ETH
Page 1: ...Hardware Description Oktober RO INTERFACE ETH 2010 ...
Page 4: ...I Introduction Seite 4 Introduction ...
Page 6: ...II Hardware description Seite 6 Hardware description ...
Page 12: ...III Configuring the module Seite 12 Configuring the module ...
Page 19: ...IV Firmware Update Seite 19 Firmware Update ...
Page 23: ...V Restore basic configuration Seite 23 Restore basic configuration ...
Page 25: ...VI Software Seite 25 Software ...
Page 37: ...VII Appendix Seite 37 Appendix ...
Page 38: ...Appendix Seite 38 7 Appendix 7 1 Revisions Rev 1 00 First issue Rev 2 00 Design change ...
Page 40: ...Hardware Description Oktober RO DIGITAL IN OUT 2010 ...
Page 44: ...I Introduction Seite 5 Introduction ...
Page 46: ...II Hardware description Seite 7 Hardware description ...
Page 62: ...III Software Seite 23 Software ...
Page 72: ...IV DELIB API reference Seite 33 DELIB API reference ...
Page 96: ...V Appendix Seite 57 Appendix ...
Page 97: ...Appendix Seite 58 5 Appendix 5 1 Revisions Rev 1 00 First issue Rev 2 00 Design change ...
Page 99: ...Hardware Description November RO STEPPER2 2010 ...
Page 103: ...I Introduction Seite 5 Introduction ...
Page 105: ...II Hardware description Seite 7 Hardware description ...
Page 109: ...III Software Seite 11 Software ...
Page 120: ...IV DELIB API reference Seite 22 DELIB API reference ...
Page 159: ...V Appendix Seite 61 Appendix ...
Page 162: ...Hardware Description November RO Series 2010 ...
Page 170: ...I Introduction Seite 9 Introduction ...
Page 172: ...II Hardware description Seite 11 Hardware description ...
Page 251: ...III Software Seite 90 Software ...
Page 263: ...IV DELIB API reference Seite 102 DELIB API reference ...
Page 333: ...V Appendix Seite 172 Appendix ...
Page 336: ...DEDITEC Driver Library Dezember DELIB 2010 ...
Page 341: ...I Welcome Seite 6 Welcome ...
Page 342: ...Welcome Seite 7 1 Welcome Manual DELIB ...
Page 343: ...II Introduction Seite 8 Introduction ...
Page 345: ...III Software Seite 10 Software ...
Page 357: ...IV Directory structure of the DELIB Seite 22 Directory structure of the DELIB ...
Page 360: ...V DELIB API reference Seite 25 DELIB API reference ...
Page 440: ...VI Appendix Seite 105 Appendix ...