1.1.13.6 1.8.24.15 1.10.23.17 1.11.23.17 1.12.24.17 1.13.22.17 1.14.17.17 1.15.18.17 1.16.25.17 1.17.20.17 1.18.21.17 1.19.21.17 1.20.25.17 1.21.26.17 1.22.28.17 1.23.27.17 1.24.23.17 1.27.26.15 1.34.26.15 1.35.20.15 UARTx_ReadIsBusy Function

C

/* x = UART instance number */

/* Non-blocking mode */

bool UARTx_ReadIsBusy( void )

Summary

Returns the read request status associated with the given UART peripheral instance

Description

This function returns the read request status associated with the given UART peripheral instance. It can be used to check the completion status of the UARTx_Read() function when the library is configured for interrupt (non-blocking) mode. In that, the function can be used as an alternative to using a callback function to check for completion.

Precondition

UARTx_Initialize must have been called for the associated UART instance.

Parameters

None.

Returns

true - UART is busy in processing the previous read request

false - UART is free and ready to accept the new read request

Example

if(UART1_ReadIsBusy() == true)
{
    //UART is currently processing the previous read request.
    //Wait to submit new request.
}

Remarks

None