Herunterladen Inhalt Inhalt Diese Seite drucken

Deditec USB-BITP-200 Hardware Dokumentation Seite 274

Inhaltsverzeichnis

Werbung

Verfügbare Sprachen

Verfügbare Sprachen

5.4.9. DapiDOSetBit32
Description
With this command you can change the states of outputs to 1
without changing the states of the neighboring outputs.
Definition
void DapiDOSetBit32(uint handle, uint ch, uint data);
Parameters
handle = handle of the corresponding module.
ch = Specifies the number of the output, from which it will begin to
write
data = Specifies the data value which will be written to the outputs
(32 Bit)
Return-Value
None
Remarks
Only the bits with a value of 1 in the data parameter are taken into
account by the command.
Example program
data = 0x1; // Output 0 would be changed to 1. The states of outputs 1-31 won't be changed
DapiDOSetBit32(handle, 0, data);
data = 0xf; // Outputs 0-3 would be changed to 1. The states of outputs 4-31 won't be changed
DapiDOSetBit32(handle, 0, data);
data = 0xff; // Outputs 0-7 would be changed to 1. The states of outputs 8-31 won't be changed
DapiDOSetBit32(handle, 0, data);
data = 0xff000000; // Outputs 23-31 would be changed to 1. The states of outputs 0-21 won't be c
DapiDOSetBit32(handle, 0, data);
DELIB API reference | Seite 274

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis