1.1.2.4.4 DRV_I2C_Close Function

C

void DRV_I2C_Close( const DRV_HANDLE handle )

Summary

Closes an opened-instance of the I2C driver.

Description

This routine closes an opened-instance of the I2C 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_I2C_Open before the caller may use the driver again.

Precondition

DRV_I2C_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_I2C_Open

DRV_I2C_Close(handle);

Remarks

None.