#include <nitro/spi.h>
u32 PMi_GetSoundVolume( PMSoundVolumeSwitch* swBuf );
This function gets the currently set values of the effective switch of the external sound volume.
The PMSoundVolumeSwitch enumerator type value is stored in the swBuf argument and can contain either one of the following values:
PM_SOUND_VOLUME_OFF |
Turns off the external sound volume and forces the speaker output at maximum volume. |
PM_SOUND_VOLUME_ON |
Turns on the external sound volume. |
This function uses PXI to send the command that performs the corresponding operation in the ARM7 processor. The ARM7 side that receives that command is executed by operating the PMIC.
Before you use this function, initialize the PM library by using the PM_Init() function. The PM_Init() function has to be called only once.
The OS_Init() function is called from within the PM_Init() function. If you need to call the OS_Init() function, you have to call the PM_Init() function only once. There is no need for the OS_Init() function to be called separately.
Reads the PMIC_CTL value of the PMIC register.
swBuf |
the buffer that stores the obtained results of sound unit power switch |
The PM_RESULT_SUCCESS return value indicates that the execution of the command has succeeded.
The PM_RESULT_ERROR return value indicates that an error has occurred with the ARM7 processor.
08/09/2004 Initial version