lib/RadioHead/RH_ASK.cpp
// Read the RX data input pin, taking into account platform type and inversion.
Read the RX data input pin, taking into account platform type and inversion.
Read the RX data input pin taking into account platform type and inversion .
bool RH_INTERRUPT_ATTR RH_ASK::readRx()
{
    bool value;
#if (RH_PLATFORM == RH_PLATFORM_GENERIC_AVR8)
    value = ((RH_ASK_RX_PORT & (1<<RH_ASK_RX_PIN)) ? 1 : 0);
#else
    value = digitalRead(_rxPin);
#endif
    return value ^ _rxInverted;
}
bool RH_INTERRUPT_ATTR RH_ASK :: readRx ( ) { bool value ; #if ( RH_PLATFORM == RH_PLATFORM_GENERIC_AVR8 ) value = ( ( RH_ASK_RX_PORT & ( 1 << RH_ASK_RX_PIN ) ) ? 1 : 0 ) ; #else value = digitalRead ( _rxPin ) ; #endif return value ^ _rxInverted ; }
Read the RX data input pin, taking into account platform type and inversion.
Read the RX data input pin taking into account platform type and inversion .