test/luos_hal.c
uint8_t LuosHAL_GetTxLockState(void)
{
    uint8_t result = false;

#ifdef USART_ISR_BUSY
    //check busy flag
    LuosHAL_ResetTimeout(DEFAULT_TIMEOUT);
    result = true;
#else
    if ((TX_LOCK_DETECT_PIN != DISABLE) && (TX_LOCK_DETECT_PORT != DISABLE))
    {
        //if pin low
        result = true;
        if (TX_LOCK_DETECT_IRQ == DISABLE)
        {
            if (result == true)
            {
                LuosHAL_ResetTimeout(DEFAULT_TIMEOUT);
            }
        }
    }
#endif
    return result;
}
/******************************************************************************
 * @brief get Lock Com transmit status this is the HW that can generate lock TX
 * @param None
 * @return Lock status
 ******************************************************************************/
@brief get Lock Com transmit status this is the HW that can generate lock TX
@param None
@return Lock status
@brief get Lock Com transmit status this is the HW that can generate lock TX @param None @return Lock status
uint8_t LuosHAL_GetTxLockState(void)
{
    uint8_t result = false;
#ifdef USART_ISR_BUSY
    LuosHAL_ResetTimeout(DEFAULT_TIMEOUT);
    result = true;
#else
    if ((TX_LOCK_DETECT_PIN != DISABLE) && (TX_LOCK_DETECT_PORT != DISABLE))
    {
        result = true;
        if (TX_LOCK_DETECT_IRQ == DISABLE)
        {
            if (result == true)
            {
                LuosHAL_ResetTimeout(DEFAULT_TIMEOUT);
            }
        }
    }
#endif
    return result;
}
uint8_t LuosHAL_GetTxLockState ( void ) { uint8_t result = false ; #ifdef USART_ISR_BUSY LuosHAL_ResetTimeout ( DEFAULT_TIMEOUT ) ; result = true ; #else if ( ( TX_LOCK_DETECT_PIN != DISABLE ) && ( TX_LOCK_DETECT_PORT != DISABLE ) ) { result = true ; if ( TX_LOCK_DETECT_IRQ == DISABLE ) { if ( result == true ) { LuosHAL_ResetTimeout ( DEFAULT_TIMEOUT ) ; } } } #endif return result ; }
@brief get Lock Com transmit status this is the HW that can generate lock TX
 @param None
 @return Lock status
@brief get Lock Com transmit status this is the HW that can generate lock TX @param None @return Lock status
//check busy flag //if pin low