1.1.4.3.2 DRV_WM8904_Deinitialize Function

void DRV_WM8904_Deinitialize( SYS_MODULE_OBJ object)

Summary

Deinitializes the specified instance of the WM8904 driver module

Description

Deinitializes the specified instance of the WM8904 driver module, disabling its operation (and any hardware). Invalidates all the internal data.

Preconditions

Function DRV_WM8904_Initialize should have been called before calling this function.

Parameters

ParametersDescription
objectDriver object handle, returned from the DRV_WM8904_Initialize routine

Returns

None.

Remarks

Once the Initialize operation has been called, the De-initialize operation must be called before the Initialize operation can be called again. This routine will NEVER block waiting for hardware.

Example

SYS_MODULE_OBJ object; _// Returned from DRV_WM8904_Initialize_

SYS_STATUS status;

DRV_WM8904_Deinitialize(object); status = DRV_WM8904_Status(object); if (SYS_MODULE_DEINITIALIZED != status) {

_// Check again later if you need to know_ _// when the driver is deinitialized._

}

C

void DRV_WM8904_Deinitialize(SYS_MODULE_OBJ object);