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);
Содержание Coyote BL2500
Страница 1: ...Coyote BL2500 C Programmable Single Board Computer with Ethernet User s Manual 019 0120_M...
Страница 6: ...Coyote BL2500...
Страница 71: ...User s Manual 65 APPENDIX A SPECIFICATIONS Appendix A provides the specifications for the Coyote...
Страница 90: ...84 Coyote BL2500...
Страница 103: ...User s Manual 97 function calls readUserBlock 36 writeUserBlock 36 sample programs USERBLOCK_INFO C 52 55 56...
Страница 104: ...98 Coyote BL2500...
Страница 106: ......