20-151-0178 Rabbit Semiconductor, 20-151-0178 Datasheet - Page 93

CABLE CONVERTER RS-232 TO USB

20-151-0178

Manufacturer Part Number
20-151-0178
Description
CABLE CONVERTER RS-232 TO USB
Manufacturer
Rabbit Semiconductor
Datasheet

Specifications of 20-151-0178

Accessory Type
USB to RS232 Adapter
Product
Microcontroller Accessories
For Use With/related Products
Rabbit-based Boards
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
20-151-0178
316-1181
DESCRIPTION
PARAMETERS
RETURN VALUE
SEE ALSO
RabbitFLEX User’s Manual
int flexDigInGroup16(Flex_IOPin *digin_pins[],
unsigned int *result);
This function reads the state of a set of digital input channels into the result parameter. The first
parameter must be an array of pointers to Flex_IOPin structures.
Essentially, this is an array of pins.The last entry in the array must be FLEX_GROUP_END. This
indicates the end of the pins in the group. The second parameter must be a pointer to an
unsigned int. The values for each of the inputs will be placed into the variable pointed to by
this pointer. The values are placed in the following manner — the input reading from the first pin
in the pin group is placed in the first bit (lsb) of the result; the second pin is placed in the second
bit; etc.
digin_pins
result
<0: error (not a valid digital input, or more than 16 digital inputs?)
flexDigShadow
0: success
This function is limited to reading 16 digital inputs at a time. Any unused bits in the result
field will be filled with zeroes.
,
array of pointers to Flex_IOPin structures (the information structure for
each I/O pin), terminated by FLEX_GROUP_END. These are the input pins.
the results of the digital reads, with the i’th bit in the result field correspond-
ing to the i’th I/O pin in the digin_pins array.
flexDigIn
flexDigInGroup16
,
flexDigOut
www.rabbit.com
,
flexDigOutGroup16
87

Related parts for 20-151-0178