1.1.9.4.4 DRV_USART_Close Function

C

void DRV_USART_Close( DRV_Handle handle )

Summary

Closes an opened-instance of the USART driver.

Description

This routine closes an opened-instance of the USART driver, invalidating the handle. Any buffers in the driver queue that were submitted by this client will be removed. A new handle must be obtained by calling DRV_USART_Open before the caller may use the driver again.

Precondition

DRV_USART_Open must have been called to obtain a valid opened device handle.

Parameters

ParamDescription
handleA valid open-instance handle, returned from the driver's open routine

Returns

None.

Example

// 'handle', returned from the DRV_USART_Open

DRV_USART_Close(handle);

Remarks

None.