Difference between revisions of "Nsysccr.rpl"
Jump to navigation
Jump to search
NWPlayer123 (talk | contribs) m (Add comment, change function name which should have double checked oops) |
NWPlayer123 (talk | contribs) m |
||
Line 4: | Line 4: | ||
void CCREnableFwUpdateMode(void) | void CCREnableFwUpdateMode(void) | ||
{ | { | ||
− | if(bspWrite("CCRH", 0, "Reset") == 0) | + | if(bspWrite("CCRH", 0, "Reset") == 0) //bspWrite in coreinit, interfaces with IOS-BSP |
COSWarn(1, "Successfully reset host and ENabled fw update\n"); | COSWarn(1, "Successfully reset host and ENabled fw update\n"); | ||
else | else | ||
Line 14: | Line 14: | ||
void CCRDisableFwUpdateMode(void) | void CCRDisableFwUpdateMode(void) | ||
{ | { | ||
− | if( | + | if(bspWrite("CCRH", 0, "Reset") == 0) //bspWrite in coreinit, interfaces with IOS-BSP |
COSWarn(1, "Successfully reset host and DISabled fw update\n"); | COSWarn(1, "Successfully reset host and DISabled fw update\n"); | ||
else | else |
Revision as of 02:08, 15 April 2016
nsysccr is Nintendo System CCR which interfaces with the IOS-PAD part of IOSU through various /dev nodes. See the IOSU wiki page for a list.
Reverse Engineered (Pseudo)Code
void CCREnableFwUpdateMode(void)
{
if(bspWrite("CCRH", 0, "Reset") == 0) //bspWrite in coreinit, interfaces with IOS-BSP
COSWarn(1, "Successfully reset host and ENabled fw update\n");
else
COSWarn(1, "FAILED to reset host and enable fw update\n");
COSWarn(1, "Wait 3 seconds for HOST to deatach and attach\n"); //Typo in binary
OSSleepTicks((int64_t)3 * (OSGetSystemInfo()->busClockSpeed / 4));
}
void CCRDisableFwUpdateMode(void)
{
if(bspWrite("CCRH", 0, "Reset") == 0) //bspWrite in coreinit, interfaces with IOS-BSP
COSWarn(1, "Successfully reset host and DISabled fw update\n");
else
COSWarn(1, "FAILED to reset host and disable fw update\n");
COSWarn(1, "Wait 3 seconds for HOST to deatach and attach\n"); //Typo in binary
OSSleepTicks((int64_t)3 * (OSGetSystemInfo()->busClockSpeed / 4));
}
void CCRHIDSetup(void)
{
COSInfo(6, "%s() depricated, no need to call\n", "CCRHIDSetup"); //Typo in binary
return 0;
}
void CCRHIDTeardown(void)
{
COSInfo(6, "%s() depricated, no need to call\n", "CCRHIDTeardown"); //Typo in binary
return 0;
}