Rabbit Core RCM3700 User Manual page 58

C-programmable core module with ethernet, serial flash, and enhanced software
Hide thumbs Also See for Core RCM3700:
Table of Contents

Advertisement

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
void digConfig(char statemask);
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
RabbitCore RCM3700 User's Manual
Voltage Range
Gain Code
(V)
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
* Applies to RCM3700 Prototyping
Board.
*
56

Advertisement

Table of Contents
loading

Table of Contents