wut  v1.7.0
Wii U Toolchain
Data Structures | Typedefs | Enumerations | Functions
Collaboration diagram for IM:

Data Structures

struct  IMRequest
 
struct  IMHomeButtonParams
 
struct  IMParameters
 
struct  IMDeviceStateEx
 

Typedefs

typedef struct IMRequest IMRequest
 
typedef struct IMHomeButtonParams IMHomeButtonParams
 
typedef struct IMParameters IMParameters
 
typedef struct IMDeviceStateEx IMDeviceStateEx
 
typedef uint32_t IMEventMask
 
typedef enum IMPadType IMPadType
 
typedef enum IMDeviceState IMDeviceState
 
typedef enum IMParameter IMParameter
 
typedef enum IMTimer IMTimer
 
typedef enum IMEvent IMEvent
 

Enumerations

enum  IMPadType {
  IM_PAD_TYPE_NONE = 0 ,
  IM_PAD_TYPE_WII_REMOTE = 1 ,
  IM_PAD_TYPE_WIIU_PRO_CONTROLLER = 2 ,
  IM_PAD_TYPE_WII_REMOTE_EXTENSION = 3 ,
  IM_PAD_TYPE_WIIU_GAMEPAD = 4
}
 
enum  IMDeviceState {
  IM_DEVICE_STATE_CLEAR = 0 ,
  IM_DEVICE_STATE_INACTIVE = 1 ,
  IM_DEVICE_STATE_ACTIVE = 2 ,
  IM_DEVICE_STATE_HOME = 3 ,
  IM_DEVICE_STATE_POWER = 4 ,
  IM_DEVICE_STATE_SYNC = 5
}
 
enum  IMParameter {
  IM_PARAMETER_INACTIVE_SECONDS = 0 ,
  IM_PARAMETER_DIM_ENABLED = 1 ,
  IM_PARAMETER_DIM_PERIOD = 2 ,
  IM_PARAMETER_APD_ENABLED = 3 ,
  IM_PARAMETER_APD_PERIOD = 4 ,
  IM_PARAMETER_RESET_ENABLE = 5 ,
  IM_PARAMETER_RESET_SECONDS = 6 ,
  IM_PARAMETER_POWER_OFF_ENABLE = 7 ,
  IM_PARAMETER_APD_OCCURED = 8 ,
  IM_PARAMETER_DIM_ENABLE_TV = 9 ,
  IM_PARAMETER_DIM_ENABLE_DRC = 10 ,
  IM_PARAMETER_MAX = 11
}
 
enum  IMTimer {
  IM_TIMER_DIM = 0 ,
  IM_TIMER_APD = 1
}
 
enum  IMEvent {
  IM_EVENT_ACTIVE = 1 << 0 ,
  IM_EVENT_INACTIVE = 1 << 1 ,
  IM_EVENT_DIM = 1 << 2 ,
  IM_EVENT_UNDIM = 1 << 3 ,
  IM_EVENT_APD = 1 << 4 ,
  IM_EVENT_POWER = 1 << 5 ,
  IM_EVENT_HOME = 1 << 6 ,
  IM_EVENT_SYNC = 1 << 7 ,
  IM_EVENT_RESET = 1 << 8 ,
  IM_EVENT_CANCELLED = 1 << 31
}
 

Functions

IOSHandle IM_Open (void)
 
IOSError IM_Close (IOSHandle handle)
 
IOSError IM_GetHomeButtonParams (IOSHandle handle, IMRequest *request, IMHomeButtonParams *output, IOSAsyncCallbackFn asyncCallback, void *asyncCallbackContext)
 
IOSError IM_GetParameter (IOSHandle handle, IMRequest *request, IMParameter parameter, uint32_t *output, IOSAsyncCallbackFn asyncCallback, void *asyncCallbackContext)
 
IOSError IM_GetParameters (IMParameters *parameters)
 
IOSError IM_GetNvParameter (IOSHandle handle, IMRequest *request, IMParameter parameter, uint32_t *output, IOSAsyncCallbackFn asyncCallback, void *asyncCallbackContext)
 
IOSError IM_GetNvParameterWithoutHandleAndItb (IMParameter parameter, uint32_t *outValue)
 
IOSError IM_GetRuntimeParameter (IMParameter parameter, uint32_t *outValue)
 
IOSError IM_GetTimerRemaining (IOSHandle handle, IMRequest *request, IMTimer timer, uint32_t *output, IOSAsyncCallbackFn asyncCallback, void *asyncCallbackContext)
 
IOSError IM_GetTimerRemainingSeconds (IMTimer timer, uint32_t *outSeconds)
 
IOSError IM_SetParameter (IOSHandle handle, IMRequest *request, IMParameter parameter, uint32_t value, IOSAsyncCallbackFn asyncCallback, void *asyncCallbackContext)
 
IOSError IM_SetRuntimeParameter (IMParameter parameter, uint32_t value)
 
IOSError IM_GetEventNotify (IOSHandle handle, IMRequest *request, IMEventMask *event, IOSAsyncCallbackFn asyncCallback, void *asyncCallbackContext)
 
IOSError IM_CancelGetEventNotify (IOSHandle handle, IMRequest *request, IOSAsyncCallbackFn asyncCallback, void *asyncCallbackContext)
 
IOSError IM_SetDeviceState (IOSHandle handle, IMRequest *request, IMDeviceState state, IOSAsyncCallbackFn asyncCallback, void *asyncCallbackContext)
 
IOSError IM_SetDeviceStateEx (IOSHandle handle, IMRequest *request, IMDeviceStateEx *state, IOSAsyncCallbackFn asyncCallback, void *asyncCallbackContext)
 

Detailed Description


Data Structure Documentation

◆ IMRequest

struct IMRequest

Definition at line 41 of file im.h.

Data Fields
uint8_t args[0x80]
IOSVec ioctlVecs[2]
IOSHandle handle
int32_t request
IOSAsyncCallbackFn asyncCallback
void * asyncCallbackContext
void * copySrc
void * copyDst
uint32_t copySize

◆ IMHomeButtonParams

struct IMHomeButtonParams

Definition at line 63 of file im.h.

Data Fields
IMPadType type The controller type which pressed the home button.
int32_t index The controller index which pressed the home button.

◆ IMParameters

struct IMParameters

Definition at line 74 of file im.h.

Data Fields
uint32_t resetEnabled
uint32_t dimEnabled
uint32_t dimPeriod
uint32_t apdEnabled
uint32_t apdPeriod

◆ IMDeviceStateEx

struct IMDeviceStateEx

Definition at line 89 of file im.h.

Data Fields
IMDeviceState state
IMHomeButtonParams params

Typedef Documentation

◆ IMRequest

typedef struct IMRequest IMRequest

Definition at line 1 of file im.h.

◆ IMHomeButtonParams

Definition at line 1 of file im.h.

◆ IMParameters

typedef struct IMParameters IMParameters

Definition at line 1 of file im.h.

◆ IMDeviceStateEx

Definition at line 1 of file im.h.

◆ IMEventMask

typedef uint32_t IMEventMask

Definition at line 20 of file im.h.

◆ IMPadType

typedef enum IMPadType IMPadType

◆ IMDeviceState

◆ IMParameter

typedef enum IMParameter IMParameter

◆ IMTimer

typedef enum IMTimer IMTimer

◆ IMEvent

typedef enum IMEvent IMEvent

Enumeration Type Documentation

◆ IMPadType

enum IMPadType
Enumerator
IM_PAD_TYPE_NONE 
IM_PAD_TYPE_WII_REMOTE 
IM_PAD_TYPE_WIIU_PRO_CONTROLLER 
IM_PAD_TYPE_WII_REMOTE_EXTENSION 
IM_PAD_TYPE_WIIU_GAMEPAD 

Definition at line 22 of file im.h.

◆ IMDeviceState

Enumerator
IM_DEVICE_STATE_CLEAR 
IM_DEVICE_STATE_INACTIVE 
IM_DEVICE_STATE_ACTIVE 
IM_DEVICE_STATE_HOME 
IM_DEVICE_STATE_POWER 
IM_DEVICE_STATE_SYNC 

Definition at line 31 of file im.h.

◆ IMParameter

Enumerator
IM_PARAMETER_INACTIVE_SECONDS 
IM_PARAMETER_DIM_ENABLED 
IM_PARAMETER_DIM_PERIOD 
IM_PARAMETER_APD_ENABLED 
IM_PARAMETER_APD_PERIOD 
IM_PARAMETER_RESET_ENABLE 
IM_PARAMETER_RESET_SECONDS 
IM_PARAMETER_POWER_OFF_ENABLE 
IM_PARAMETER_APD_OCCURED 
IM_PARAMETER_DIM_ENABLE_TV 
IM_PARAMETER_DIM_ENABLE_DRC 
IM_PARAMETER_MAX 

Definition at line 98 of file im.h.

◆ IMTimer

enum IMTimer
Enumerator
IM_TIMER_DIM 
IM_TIMER_APD 

Definition at line 114 of file im.h.

◆ IMEvent

enum IMEvent
Enumerator
IM_EVENT_ACTIVE 
IM_EVENT_INACTIVE 
IM_EVENT_DIM 
IM_EVENT_UNDIM 
IM_EVENT_APD 

Automatic power down.

IM_EVENT_POWER 

Controller power button was pressed.

IM_EVENT_HOME 

Home button was pressed.

IM_EVENT_SYNC 

Console sync button was pressed.

IM_EVENT_RESET 
IM_EVENT_CANCELLED 

Event notify was cancelled.

Definition at line 120 of file im.h.

Function Documentation

◆ IM_Open()

IOSHandle IM_Open ( void  )

◆ IM_Close()

IOSError IM_Close ( IOSHandle  handle)

◆ IM_GetHomeButtonParams()

IOSError IM_GetHomeButtonParams ( IOSHandle  handle,
IMRequest request,
IMHomeButtonParams output,
IOSAsyncCallbackFn  asyncCallback,
void *  asyncCallbackContext 
)

◆ IM_GetParameter()

IOSError IM_GetParameter ( IOSHandle  handle,
IMRequest request,
IMParameter  parameter,
uint32_t *  output,
IOSAsyncCallbackFn  asyncCallback,
void *  asyncCallbackContext 
)

◆ IM_GetParameters()

IOSError IM_GetParameters ( IMParameters parameters)

◆ IM_GetNvParameter()

IOSError IM_GetNvParameter ( IOSHandle  handle,
IMRequest request,
IMParameter  parameter,
uint32_t *  output,
IOSAsyncCallbackFn  asyncCallback,
void *  asyncCallbackContext 
)

◆ IM_GetNvParameterWithoutHandleAndItb()

IOSError IM_GetNvParameterWithoutHandleAndItb ( IMParameter  parameter,
uint32_t *  outValue 
)

◆ IM_GetRuntimeParameter()

IOSError IM_GetRuntimeParameter ( IMParameter  parameter,
uint32_t *  outValue 
)

◆ IM_GetTimerRemaining()

IOSError IM_GetTimerRemaining ( IOSHandle  handle,
IMRequest request,
IMTimer  timer,
uint32_t *  output,
IOSAsyncCallbackFn  asyncCallback,
void *  asyncCallbackContext 
)

◆ IM_GetTimerRemainingSeconds()

IOSError IM_GetTimerRemainingSeconds ( IMTimer  timer,
uint32_t *  outSeconds 
)

◆ IM_SetParameter()

IOSError IM_SetParameter ( IOSHandle  handle,
IMRequest request,
IMParameter  parameter,
uint32_t  value,
IOSAsyncCallbackFn  asyncCallback,
void *  asyncCallbackContext 
)

◆ IM_SetRuntimeParameter()

IOSError IM_SetRuntimeParameter ( IMParameter  parameter,
uint32_t  value 
)

◆ IM_GetEventNotify()

IOSError IM_GetEventNotify ( IOSHandle  handle,
IMRequest request,
IMEventMask event,
IOSAsyncCallbackFn  asyncCallback,
void *  asyncCallbackContext 
)

◆ IM_CancelGetEventNotify()

IOSError IM_CancelGetEventNotify ( IOSHandle  handle,
IMRequest request,
IOSAsyncCallbackFn  asyncCallback,
void *  asyncCallbackContext 
)

◆ IM_SetDeviceState()

IOSError IM_SetDeviceState ( IOSHandle  handle,
IMRequest request,
IMDeviceState  state,
IOSAsyncCallbackFn  asyncCallback,
void *  asyncCallbackContext 
)

◆ IM_SetDeviceStateEx()

IOSError IM_SetDeviceStateEx ( IOSHandle  handle,
IMRequest request,
IMDeviceStateEx state,
IOSAsyncCallbackFn  asyncCallback,
void *  asyncCallbackContext 
)