sceHprmRegisterCallback

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
MIB.42
Posts: 5
Joined: Fri Nov 03, 2006 5:29 pm

sceHprmRegisterCallback

Post by MIB.42 »

Any update / anybody has experience with the sceHprmRegisterCallback and the rest of the "not-in-the-include-file" sceHprm calls?

I tried chid = sceKernelCreateCallback("Hprm Callback", hprm_callback, NULL);sceHprmRegisterCallback(chid); with no luck...
hlide
Posts: 739
Joined: Sun Sep 10, 2006 2:31 am

Post by hlide »

AFAIK Hprm is for your Sony headphone with its audio pad.
MIB.42
Posts: 5
Joined: Fri Nov 03, 2006 5:29 pm

Post by MIB.42 »

Yes, I am interested in if anybody used the sceHprmInit, sceHprmEnd, sceHprmSuspend, sceHprmResume, sceHprmRegisterCallback, sceHprmUnregisterCallback functions... also the sceHprmGetModel...
User avatar
dot_blank
Posts: 498
Joined: Wed Sep 28, 2005 8:47 am
Location: Brasil

Post by dot_blank »

you mean like this

Code: Select all

static void _sioInit(void)
{
        /* Shut down the remote driver */
        sceHprmEnd();
        /* Enable UART 4 */
        sceSysregUartIoEnable(4);
        /* Enable remote control power */
        sceSyscon_driver_44439604(1);
}

Code: Select all

void sioInit(int baud, int kponly)
{
        _sioInit();
        if(!kponly)
        {
                g_eventflag = sceKernelCreateEventFlag("SioShellEvent", 0, 0, 0);
                sceKernelRegisterIntrHandler(PSP_HPREMOTE_INT, 1, intr_handler, NULL, NULL);
                sceKernelEnableIntr(PSP_HPREMOTE_INT);
                /* Delay thread for a bit */
                sceKernelDelayThread(2000000);
        }
        sioSetBaud(baud);
        sioInstallKprintf();
}
check psplink sio source for more info here
http://svn.ps2dev.org/filedetails.php?r ... rev=0&sc=0
10011011 00101010 11010111 10001001 10111010
Post Reply