Deditec USB-TTL-32 데이터 시트
![Deditec](https://files.manualsbrain.com/attachments/a76b78ffc5e50c07b8e4d95d0426c3f3908f6d10/common/fit/150/50/bc1d513137811a3530c47242f8c7f5c641167c30149915d948b33926cce6/brand_logo.gif)
DELIB API reference | Seite
38
4.3. Set TTL-In-/Outputs direction
4.3.1. DAPI_SPECIAL_CMD_SET_DIR_DX_8
Description
This command sets the direction of the TTL-In/Outputs (8-Bit way).
This command sets the direction of the TTL-In/Outputs (8-Bit way).
Definition
void DapiSpecialCommand(ULONG handle, DAPI_SPECIAL_CMD_SET_DIR_DX_8,
ULONG ch, ULONG dir, 0);
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 will be set (0, 8, 16,
24 ..). Values between are invalid.
dir=(8-Bit) gives the direction for 8 In/Outputs. (1=output / 0=input)
handle=This is the handle of an opened module.
ch=Specifies the number of the output,from which the direction will be set (0, 8, 16,
24 ..). Values between are invalid.
dir=(8-Bit) gives the direction for 8 In/Outputs. (1=output / 0=input)
Example program
DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_SET_DIR_DX_8, 0, 1, 0);
// Set Dir of TTL-I/O CH0 to out