BL4S200 User’s Manual
81
globalSync
int globalSync(void);
FUNCTION DESCRIPTION
Sends a single pulse to the global synch inputs of all RIO chips.
+Note that when more than one block is synchronized to the same synch signal (global
or external), each block has its own independent edge-detection circuit. These circuits
will synch to the edge within plus or minus one count of the block’s current clock
source (main or prescale). This means synchronized blocks may have a small offset
when compared to each other.
RETURN VALUE
0 — success.
-EPERM
—
brdInit()
was not run before calling this function.
SEE ALSO
brdInit
setDigOut
int setDigOut(int channel, int state);
FUNCTION DESCRIPTION
Configures the output channel as a simple digital output. The output state of the chan-
nel is also initialized to logic 0 or logic 1 based on the
state
parameter. The digOut
function should be used to control the output state after configuration as it is more effi-
cient. This function is non-reentrant.
PARAMETERS
channel
digital output channel, 0–31 (DIO0–DIO31)
state
set output to one of the following states:
0 — connects the load to GND
1 — puts the output in a high-impedance tristate
RETURN VALUE
0 — success.
-EINVAL
— invalid parameter value.
SEE ALSO
brdInit, digOut, digOutBank
electronic components distributor