50
RabbitCore RCM3600
gaincode
is the gain code of 0 to 7. The
gaincode
parameter is ignored when
channel
is
ALLCHAN
.
RETURN VALUE
0 if successful
-1 if address is invalid or out of range.
-2 if there is no valid ID block.
-3 if there is an error writing to flash memory.
SEE ALSO
anaInEEWr, anaInCalib
Configures channels PIO0 to PIO3 on the A/D converter to allow them to be used as digital I/O via
header JP4 on the RCM3600 Prototyping Board.
Remember to execute the
brdInit
function before calling this function to prevent a runtime error.
PARAMETER
statemask
is a bitwise mask representing JP4 channels 1 to 4. Use logic 0 for inputs and logic 1 for
outputs in these bit positions:
bits 7–5—0
bit 4—JP4:4
bit 3—JP4:3
bit 2—JP4:2
bit 1—JP4:1
bit 0—0
RETURN VALUE
None.
SEE ALSO
digOut, digIn
Gain Code
Voltage Range
*
(V)
* Applies to Prototyping Board.
0
0–20
1
0–10
2
0–5
3
0–4
4
0–2.5
5
0–2
6
0–1.25
7
0–1
void digConfig(char statemask);
Содержание RabbitCore
Страница 1: ...RabbitCore RCM3600 C Programmable Core Module User s Manual 019 0135 050630 C ...
Страница 6: ...RabbitCore RCM3600 ...
Страница 12: ...6 RabbitCore RCM3600 ...
Страница 92: ...86 RabbitCore RCM3600 ...
Страница 128: ...122 RabbitCore RCM3600 ...
Страница 132: ...126 RabbitCore RCM3600 ...
Страница 136: ...130 RabbitCore RCM3600 ...
Страница 138: ......