wut
v1.7.0
Wii U Toolchain
|
(see nn::ccr) More...
Data Structures | |
struct | CCRSysUpdateState |
Typedefs | |
typedef struct CCRSysUpdateState | CCRSysUpdateState |
typedef enum CCRSysPairingState | CCRSysPairingState |
typedef enum CCRSysInitBootFlag | CCRSysInitBootFlag |
typedef enum CCRSysLCDMode | CCRSysLCDMode |
Enumerations | |
enum | CCRSysPairingState { CCR_SYS_PAIRING_FINISHED = 0 , CCR_SYS_PAIRING_IN_PROGRESS = 1 , CCR_SYS_PAIRING_TIMED_OUT = 2 } |
enum | CCRSysInitBootFlag { CCR_SYS_BOOT_FLAG_NONE = 0 , CCR_SYS_BOOT_FLAG_FIRST_BOOT = 1 } |
enum | CCRSysLCDMode { CCR_SYS_LCD_MODE_BRIGHTNESS_1 = 1 , CCR_SYS_LCD_MODE_BRIGHTNESS_2 = 2 , CCR_SYS_LCD_MODE_BRIGHTNESS_3 = 3 , CCR_SYS_LCD_MODE_BRIGHTNESS_4 = 4 , CCR_SYS_LCD_MODE_BRIGHTNESS_5 = 5 } |
Functions | |
void | CCRSysInit (void) |
void | CCRSysExit (void) |
int32_t | CCRSysDRCShutdown (void) |
Shutdown the DRC in slot 0. More... | |
int32_t | CCRSysInvalidatePairing (void) |
Invalidate the DRC pairing in slot 0. More... | |
BOOL | __CCRSysDRCIsAttached (uint32_t drcSlot) |
Check if the DRC in the specified slot is attached. More... | |
int32_t | CCRSysStartPairing (uint32_t drcSlot, uint32_t timeout) |
Starts the pairing process for the specified slot. More... | |
int32_t | CCRSysStopPairing (void) |
Stops the pairing process. More... | |
CCRSysPairingState | CCRSysGetPairingState (void) |
Gets the current pairing state. More... | |
int32_t | CCRSysGetPincode (uint32_t *pin) |
Gets the pin code used for pairing in decimal representation. More... | |
int32_t | CCRSysSetSystemTime (OSTime time) |
Sets the DRH system time. More... | |
int32_t | CCRSysNeedsDRCFWUpdate (uint32_t drcSlot, BOOL *outNeedsUpdate) |
Check if a DRC firmware update is needed. More... | |
int32_t | __CCRSysNeedsDRCFWUpdate (uint32_t drcSlot, BOOL *outNeedsUpdate, BOOL allowDowngrade) |
Check if a DRC firmware update is needed. More... | |
int32_t | CCRSysDRCFWUpdate (uint32_t drcSlot) |
Starts a DRC firmware update if necessary and region matches. More... | |
int32_t | __CCRSysDRCFWUpdate (uint32_t drcSlot, BOOL allowDowngrade) |
Starts a DRC firmware update if necessary. More... | |
void | CCRSysDRCFWUpdateForward (void) |
Finish a pending DRC firmware update. More... | |
void | CCRSysGetUpdateState (CCRSysUpdateState *outUpdateState) |
Get the update state during a pending DRC firmware update. More... | |
void | __CCRSysInitReattach (uint32_t drcSlot) |
Initialize a DRC reattach. More... | |
int32_t | __CCRSysWaitReattach (uint32_t drcSlot, BOOL unknown) |
Wait for the DRC to reattach. More... | |
int32_t | CCRSysGetVersionCheckFlag (uint32_t *outFlag) |
Get the version check flag. More... | |
int32_t | CCRSysSetVersionCheckFlag (uint32_t flag) |
Set the version check flag. More... | |
int32_t | CCRSysCaffeineSetCaffeineSlot (uint32_t slot) |
int32_t | CCRSysSetInitBootFlag (CCRSysInitBootFlag flag) |
int32_t | CCRSysInitializeSettings () |
Resets the DRC (It'll show "Turn on the TV and Wii U console" until paired) More... | |
int32_t | CCRSysSetCurrentLCDMode (CCRSysLCDMode mode) |
Sets the brightness of the DRC. More... | |
int32_t | CCRSysGetCurrentLCDMode (CCRSysLCDMode *mode) |
Gets the brightness of the DRC. More... | |
(see nn::ccr)
struct CCRSysUpdateState |
typedef struct CCRSysUpdateState CCRSysUpdateState |
typedef enum CCRSysPairingState CCRSysPairingState |
typedef enum CCRSysInitBootFlag CCRSysInitBootFlag |
typedef enum CCRSysLCDMode CCRSysLCDMode |
enum CCRSysPairingState |
enum CCRSysInitBootFlag |
enum CCRSysLCDMode |
void CCRSysInit | ( | void | ) |
void CCRSysExit | ( | void | ) |
int32_t CCRSysDRCShutdown | ( | void | ) |
Shutdown the DRC in slot 0.
int32_t CCRSysInvalidatePairing | ( | void | ) |
Invalidate the DRC pairing in slot 0.
BOOL __CCRSysDRCIsAttached | ( | uint32_t | drcSlot | ) |
Check if the DRC in the specified slot is attached.
drcSlot | Slot from 0 to 1. |
TRUE
if attached. int32_t CCRSysStartPairing | ( | uint32_t | drcSlot, |
uint32_t | timeout | ||
) |
Starts the pairing process for the specified slot.
drcSlot | Slot from 0 to 1. |
timeout | Timeout in seconds. |
int32_t CCRSysStopPairing | ( | void | ) |
Stops the pairing process.
CCRSysPairingState CCRSysGetPairingState | ( | void | ) |
Gets the current pairing state.
int32_t CCRSysGetPincode | ( | uint32_t * | pin | ) |
Gets the pin code used for pairing in decimal representation.
♠ = 0, ♥ = 1, ♦ = 2, ♣ = 3
pin | Pointer to write the pin code to. |
int32_t CCRSysSetSystemTime | ( | OSTime | time | ) |
Sets the DRH system time.
time | The system time in ticks. |
int32_t CCRSysNeedsDRCFWUpdate | ( | uint32_t | drcSlot, |
BOOL * | outNeedsUpdate | ||
) |
Check if a DRC firmware update is needed.
This function additionally verifies the DRC area compared to __CCRSysNeedsDRCFWUpdate.
drcSlot | Slot from 0 to 1. |
outNeedsUpdate | Pointer to store the result to. |
Check if a DRC firmware update is needed.
drcSlot | Slot from 0 to 1. |
outNeedsUpdate | Pointer to store the result to. |
allowDowngrade | Only check if the installed version doesn't match the running version, instead of checking that it's greater. |
int32_t CCRSysDRCFWUpdate | ( | uint32_t | drcSlot | ) |
Starts a DRC firmware update if necessary and region matches.
drcSlot | Slot from 0 to 1. |
int32_t __CCRSysDRCFWUpdate | ( | uint32_t | drcSlot, |
BOOL | allowDowngrade | ||
) |
Starts a DRC firmware update if necessary.
drcSlot | Slot from 0 to 1. |
allowDowngrade | Only check if the installed version doesn't match the running version, instead of checking that it's greater. There are additional checks on the IOS side and this doesn't actually allow downgrading the firmware. |
void CCRSysDRCFWUpdateForward | ( | void | ) |
Finish a pending DRC firmware update.
void CCRSysGetUpdateState | ( | CCRSysUpdateState * | outUpdateState | ) |
Get the update state during a pending DRC firmware update.
outUpdateState | Pointer to store the state to. |
void __CCRSysInitReattach | ( | uint32_t | drcSlot | ) |
Initialize a DRC reattach.
drcSlot | Slot from 0 to 1. |
int32_t __CCRSysWaitReattach | ( | uint32_t | drcSlot, |
BOOL | unknown | ||
) |
Wait for the DRC to reattach.
This returns once the DRC disconnects and reconnects or a timeout is reached.
drcSlot | Slot from 0 to 1. |
int32_t CCRSysGetVersionCheckFlag | ( | uint32_t * | outFlag | ) |
Get the version check flag.
outFlag | Pointer to write the flag to. |
int32_t CCRSysSetVersionCheckFlag | ( | uint32_t | flag | ) |
Set the version check flag.
outFlag | The flag to set. |
int32_t CCRSysCaffeineSetCaffeineSlot | ( | uint32_t | slot | ) |
int32_t CCRSysSetInitBootFlag | ( | CCRSysInitBootFlag | flag | ) |
int32_t CCRSysInitializeSettings | ( | ) |
Resets the DRC (It'll show "Turn on the TV and Wii U console" until paired)
int32_t CCRSysSetCurrentLCDMode | ( | CCRSysLCDMode | mode | ) |
Sets the brightness of the DRC.
int32_t CCRSysGetCurrentLCDMode | ( | CCRSysLCDMode * | mode | ) |
Gets the brightness of the DRC.