Just wanted to find out if rn_digIn can be called twice in a same subroutine,
ie as below:
//read prox sensor position left
rn_digIn(dai_handle_RN1100, 2, stdby_left, 0);
if (*stdby_left == FALSE)
{
lui_WriteLockClosedLED(TRUE);
}
else
{
lui_WriteLockClosedLED(FALSE);
}
//read prox sensor position right
rn_digIn(dai_handle_RN1100, 3, stdby_right, 0);
if (*stdby_right == FALSE)
{
lui_WriteCouplantLowLED(TRUE);
}
else
{
lui_WriteCouplantLowLED(FALSE);
}
I am seeing erratic behaviour on the RN1100 when calling rn_digIn function twice ( RN1100 puts the system into reset), it works fine and provides the correct output if the function was only used once.I can confirm that the voltages to the input ports are correct.