1.25.5.19 DBGU_ReadByte Function

C

/* Blocking mode */
int DBGU_ReadByte( void )

Summary

Submits request to read a byte of data to the given DBGU peripheral

Description

This function submits request to read a byte of data to the given DBGU peripheral. This Function is available only in blocking mode. Application must call the DBGU_ReceiverIsReady API to check if a byte is available with the receiver before calling this API.

Precondition

  • DBGU_Initialize must have been called for the associated DBGU instance.

  • Receiver readiness must be confirmed using DBGU_ReceiverIsReady.

Parameters

None

Returns

Read byte.

Example

char rxData;

if(DBGU1_ReceiverIsReady() == true)
{
    rxData = DBGU1_ReadByte();
}

Remarks

None