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

Go to the source code of this file.

Data Structures

struct  CCRCDCRegisterCallbackData
 
struct  CCRCDCMacAddress
 
struct  CCRCDCWpsArgs
 
struct  CCRCDCSysMessage
 
struct  CCRCDCSysInfo
 
struct  CCRCDCEepromData
 
struct  CCRCDCWowlWakeDrcArg
 
struct  CCRCDCUicConfig
 
struct  CCRCDCFWInfo
 
struct  CCRCDCSoftwareVersion
 
struct  CCRCDCDrcState
 
struct  CCRCDCDrhState
 

Typedefs

typedef struct CCRCDCMacAddress CCRCDCMacAddress
 
typedef struct CCRCDCWpsArgs CCRCDCWpsArgs
 
typedef struct CCRCDCSysMessage CCRCDCSysMessage
 
typedef struct CCRCDCSysInfo CCRCDCSysInfo
 
typedef struct CCRCDCEepromData CCRCDCEepromData
 
typedef struct CCRCDCWowlWakeDrcArg CCRCDCWowlWakeDrcArg
 
typedef struct CCRCDCUicConfig CCRCDCUicConfig
 
typedef struct CCRCDCFWInfo CCRCDCFWInfo
 
typedef struct CCRCDCSoftwareVersion CCRCDCSoftwareVersion
 
typedef struct CCRCDCDrhState CCRCDCDrhState
 
typedef struct CCRCDCDrcState CCRCDCDrcState
 
typedef struct CCRCDCRegisterCallbackData CCRCDCRegisterCallbackData
 
typedef uint8_t CCRCDCDestination
 
typedef uint32_t CCRCDCWpsStatusType
 
typedef uint8_t CCRCDCWakeState
 
typedef uint8_t CCRCDCUicConfigId
 
typedef void(* CCRCDCRegisterCallbackFn) (CCRCDCRegisterCallbackData *, void *)
 
typedef enum CCRCDCDestinationEnum CCRCDCDestinationEnum
 
typedef enum CCRCDCWpsStatusEnum CCRCDCWpsStatusEnum
 
typedef enum CCRCDCDrcStateEnum CCRCDCDrcStateEnum
 
typedef enum CCRCDCWakeStateEnum CCRCDCWakeStateEnum
 
typedef enum CCRCDCBoardVersion CCRCDCBoardVersion
 
typedef enum CCRCDCChipVersion CCRCDCChipVersion
 
typedef enum CCRCDCUicConfigIdEnum CCRCDCUicConfigIdEnum
 
typedef enum CCRCDCExt CCRCDCExt
 
typedef enum CCRCDCDrhStateEnum CCRCDCDrhStateEnum
 

Enumerations

enum  CCRCDCDestinationEnum {
  CCR_CDC_DESTINATION_DRH = 1 ,
  CCR_CDC_DESTINATION_DRC0 = 2 ,
  CCR_CDC_DESTINATION_DRC1 = 3
}
 
enum  CCRCDCWpsStatusEnum {
  CCR_CDC_WPS_STATUS_PAIRED = 0 ,
  CCR_CDC_WPS_STATUS_SEARCHING = 1 ,
  CCR_CDC_WPS_STATUS_PAIRING = 2
}
 
enum  CCRCDCDrcStateEnum {
  CCR_CDC_DRC_STATE_ACTIVE = 0 ,
  CCR_CDC_DRC_STATE_PAIRING = 1 ,
  CCR_CDC_DRC_STATE_FWUPDATE = 2 ,
  CCR_CDC_DRC_STATE_STANDALONE = 3 ,
  CCR_CDC_DRC_STATE_BACKGROUND = 4 ,
  CCR_CDC_DRC_STATE_SLEEP = 5 ,
  CCR_CDC_DRC_STATE_STANDBY = 6 ,
  CCR_CDC_DRC_STATE_WOWLSETTING = 7 ,
  CCR_CDC_DRC_STATE_DKSETTING = 8 ,
  CCR_CDC_DRC_STATE_UNKNOWN9 = 9 ,
  CCR_CDC_DRC_STATE_WIIACTIVE = 10 ,
  CCR_CDC_DRC_STATE_LOW_BATTERY = 11 ,
  CCR_CDC_DRC_STATE_SUBACTIVE = 12
}
 
enum  CCRCDCWakeStateEnum {
  CCR_CDC_WAKE_STATE_ACTIVE = 1 ,
  CCR_CDC_WAKE_STATE_BACKGROUND = 2
}
 
enum  CCRCDCBoardVersion {
  CCR_CDC_BOARD_VERSION_DK1 = 0 ,
  CCR_CDC_BOARD_VERSION_DK1_EP_DK2 = 1 ,
  CCR_CDC_BOARD_VERSION_DP1 = 2 ,
  CCR_CDC_BOARD_VERSION_DP2 = 3 ,
  CCR_CDC_BOARD_VERSION_DK3 = 4 ,
  CCR_CDC_BOARD_VERSION_DK4 = 5 ,
  CCR_CDC_BOARD_VERSION_PREDP3_DP3 = 6 ,
  CCR_CDC_BOARD_VERSION_DK5 = 7 ,
  CCR_CDC_BOARD_VERSION_DP4 = 8 ,
  CCR_CDC_BOARD_VERSION_DKMP = 9 ,
  CCR_CDC_BOARD_VERSION_DP5 = 10 ,
  CCR_CDC_BOARD_VERSION_MASS = 11 ,
  CCR_CDC_BOARD_VERSION_DKMP2 = 12 ,
  CCR_CDC_BOARD_VERSION_DRC_I = 13 ,
  CCR_CDC_BOARD_VERSION_DKTVMP = 14
}
 
enum  CCRCDCChipVersion {
  CCR_CDC_CHIP_VERSION_TS = 0x10 ,
  CCR_CDC_CHIP_VERSION_ES1 = 0x20 ,
  CCR_CDC_CHIP_VERSION_ES2 = 0x30 ,
  CCR_CDC_CHIP_VERSION_ES3 = 0x40 ,
  CCR_CDC_CHIP_VERSION_MS01 = 0x41
}
 
enum  CCRCDCUicConfigIdEnum {
  CCR_CDC_UIC_CONFIG_ID_LANGUAGE_BANK = 0 ,
  CCR_CDC_UIC_CONFIG_ID_MIC_CONFIG = 2 ,
  CCR_CDC_UIC_CONFIG_ID_ACC_CALIBRATION_VALUE = 3 ,
  CCR_CDC_UIC_CONFIG_ID_TP_CALIBRATION_VALUE = 5 ,
  CCR_CDC_UIC_CONFIG_ID_UNK7 = 7 ,
  CCR_CDC_UIC_CONFIG_ID_UNK8 = 8 ,
  CCR_CDC_UIC_CONFIG_ID_LANGUAGE_EXT_ID = 9 ,
  CCR_CDC_UIC_CONFIG_ID_TV_CONTROL_ID = 10 ,
  CCR_CDC_UIC_CONFIG_ID_EXT_ID_2 = 11 ,
  CCR_CDC_UIC_CONFIG_ID_EXT_ID_3 = 12 ,
  CCR_CDC_UIC_CONFIG_ID_EXT_ID_4 = 13 ,
  CCR_CDC_UIC_CONFIG_ID_INIT_BOOT_FLAG = 14 ,
  CCR_CDC_UIC_CONFIG_ID_UNK15 = 15 ,
  CCR_CDC_UIC_CONFIG_ID_LCD_MODE = 16 ,
  CCR_CDC_UIC_CONFIG_ID_RC_DATABASE_EXT_ID = 17 ,
  CCR_CDC_UIC_CONFIG_ID_UNK18 = 18 ,
  CCR_CDC_UIC_CONFIG_ID_CAFFEINE_ENABLE_FLAG = 19 ,
  CCR_CDC_UIC_CONFIG_ID_CAFFEINE_INITIAL_BOOT_FLAG = 20 ,
  CCR_CDC_UIC_CONFIG_ID_CAFFEINE_CAFFEINE_SLOT = 21 ,
  CCR_CDC_UIC_CONFIG_ID_CAFFEINE_NOTIFICATION_SOUND_MODE = 22 ,
  CCR_CDC_UIC_CONFIG_ID_CAFFEINE_NOTIFICATION_INFO = 23 ,
  CCR_CDC_UIC_CONFIG_ID_CAFFEINE_NOTIFICATION_READ_COUNT = 24
}
 
enum  CCRCDCExt {
  CCR_CDC_EXT_LANGUAGE = 0 ,
  CCR_CDC_EXT_RC_DATABASE = 1 ,
  CCR_CDC_EXT_UNK2 = 2 ,
  CCR_CDC_EXT_UNK3 = 3 ,
  CCR_CDC_EXT_UNK4 = 4
}
 
enum  CCRCDCDrhStateEnum {
  CCR_CDC_SYS_DRH_STATE_NORADIO = 0x00 ,
  CCR_CDC_SYS_DRH_STATE_WII = 0x01 ,
  CCR_CDC_SYS_DRH_STATE_UNK2 = 0x02 ,
  CCR_CDC_SYS_DRH_STATE_NODRC = 0x03 ,
  CCR_CDC_SYS_DRH_STATE_ECO = 0x04 ,
  CCR_CDC_SYS_DRH_STATE_UNK7F = 0x7F ,
  CCR_CDC_SYS_DRH_STATE_CAFE = 0xFF
}
 

Functions

int32_t CCRCDCCommand (uint8_t unk, uint8_t fragment, CCRCDCDestination dest, uint8_t flags0, uint8_t flags1, uint8_t service, uint8_t method, void *payload, uint32_t payloadSize, void *reply, uint32_t replySize)
 Send a command directly to the specified destination. More...
 
int32_t CCRCDCDevicePing (CCRCDCDestination dest)
 Send a ping to the specified destination. More...
 
int32_t CCRCDCSetStationId (CCRCDCMacAddress *id)
 
int32_t CCRCDCGetMacAddress (CCRCDCDestination dest, CCRCDCMacAddress *mac)
 Gets the mac address of the specified destination. More...
 
int32_t CCRCDCGetMultiDrc (uint8_t *numDrcs)
 Gets the amount of DRCs which can be connected to the system. More...
 
int32_t CCRCDCSetMultiDrc (uint8_t numDrcs)
 Sets the amount of DRCs which can be connected to the system. More...
 
int32_t CCRCDCSysGetDrcState (CCRCDCDestination dest, CCRCDCDrcState *state)
 Gets the state of the specified DRC. More...
 
int32_t CCRCDCSysSetDrcState (CCRCDCDestination dest, CCRCDCDrcState *state)
 Sets the state of the specified DRC. More...
 
int32_t CCRCDCSysGetDrhState (CCRCDCDrhState *state)
 Gets the Drh State. More...
 
int32_t CCRCDCSysSetDrhState (CCRCDCDrhState *state)
 Sets the Drh State. More...
 
int32_t CCRCDCWpsStart (void)
 Start WPS (WiFi Protected Setup) on the DRH. More...
 
int32_t CCRCDCWpsStartEx (CCRCDCWpsArgs *args)
 Start WPS (WiFi Protected Setup) on the DRH. More...
 
int32_t CCRCDCWpsStatus (CCRCDCWpsStatusType *status)
 Get the WPS status. More...
 
int32_t CCRCDCWpsStop (void)
 Stop WPS. More...
 
int32_t CCRCDCSysGetInfo (CCRCDCDestination dest, CCRCDCSysInfo *info)
 Get system information. More...
 
int32_t CCRCDCSysDrcDisplayMessage (CCRCDCDestination dest, CCRCDCSysMessage *message)
 Display a message on the specified DRC. More...
 
int32_t CCRCDCPerGetUicEeprom (CCRCDCDestination dest, CCRCDCEepromData *eeprom)
 Read the Eeprom of the specified device. More...
 
int32_t CCRCDCPerGetUicEepromEx (CCRCDCDestination dest, CCRCDCEepromData *eeprom, IOSAsyncCallbackFn callback, void *arg)
 Read the Eeprom of the specified device (async version). More...
 
int32_t CCRCDCSysConsoleShutdownInd (CCRCDCDestination dest)
 Notify the specified device that the console is about to shut down, and the device should shut down as well. More...
 
int32_t CCRCDCWowlWakeDrc (CCRCDCWowlWakeDrcArg *arg)
 Wake on Wireless LAN (power on) the DRC(s). More...
 
int32_t CCRCDCPerClearUicConfig (CCRCDCDestination dest)
 This doesn't seem to be implemented on the latest DRC/DRH firmware, and always returns an error. More...
 
int32_t CCRCDCPerSetUicConfig (CCRCDCDestination dest, CCRCDCUicConfig *config)
 Set a configuration value in the DRC UIC EEPROM. More...
 
uint16_t CCRCDCCalcCRC16 (void *data, uint32_t dataSize)
 Calculate a CRC16 used for DRC UIC EEPROM values. More...
 
int32_t CCRCDCGetFWInfo (CCRCDCDestination dest, CCRCDCFWInfo *outInfo)
 Get the firmware info during a pending update. More...
 
int32_t CCRCDCSoftwareGetVersion (CCRCDCDestination dest, CCRCDCSoftwareVersion *outVersion)
 Get software version information. More...
 
int32_t CCRCDCSoftwareUpdate (CCRCDCDestination dest, const char *path, IOSAsyncCallbackFn callback, void *userContext)
 Perform a software update. More...
 
int32_t CCRCDCSoftwareAbort (CCRCDCDestination dest)
 Abort a software update. More...
 
int32_t CCRCDCSoftwareActivate (CCRCDCDestination dest)
 Activate a performed software update. More...
 
int32_t CCRCDCSoftwareLangUpdate (CCRCDCDestination dest, const char *path, uint32_t *outVersion, IOSAsyncCallbackFn callback, void *userContext)
 Perform a language update. More...
 
int32_t CCRCDCSoftwareLangActivate (CCRCDCDestination dest, uint32_t version, uint32_t *outActivationResult)
 Activate a performed language update. More...
 
int32_t CCRCDCSoftwareGetExtId (CCRCDCDestination dest, CCRCDCExt ext, uint32_t *outId)
 Get an ext id from the specified destination. More...
 
int32_t CCRCDCSoftwareExtUpdate (CCRCDCDestination dest, const char *path, uint32_t imageSize, uint32_t extId, CCRCDCExt ext, IOSAsyncCallbackFn callback, void *userContext)
 Perform an ext update. More...
 
int32_t CCRCDCRegisterAOAttachCallback (CCRCDCRegisterCallbackFn callback, void *context)
 
int32_t CCRCDCRegisterCFGAttachCallback (CCRCDCRegisterCallbackFn callback, void *context)
 
int32_t CCRCDCRegisterHIDAttachCallback (CCRCDCRegisterCallbackFn callback, void *context)
 
int32_t CCRCDCRegisterSYSAttachCallback (CCRCDCRegisterCallbackFn callback, void *context)
 
int32_t CCRCDCRegisterUACAttachCallback (CCRCDCRegisterCallbackFn callback, void *context)
 
int32_t CCRCDCRegisterUVCAttachCallback (CCRCDCRegisterCallbackFn callback, void *context)
 
int32_t CCRCDCRegisterVOAttachCallback (CCRCDCRegisterCallbackFn callback, void *context)