1.1.8.4.3 DRV_SFDP_Close Function

1.1.8.4.3 C

void DRV_SFDP_Close( const DRV_HANDLE handle );

1.1.8.4.3 Summary

Closes an opened-instance of the SFDP driver.

1.1.8.4.3 Description

This routine closes an opened-instance of the SFDP driver, invalidating the handle.

1.1.8.4.3 Precondition

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

1.1.8.4.3 Parameters

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

1.1.8.4.3 Returns

None.

1.1.8.4.3 Example

DRV_HANDLE handle; // Returned from DRV_SFDP_Open

DRV_SFDP_Close(handle);

1.1.8.4.3 Remarks

After calling this routine, the handle passed in "handle" must not be used with any of the remaining driver routines.

A new handle must be obtained by calling DRV_SFDP_Open before the caller may use the driver again. Usually there is no need for the driver client to verify that the Close operation has completed.