1.25.5.15 DBGU_ReadIsBusy Function

C

/* Non-blocking mode */

bool DBGU_ReadIsBusy( void )

Summary

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

Description

This function returns the read request status associated with the given DBGU peripheral instance. It can be used to check the completion status of the DBGU_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

DBGU_Initialize must have been called for the associated DBGU instance.

Parameters

None.

Returns

true - DBGU is busy in processing the previous read request

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

Example

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

Remarks

None