wut  v1.7.0
Wii U Toolchain
Functions
AVM HDMI CEC
Collaboration diagram for AVM HDMI CEC:

Functions

BOOL AVMCECInit (void)
 Initializes CEC. More...
 
void AVMEnableCEC (void)
 Enable CEC. More...
 
void AVMDisableCEC (void)
 Disable CEC. More...
 
BOOL AVMCECSendCommand (TVECECLogicalAddress destination, TVECECOpCode opCode, uint8_t *parameters, uint8_t numParameters)
 Sends a CEC command. More...
 
BOOL AVMCECReceiveCommand (TVECECLogicalAddress *outInitiator, TVECECOpCode *outOpCode, uint8_t *outParameters, uint8_t *outNumParameters)
 Get the last receieved CEC command. More...
 

Detailed Description

Function Documentation

◆ AVMCECInit()

BOOL AVMCECInit ( void  )

Initializes CEC.

Returns
TRUE on success.

◆ AVMEnableCEC()

void AVMEnableCEC ( void  )

Enable CEC.

◆ AVMDisableCEC()

void AVMDisableCEC ( void  )

Disable CEC.

◆ AVMCECSendCommand()

BOOL AVMCECSendCommand ( TVECECLogicalAddress  destination,
TVECECOpCode  opCode,
uint8_t *  parameters,
uint8_t  numParameters 
)

Sends a CEC command.

Parameters
destinationLogical address of the device where the command should be sent to.
opCodeThe op code of the command to send.
parametersPointer to optional command parameters.
numParametersThe amount of additional parameters.
Returns
TRUE on success.

◆ AVMCECReceiveCommand()

BOOL AVMCECReceiveCommand ( TVECECLogicalAddress outInitiator,
TVECECOpCode outOpCode,
uint8_t *  outParameters,
uint8_t *  outNumParameters 
)

Get the last receieved CEC command.

Parameters
outInitiatorPointer to store the logical address of the initiator of the command to.
outOpCodePointer to store the op code of the command to.
outParametersPointer to store additional parameters to.
numParametersPointer to store the amount of additional parameters to.
Returns
TRUE on success.
Warning
This will return success even if no new command has been receieved. The caller should check that the parameters were actually written to.