User’s Manual
45
Configures any of the 16 configurable I/O channels to be a sinking output. This configuration informa-
tion is then used by the
digOut
function to determine whether a given channel is configured to be an
output. If it is not,
digOut
will prevent the given channel from being used by the
digOut
function.
The configuration options are described below.
PARAMETER
configuration
is a 16-bit parameter for which each bit corresponds to a configurable I/O channel (0–
15). An output channel is enabled by setting the corresponding bit number to a logic one.
Bit 15 = output channel DIO15
Bit 14 = output channel DIO14
Bit 13 = output channel DIO13
Bit 12 = output channel DIO12
Bit 11 = output channel DIO11
Bit 10 = output channel DIO10
Bit 9 = output channel DIO09
Bit 8 = output channel DIO08
Bit 7 = output channel DIO07
Bit 6 = output channel DIO06
Bit 5 = output channel DIO05
Bit 4 = output channel DIO04
Bit 3 = output channel DIO03
Bit 2 = output channel DIO02
Bit 1 = output channel DIO01
Bit 0 = output channel DIO00
The configurable I/O are configured to be sinking by setting the corresponding bit to 1; setting the bit to
0 disables that channel for output operation.
RETURN VALUE
None.
SEE ALSO
brdInit, digHout, dgigHoutConfig, digHoutTriState
EXAMPLE
configuration = 0x8005
0x8005 = 1000000000000101 (bits 15–0)
DIO15, DIO02, and DIO00 have been enabled for use as sinking outputs. The remaining configurable
I/O are locked out from being used by the
digOut
function.
void digOutConfig(int configuration);
Содержание Wolf BL2600
Страница 1: ...Wolf BL2600 C Programmable Single Board Computer with Ethernet User s Manual 019 0142 040731 B ...
Страница 36: ...32 Wolf BL2600 ...
Страница 66: ...62 Wolf BL2600 ...
Страница 100: ...96 Wolf BL2600 ...
Страница 104: ...100 Wolf BL2600 ...
Страница 106: ......