101-0738 Rabbit Semiconductor, 101-0738 Datasheet - Page 80

no-image

101-0738

Manufacturer Part Number
101-0738
Description
CARD ETHERNET 512K SRAM SR9150
Manufacturer
Rabbit Semiconductor
Datasheet

Specifications of 101-0738

Accessory Type
Smart Star CPU Card
For Use With/related Products
SR9150
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
7.5.3 Smart Star Digital I/O Card Function Calls
PARAMETER
RETURN VALUE
SEE ALSO
PARAMETER
RETURN VALUE
SEE ALSO
80
int digIn(int channel);
int digBankIn(int bank);
Reads the state of a digital input channel (IN0–IN15, IN8–IN15 is not available on all versions of the
Digital I/O Card).
channel
or
where
The state of the digital input channel, 0 or 1.
Reads the state of Bank 0 or Bank 2 (if installed) digital input channels—Bank 0 consists of IN0–IN7
and Bank 2 consists of IN8–IN15.
bank
or
where
An input value in the lower byte, where each bit corresponds to one channel.
channel = (slotnumber * 128) + (channelnumber)
channel = ChanAddr(slotnumber, channelnumber)
digBankIn
bank = (slotnumber * 16) + (banknumber)
bank = BankAddr(slotnumber, banknumber)
digIn
slotnumber
slotnumber
is the bank of digital input channels to read.
,
is the digital input channel to read.
digOut
,
digOut
is 0–6, and
is 0–6, and
,
digBankOut
,
digBankOut
channelnumber
banknumber
channel
bank
is 0 or 2.
is 0–15.
should be passed as
should be passed as
Smart Star Digital I/O Cards (SR9200)

Related parts for 101-0738