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

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)
 

Detailed Description


Data Structure Documentation

◆ CCRCDCRegisterCallbackData

struct CCRCDCRegisterCallbackData

Definition at line 33 of file cdc.h.

Data Fields
int32_t attached
uint32_t chan

◆ CCRCDCMacAddress

struct CCRCDCMacAddress

Definition at line 182 of file cdc.h.

Data Fields
CCRCDCDestination device The device this mac address belongs to.
uint8_t address[6]

◆ CCRCDCWpsArgs

struct CCRCDCWpsArgs

Definition at line 192 of file cdc.h.

Data Fields
uint8_t hasArgs Should be set to 1.
char pin[8] The pin code used for WPS.
uint16_t timeout Timeout in seconds.
CCRCDCDestination pairDestination

◆ CCRCDCSysMessage

struct CCRCDCSysMessage

Definition at line 209 of file cdc.h.

Data Fields
uint16_t message
uint16_t timeout Timeout in seconds.

◆ CCRCDCSysInfo

struct CCRCDCSysInfo

Definition at line 219 of file cdc.h.

Data Fields
CCRCDCBoardVersion boardVersion
CCRCDCChipVersion chipVersion
uint32_t lvcVersion
uint32_t umiVersion
uint32_t unknown
uint32_t sdCis
uint32_t splId

◆ CCRCDCEepromData

struct CCRCDCEepromData

Definition at line 238 of file cdc.h.

Data Fields
uint32_t version
uint8_t data[0x300]

◆ CCRCDCWowlWakeDrcArg

struct CCRCDCWowlWakeDrcArg

Definition at line 247 of file cdc.h.

Data Fields
CCRCDCWakeState state Must be one of CCRCDCWakeStateEnum.

◆ CCRCDCUicConfig

struct CCRCDCUicConfig

Definition at line 256 of file cdc.h.

Data Fields
CCRCDCUicConfigId configId Configuration ID (see CCRCDCUicConfigIdEnum)
uint8_t size Size of the configuration data (must match the size described in CCRCDCUicConfigIdEnum)
uint8_t data[0x100] Configuration data.

◆ CCRCDCFWInfo

struct CCRCDCFWInfo

Definition at line 270 of file cdc.h.

Data Fields
uint32_t imageSize
uint32_t blockSize
uint32_t imageVersion
uint32_t sequencePerSession
uint32_t updateProgress Progress from 0-100.

◆ CCRCDCSoftwareVersion

struct CCRCDCSoftwareVersion

Definition at line 286 of file cdc.h.

Data Fields
uint32_t runningVersion
uint32_t activeVersion

◆ CCRCDCDrcState

struct CCRCDCDrcState

Definition at line 295 of file cdc.h.

Data Fields
uint8_t state Must be one of CCRCDCDrcStateEnum.

◆ CCRCDCDrhState

struct CCRCDCDrhState

Definition at line 302 of file cdc.h.

Data Fields
uint8_t state Must be one of CCRCDCDrhStateEnum.

Typedef Documentation

◆ CCRCDCMacAddress

Definition at line 1 of file cdc.h.

◆ CCRCDCWpsArgs

typedef struct CCRCDCWpsArgs CCRCDCWpsArgs

Definition at line 1 of file cdc.h.

◆ CCRCDCSysMessage

Definition at line 1 of file cdc.h.

◆ CCRCDCSysInfo

typedef struct CCRCDCSysInfo CCRCDCSysInfo

Definition at line 1 of file cdc.h.

◆ CCRCDCEepromData

Definition at line 1 of file cdc.h.

◆ CCRCDCWowlWakeDrcArg

Definition at line 1 of file cdc.h.

◆ CCRCDCUicConfig

Definition at line 1 of file cdc.h.

◆ CCRCDCFWInfo

typedef struct CCRCDCFWInfo CCRCDCFWInfo

Definition at line 1 of file cdc.h.

◆ CCRCDCSoftwareVersion

Definition at line 1 of file cdc.h.

◆ CCRCDCDrhState

Definition at line 1 of file cdc.h.

◆ CCRCDCDrcState

Definition at line 1 of file cdc.h.

◆ CCRCDCRegisterCallbackData

Definition at line 1 of file cdc.h.

◆ CCRCDCDestination

typedef uint8_t CCRCDCDestination

Definition at line 28 of file cdc.h.

◆ CCRCDCWpsStatusType

typedef uint32_t CCRCDCWpsStatusType

Definition at line 29 of file cdc.h.

◆ CCRCDCWakeState

typedef uint8_t CCRCDCWakeState

Definition at line 30 of file cdc.h.

◆ CCRCDCUicConfigId

typedef uint8_t CCRCDCUicConfigId

Definition at line 31 of file cdc.h.

◆ CCRCDCRegisterCallbackFn

typedef void(* CCRCDCRegisterCallbackFn) (CCRCDCRegisterCallbackData *, void *)

Definition at line 43 of file cdc.h.

◆ CCRCDCDestinationEnum

◆ CCRCDCWpsStatusEnum

◆ CCRCDCDrcStateEnum

◆ CCRCDCWakeStateEnum

◆ CCRCDCBoardVersion

◆ CCRCDCChipVersion

◆ CCRCDCUicConfigIdEnum

◆ CCRCDCExt

typedef enum CCRCDCExt CCRCDCExt

◆ CCRCDCDrhStateEnum

Enumeration Type Documentation

◆ CCRCDCDestinationEnum

Enumerator
CCR_CDC_DESTINATION_DRH 
CCR_CDC_DESTINATION_DRC0 
CCR_CDC_DESTINATION_DRC1 

Definition at line 45 of file cdc.h.

◆ CCRCDCWpsStatusEnum

Enumerator
CCR_CDC_WPS_STATUS_PAIRED 
CCR_CDC_WPS_STATUS_SEARCHING 
CCR_CDC_WPS_STATUS_PAIRING 

Definition at line 52 of file cdc.h.

◆ CCRCDCDrcStateEnum

Enumerator
CCR_CDC_DRC_STATE_ACTIVE 
CCR_CDC_DRC_STATE_PAIRING 
CCR_CDC_DRC_STATE_FWUPDATE 
CCR_CDC_DRC_STATE_STANDALONE 
CCR_CDC_DRC_STATE_BACKGROUND 
CCR_CDC_DRC_STATE_SLEEP 
CCR_CDC_DRC_STATE_STANDBY 
CCR_CDC_DRC_STATE_WOWLSETTING 
CCR_CDC_DRC_STATE_DKSETTING 
CCR_CDC_DRC_STATE_UNKNOWN9 
CCR_CDC_DRC_STATE_WIIACTIVE 
CCR_CDC_DRC_STATE_LOW_BATTERY 
CCR_CDC_DRC_STATE_SUBACTIVE 

Definition at line 59 of file cdc.h.

◆ CCRCDCWakeStateEnum

Enumerator
CCR_CDC_WAKE_STATE_ACTIVE 

Power on normally.

CCR_CDC_WAKE_STATE_BACKGROUND 

Connect in CCR_CDC_DRC_STATE_BACKGROUND state.

Definition at line 76 of file cdc.h.

◆ CCRCDCBoardVersion

Enumerator
CCR_CDC_BOARD_VERSION_DK1 
CCR_CDC_BOARD_VERSION_DK1_EP_DK2 
CCR_CDC_BOARD_VERSION_DP1 
CCR_CDC_BOARD_VERSION_DP2 
CCR_CDC_BOARD_VERSION_DK3 
CCR_CDC_BOARD_VERSION_DK4 
CCR_CDC_BOARD_VERSION_PREDP3_DP3 
CCR_CDC_BOARD_VERSION_DK5 
CCR_CDC_BOARD_VERSION_DP4 
CCR_CDC_BOARD_VERSION_DKMP 
CCR_CDC_BOARD_VERSION_DP5 
CCR_CDC_BOARD_VERSION_MASS 
CCR_CDC_BOARD_VERSION_DKMP2 
CCR_CDC_BOARD_VERSION_DRC_I 
CCR_CDC_BOARD_VERSION_DKTVMP 

Definition at line 84 of file cdc.h.

◆ CCRCDCChipVersion

Enumerator
CCR_CDC_CHIP_VERSION_TS 
CCR_CDC_CHIP_VERSION_ES1 
CCR_CDC_CHIP_VERSION_ES2 
CCR_CDC_CHIP_VERSION_ES3 
CCR_CDC_CHIP_VERSION_MS01 

Definition at line 103 of file cdc.h.

◆ CCRCDCUicConfigIdEnum

Enumerator
CCR_CDC_UIC_CONFIG_ID_LANGUAGE_BANK 

EEPROM offset 0x200, Size 0x3.

CCR_CDC_UIC_CONFIG_ID_MIC_CONFIG 

EEPROM offset 0x20D, Size 0x6.

CCR_CDC_UIC_CONFIG_ID_ACC_CALIBRATION_VALUE 

EEPROM offset 0x213, Size 0xE.

CCR_CDC_UIC_CONFIG_ID_TP_CALIBRATION_VALUE 

EEPROM offset 0x244, Size 0x12.

CCR_CDC_UIC_CONFIG_ID_UNK7 

EEPROM offset 0x203, Size 0x3.

CCR_CDC_UIC_CONFIG_ID_UNK8 

EEPROM offset 0x206, Size 0x3.

CCR_CDC_UIC_CONFIG_ID_LANGUAGE_EXT_ID 

EEPROM offset 0x256, Size 0x6.

CCR_CDC_UIC_CONFIG_ID_TV_CONTROL_ID 

EEPROM offset 0x289, Size 0xC.

CCR_CDC_UIC_CONFIG_ID_EXT_ID_2 

EEPROM offset 0x262, Size 0x6.

CCR_CDC_UIC_CONFIG_ID_EXT_ID_3 

EEPROM offset 0x268, Size 0x6.

CCR_CDC_UIC_CONFIG_ID_EXT_ID_4 

EEPROM offset 0x26E, Size 0x6.

CCR_CDC_UIC_CONFIG_ID_INIT_BOOT_FLAG 

EEPROM offset 0x274, Size 0x3.

CCR_CDC_UIC_CONFIG_ID_UNK15 

EEPROM offset 0x277, Size 0xF.

CCR_CDC_UIC_CONFIG_ID_LCD_MODE 

EEPROM offset 0x286, Size 0x3.

CCR_CDC_UIC_CONFIG_ID_RC_DATABASE_EXT_ID 

EEPROM offset 0x25C, Size 0x6.

CCR_CDC_UIC_CONFIG_ID_UNK18 

EEPROM offset 0x295, Size 0x3.

CCR_CDC_UIC_CONFIG_ID_CAFFEINE_ENABLE_FLAG 

EEPROM offset 0x298, Size 0x3.

CCR_CDC_UIC_CONFIG_ID_CAFFEINE_INITIAL_BOOT_FLAG 

EEPROM offset 0x29B, Size 0x3.

CCR_CDC_UIC_CONFIG_ID_CAFFEINE_CAFFEINE_SLOT 

EEPROM offset 0x29E, Size 0x3.

CCR_CDC_UIC_CONFIG_ID_CAFFEINE_NOTIFICATION_SOUND_MODE 

EEPROM offset 0x2A1, Size 0x3.

CCR_CDC_UIC_CONFIG_ID_CAFFEINE_NOTIFICATION_INFO 

EEPROM offset 0x2A4, Size 0x3.

CCR_CDC_UIC_CONFIG_ID_CAFFEINE_NOTIFICATION_READ_COUNT 

EEPROM offset 0x2A7, Size 0x4.

Definition at line 112 of file cdc.h.

◆ CCRCDCExt

enum CCRCDCExt
Enumerator
CCR_CDC_EXT_LANGUAGE 

Language data.

CCR_CDC_EXT_RC_DATABASE 

Remote Control Database.

CCR_CDC_EXT_UNK2 
CCR_CDC_EXT_UNK3 
CCR_CDC_EXT_UNK4 

Definition at line 160 of file cdc.h.

◆ CCRCDCDrhStateEnum

Enumerator
CCR_CDC_SYS_DRH_STATE_NORADIO 
CCR_CDC_SYS_DRH_STATE_WII 
CCR_CDC_SYS_DRH_STATE_UNK2 
CCR_CDC_SYS_DRH_STATE_NODRC 
CCR_CDC_SYS_DRH_STATE_ECO 
CCR_CDC_SYS_DRH_STATE_UNK7F 
CCR_CDC_SYS_DRH_STATE_CAFE 

Definition at line 171 of file cdc.h.

Function Documentation

◆ CCRCDCCommand()

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.

Parameters
destThe device to send the command to. See CCRCDCDestinationEnum.
Returns
0 on success.

◆ CCRCDCDevicePing()

int32_t CCRCDCDevicePing ( CCRCDCDestination  dest)

Send a ping to the specified destination.

Parameters
destThe device to ping. See CCRCDCDestinationEnum.
Returns
0 on success.

◆ CCRCDCSetStationId()

int32_t CCRCDCSetStationId ( CCRCDCMacAddress id)

◆ CCRCDCGetMacAddress()

int32_t CCRCDCGetMacAddress ( CCRCDCDestination  dest,
CCRCDCMacAddress mac 
)

Gets the mac address of the specified destination.

Parameters
destThe device to get the mac address from. See CCRCDCDestinationEnum.
macA pointer to write the mac address to.
Returns
0 on success.

◆ CCRCDCGetMultiDrc()

int32_t CCRCDCGetMultiDrc ( uint8_t *  numDrcs)

Gets the amount of DRCs which can be connected to the system.

Parameters
numDrcsA pointer to write the amount to.
Returns
0 on success.

◆ CCRCDCSetMultiDrc()

int32_t CCRCDCSetMultiDrc ( uint8_t  numDrcs)

Sets the amount of DRCs which can be connected to the system.

Parameters
numDrcsThe amount of DRCs (must be 1 or 2).
Returns
0 on success.

◆ CCRCDCSysGetDrcState()

int32_t CCRCDCSysGetDrcState ( CCRCDCDestination  dest,
CCRCDCDrcState state 
)

Gets the state of the specified DRC.

Parameters
destThe device to get the state from. See CCRCDCDestinationEnum.
stateA pointer to write the state to.
Returns
0 on success.

◆ CCRCDCSysSetDrcState()

int32_t CCRCDCSysSetDrcState ( CCRCDCDestination  dest,
CCRCDCDrcState state 
)

Sets the state of the specified DRC.

Parameters
destThe device to set the state. See CCRCDCDestinationEnum.
stateA pointer to read the state from.
Returns
0 on success.

◆ CCRCDCSysGetDrhState()

int32_t CCRCDCSysGetDrhState ( CCRCDCDrhState state)

Gets the Drh State.

Returns
0 on success.

◆ CCRCDCSysSetDrhState()

int32_t CCRCDCSysSetDrhState ( CCRCDCDrhState state)

Sets the Drh State.

Returns
0 on success.

◆ CCRCDCWpsStart()

int32_t CCRCDCWpsStart ( void  )

Start WPS (WiFi Protected Setup) on the DRH.

Returns
0 on success.

◆ CCRCDCWpsStartEx()

int32_t CCRCDCWpsStartEx ( CCRCDCWpsArgs args)

Start WPS (WiFi Protected Setup) on the DRH.

Parameters
argsAdditional arguments.
Returns
0 on success.

◆ CCRCDCWpsStatus()

int32_t CCRCDCWpsStatus ( CCRCDCWpsStatusType status)

Get the WPS status.

Parameters
statusA pointer to write the status to. See CCRCDCWpsStatusEnum.
Returns
0 on success.

◆ CCRCDCWpsStop()

int32_t CCRCDCWpsStop ( void  )

Stop WPS.

Returns
0 on success.

◆ CCRCDCSysGetInfo()

int32_t CCRCDCSysGetInfo ( CCRCDCDestination  dest,
CCRCDCSysInfo info 
)

Get system information.

Parameters
destThe device to get the information from. See CCRCDCDestinationEnum.
infoPointer to store the info struct to.
Returns
0 on success.

◆ CCRCDCSysDrcDisplayMessage()

int32_t CCRCDCSysDrcDisplayMessage ( CCRCDCDestination  dest,
CCRCDCSysMessage message 
)

Display a message on the specified DRC.

Parameters
destThe device to display the message on. See CCRCDCDestinationEnum.
messageThe message struct.
Returns
0 on success.

◆ CCRCDCPerGetUicEeprom()

int32_t CCRCDCPerGetUicEeprom ( CCRCDCDestination  dest,
CCRCDCEepromData eeprom 
)

Read the Eeprom of the specified device.

Parameters
destThe device to read the eeprom of. See CCRCDCDestinationEnum.
eepromPointer to write the the eeprom data to.
Returns
0 on success.

◆ CCRCDCPerGetUicEepromEx()

int32_t CCRCDCPerGetUicEepromEx ( CCRCDCDestination  dest,
CCRCDCEepromData eeprom,
IOSAsyncCallbackFn  callback,
void *  arg 
)

Read the Eeprom of the specified device (async version).

Parameters
destThe device to read the eeprom of. See CCRCDCDestinationEnum.
eepromPointer to write the the eeprom data to.
Returns
0 on success.

◆ CCRCDCSysConsoleShutdownInd()

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.

Parameters
destThe device to notify. See CCRCDCDestinationEnum.
Returns
0 on success.

◆ CCRCDCWowlWakeDrc()

int32_t CCRCDCWowlWakeDrc ( CCRCDCWowlWakeDrcArg arg)

Wake on Wireless LAN (power on) the DRC(s).

Returns
0 on success or timeout (i.e. out of range/no battery). 0xFFE31B5B if DRC already connected.

◆ CCRCDCPerClearUicConfig()

int32_t CCRCDCPerClearUicConfig ( CCRCDCDestination  dest)

This doesn't seem to be implemented on the latest DRC/DRH firmware, and always returns an error.

Parameters
destThe destination to send the command to.
Returns
0 on success.

◆ CCRCDCPerSetUicConfig()

int32_t CCRCDCPerSetUicConfig ( CCRCDCDestination  dest,
CCRCDCUicConfig config 
)

Set a configuration value in the DRC UIC EEPROM.

Parameters
destThe destination to send the command to.
configPointer to configuration data.
Returns
0 on success.

◆ CCRCDCCalcCRC16()

uint16_t CCRCDCCalcCRC16 ( void *  data,
uint32_t  dataSize 
)

Calculate a CRC16 used for DRC UIC EEPROM values.

Parameters
dataPointer to the data to calculate the CRC from.
configSize of the data.
Returns
The CRC value or 0xffff on error.

◆ CCRCDCGetFWInfo()

int32_t CCRCDCGetFWInfo ( CCRCDCDestination  dest,
CCRCDCFWInfo outInfo 
)

Get the firmware info during a pending update.

Parameters
destThe destination to get the firmware info from.
outInfoPointer to write the info to.
Returns
0 on success.

◆ CCRCDCSoftwareGetVersion()

int32_t CCRCDCSoftwareGetVersion ( CCRCDCDestination  dest,
CCRCDCSoftwareVersion outVersion 
)

Get software version information.

Parameters
destThe destination to get the version information from.
outVersionPointer to write the version info to.
Returns
0 on success.

◆ CCRCDCSoftwareUpdate()

int32_t CCRCDCSoftwareUpdate ( CCRCDCDestination  dest,
const char *  path,
IOSAsyncCallbackFn  callback,
void *  userContext 
)

Perform a software update.

Parameters
destThe destination to start a software update.
pathAbsolute path to read the update file from. Note that this path needs to be accessible from IOS-PAD (e.g. on the MLC).
callbackCallback to call once the update completes or NULL for synchronous updating.
userContextUser provided value which is passed to the callback.
Returns
0 on success.

◆ CCRCDCSoftwareAbort()

int32_t CCRCDCSoftwareAbort ( CCRCDCDestination  dest)

Abort a software update.

Parameters
destThe destination to send the command to.
Returns
0 on success.

◆ CCRCDCSoftwareActivate()

int32_t CCRCDCSoftwareActivate ( CCRCDCDestination  dest)

Activate a performed software update.

Parameters
destThe destination to send the command to.
Returns
0 on success.

◆ CCRCDCSoftwareLangUpdate()

int32_t CCRCDCSoftwareLangUpdate ( CCRCDCDestination  dest,
const char *  path,
uint32_t *  outVersion,
IOSAsyncCallbackFn  callback,
void *  userContext 
)

Perform a language update.

Parameters
destThe destination to start a language update.
pathAbsolute path to read the language file from. Note that this path needs to be accessible from IOS-PAD (e.g. on the MLC).
outVersionPointer to store the language version to.
callbackCallback to call once the update completes or NULL for synchronous updating.
userContextUser provided value which is passed to the callback.
Returns
0 on success.

◆ CCRCDCSoftwareLangActivate()

int32_t CCRCDCSoftwareLangActivate ( CCRCDCDestination  dest,
uint32_t  version,
uint32_t *  outActivationResult 
)

Activate a performed language update.

Parameters
destThe destination to send the command to.
versionThe version which should be updated. This should be the version returned by CCRCDCSoftwareLangUpdate.
outActivationResultPointer to store the activation result to. 0 on success, 2 if writing to the EEPROM failed.
Returns
0 on success.

◆ CCRCDCSoftwareGetExtId()

int32_t CCRCDCSoftwareGetExtId ( CCRCDCDestination  dest,
CCRCDCExt  ext,
uint32_t *  outId 
)

Get an ext id from the specified destination.

Parameters
destThe destination to get the ID from.
extThe ext to get the ID for.
outIdPointer to write the ID to.
Returns
0 on success.

◆ CCRCDCSoftwareExtUpdate()

int32_t CCRCDCSoftwareExtUpdate ( CCRCDCDestination  dest,
const char *  path,
uint32_t  imageSize,
uint32_t  extId,
CCRCDCExt  ext,
IOSAsyncCallbackFn  callback,
void *  userContext 
)

Perform an ext update.

Parameters
destThe destination to start a software update.
pathAbsolute path to read the update file from. Note that this path needs to be accessible from IOS-PAD (e.g. on the MLC).
imageSizeThe size of the image which should be flashed. IOSU will correct this value with a warning, if it isn't correct.
extIdThe extId which should be written to the EEPROM once the update is complete.
extThe ext data which should be updated.
callbackCallback to call once the update completes or NULL for synchronous updating.
userContextUser provided value which is passed to the callback.
Returns
0 on success.

◆ CCRCDCRegisterAOAttachCallback()

int32_t CCRCDCRegisterAOAttachCallback ( CCRCDCRegisterCallbackFn  callback,
void *  context 
)

◆ CCRCDCRegisterCFGAttachCallback()

int32_t CCRCDCRegisterCFGAttachCallback ( CCRCDCRegisterCallbackFn  callback,
void *  context 
)

◆ CCRCDCRegisterHIDAttachCallback()

int32_t CCRCDCRegisterHIDAttachCallback ( CCRCDCRegisterCallbackFn  callback,
void *  context 
)

◆ CCRCDCRegisterSYSAttachCallback()

int32_t CCRCDCRegisterSYSAttachCallback ( CCRCDCRegisterCallbackFn  callback,
void *  context 
)

◆ CCRCDCRegisterUACAttachCallback()

int32_t CCRCDCRegisterUACAttachCallback ( CCRCDCRegisterCallbackFn  callback,
void *  context 
)

◆ CCRCDCRegisterUVCAttachCallback()

int32_t CCRCDCRegisterUVCAttachCallback ( CCRCDCRegisterCallbackFn  callback,
void *  context 
)

◆ CCRCDCRegisterVOAttachCallback()

int32_t CCRCDCRegisterVOAttachCallback ( CCRCDCRegisterCallbackFn  callback,
void *  context 
)