![]() |
vitasdk
Documentation of the vitasdk
|
#include <psp2kern/types.h>Go to the source code of this file.
Data Structures | |
| struct | SceHprmInternalState |
| SceHpremote module state on FW 3.60. More... | |
Typedefs | |
| typedef void(* | SceHprmConnectCallback) (SceBool headphone_detect, SceBool audio_out_dock_exists, SceBool headphone_exists, SceHprmDeviceState remote_state, SceHprmDeviceState microphone_state, void *argp) |
| Direct connection callback installed by ksceHprmSetConnectCallback. | |
Enumerations | |
| enum | SceHprmDeviceState { SCE_HPRM_DEVICE_STATE_PENDING = -1 , SCE_HPRM_DEVICE_STATE_NOT_CONNECTED = 0 , SCE_HPRM_DEVICE_STATE_CONNECTED = 1 } |
| Connection state reported for devices that require asynchronous detection. More... | |
| enum | SceHprmConnectedDevice { SCE_HPRM_CONNECTED_DEVICE_HEADPHONE = 0x1 , SCE_HPRM_CONNECTED_DEVICE_REMOTE = 0x2 , SCE_HPRM_CONNECTED_DEVICE_MICROPHONE = 0x4 } |
| Connected-device bits delivered to callbacks registered with ksceHprmRegisterCallback. More... | |
Functions | |
| VITASDK_BUILD_ASSERT_EQ (0xAC, SceHprmInternalState) | |
| SceBool | ksceHprmGetHpDetect (void) |
| Get the debounced Syscon headphone-detect signal. | |
| int | ksceHprmGetInternalState (SceHprmInternalState **state) |
| Get the module's internal state. | |
| SceBool | ksceHprmIsAudioOutDockExist (void) |
| Check whether an audio-output dock is connected to the multiconnector. | |
| SceBool | ksceHprmIsHeadphoneExist (void) |
| Check whether headphones are connected. | |
| SceBool | ksceHprmIsMicrophoneExist (void) |
| Check whether a headset microphone is connected. | |
| SceBool | ksceHprmIsRemoteExist (void) |
| Check whether a headset remote is connected. | |
| int | ksceHprmRegisterCallback (SceUID callback_id) |
| Register a kernel callback UID for connection-state notifications. | |
| int | ksceHprmReset (void) |
| Request a new headset connection probe. | |
| int | ksceHprmSetConnectCallback (SceHprmConnectCallback callback, void *argp) |
| Install the direct connection callback. | |
| int | ksceHprmShutdown (void) |
| Suspend headset probing. | |
| int | ksceHprmUnregisterCallback (SceUID callback_id) |
| Unregister a kernel callback UID. | |