1.25.5.8 1.26.4.8 DBGU_WriteBufferSizeGet Function

C

/* Ring buffer mode */
size_t DBGU_WriteBufferSizeGet(void)

Summary

Returns the size of the internal transmit ring buffer

Description

This function returns the size of the transmit ring buffer, which is same as the size of the transmit ring buffer configured in MHC.

Precondition

DBGU_Initialize must have been called for the associated DBGU instance.

Parameters

None

Returns

The API returns the size of the transmit ring buffer.

Example

size_t txBufferSize;

txBufferSize = DBGU_WriteBufferSizeGet();

// Set a threshold to get notification when the transmit ring buffer is empty
DBGU_WriteThresholdSet(txBufferSize);

Remarks

None