PMICQuit

Syntax

#include <revolution/pmic.h>

PMIC_ERR PMICQuit(void);

Arguments

None.

Return Values

Returns one of the following.

PMIC_ERR_OK The library has ended normally.
PMIC_ERR_BUSY The state is in transition. Call the function again.
PMIC_ERR_INVALID_STATE Close the Wii Speak microphone and then call the function again.
PMIC_ERR_FATAL A fatal error has occurred.

Description

Performs the process to exit the PMIC library. If you want to use other PMIC functions after calling this function, you need to call PMICInit again.

This function takes time to complete. (The amount of time varies according to whether another USB device is mounted.) Therefore, be careful of the situation in which you call this function and of the method used to call this function. For example, call this function in a thread that does not affect the progress of the game even if stopped for a long time. Or call this function when it does not affect the progress of the game, for example, while the stage is switching and the screen is darkened.

See Also

PMICInit

Revision History

2008/09/25 Added description relating to processing time.
2008/03/04 Changed the function reference format.
2008/01/25 Initial version.


CONFIDENTIAL