46
Coyote (BL2500)
4.4.2 Digital I/O
Sets the state of digital outputs OUT0–OUT7, whereOUT0–OUT7 are sinking outputs.
A run-time error will occur for the following conditions:
1.
channel
or
value
is out of range.
2.
brdInit
was not called first.
PARAMETERS
channel
is the digital output channels (0–7)
value
is the output value (0 or 1)
RETURN VALUE
None.
SEE ALSO
digIn, digBankOut
Writes the state of a block of designated digital output channels. The bank consists of OUT0–OUT7.
This call is faster than setting the individual channels, but does not output states simultaneously. States
are written in succession from OUT7–OUT0.
A run-time error will occur for the following conditions:
1.
bank
or
value
is out of range.
2.
brdInit
was not called first.
PARAMETERS
bank
is 0 for the bank of digital output channels (0–7)
value
is an 8-bit output value, where each bit corresponds to one channel. OUT0 is the least significant
bit 0
RETURN VALUE
None.
EXAMPLE
To send out odd channels high:
void digBankOut(0, 0xaa);
SEE ALSO
digOut, digBankIn
void digOut(int channel, int value);
void digBankOut(int bank, int value);
Summary of Contents for Coyote BL2500
Page 1: ...Coyote BL2500 C Programmable Single Board Computer with Ethernet User s Manual 019 0120_M...
Page 6: ...Coyote BL2500...
Page 90: ...84 Coyote BL2500...
Page 104: ...98 Coyote BL2500...
Page 106: ......