User`s manual
90 www.rabbit.com Applications Programming
flexDigOutGroup16
int flexDigOutGroup16(Flex_IOPin *digout_pins[],
unsigned int values);
DESCRIPTION
This function sets the state of a set of digital output channels based on the values 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 an unsigned int.
This function will set the state of the first pin in the pin group from the value of the first bit (lsb)
of the values variable; the second pin is set from the value of the second bit; etc.
This function is limited to setting 16 digital outputs at a time.
PARAMETERS
digout_pins Array of pointers to Flex_IOPin structures (the information structure for
each I/O pin), terminated by FLEX_GROUP_END. These are the output
pins.
values The values with which to set the digital outputs. The i’th bit in the values
field will be used to set the i’th pin in the digout_pins array.
RETURN VALUE
0: success
<0: error (not a valid digital output, or more than 16 digital outputs?)
SEE ALSO
flexDigShadow, flexDigIn, flexDigInGroup16, flexDigOut