wut  v1.7.0
Wii U Toolchain
Data Structures | Typedefs | Enumerations | Functions
sys.h File Reference
#include <wut.h>
#include <coreinit/time.h>
Include dependency graph for sys.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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...