1.1.2.3.4 DRV_AK4954_Deinitialize Function

void DRV_AK4954_Deinitialize( SYS_MODULE_OBJ object)

Summary

Deinitializes the specified instance of the AK4954 driver module.

Description

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

Preconditions

Function DRV_AK4954_Initialize should have been called before calling this function.

Parameters

ParametersDescription
objectDriver object handle, returned from the DRV_AK4954_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_AK4954_Initialize_

SYS_STATUS status;

DRV_AK4954_Deinitialize(object);

status = DRV_AK4954_Status(object); if (SYS_MODULE_DEINITIALIZED != status) {

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

}

C

void DRV_AK4954_Deinitialize(SYS_MODULE_OBJ object);