User’s Manual
53
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.
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 RCM3700 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 RCM3700 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);
Summary of Contents for RabbitCore
Page 6: ...RabbitCore RCM3750...
Page 40: ...34 RabbitCore RCM3750...
Page 64: ...58 RabbitCore RCM3750...
Page 126: ...120 RabbitCore RCM3750...
Page 162: ...156 RabbitCore RCM3750...
Page 172: ......