AC97_Write

The function AC97_Write is responsible for writing the data specified by the Data parameter to the codec register specified by the Offset parameter.

short int AC97_Write( BYTE Offset, unsigned short int Data, BYTE DevId );

Parameters

Offset
Offset-parameter of the codec-register.

Data
Data to be written to the specified codec-register.

DevId
0, reserved for future use.

Return Values

If the function succeeds, the return value is SUCCESS.
If the function fails, the return value is FALSE.

Remarks

Don't call AC97_Lock before using this function. It will use the same Mutex to lock access to the AC97-Link!!

Requirements

OS Versions: Windows CE 4.2 and later.
Header: drvlib_app.h
Link Library: drvlib_app.lib

See Also

AC97_Read, AC97_Lock, AC97_Init