Esempio n. 1
0
/*
 * Get the value from a digital input channel.
 * Retrieve the value of a single digital input channel from the FPGA.
 *
 * @param slot The slot the digital input module is plugged into
 * @param channel The particular channel this digital input is using
 */
UINT32 GetDigitalInput(UINT32 slot, UINT32 channel)
{
    DigitalInput *digIn = AllocateDigitalInput(slot, channel);
    if (digIn)
        return digIn->Get();
    else
        return 0;
}
Esempio n. 2
0
/*
 * Get the value from a digital input channel.
 * Retrieve the value of a single digital input channel from the FPGA.
 *
 * @param slot The slot the digital input module is plugged into
 * @param channel The particular channel this digital input is using
 */
UINT32 GetDigitalInput(UINT8 moduleNumber, UINT32 channel)
{
	DigitalInput *digIn = AllocateDigitalInput(moduleNumber, channel);
	if (digIn)
		return digIn->Get();
	else
		return 0;
}