wut  v1.7.0
Wii U Toolchain
cec.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
15 {
34 
35 typedef enum TVECECOpCode
36 {
100 
107 BOOL
109 
119 BOOL
121 
128 BOOL
130 
149 BOOL
151  TVECECOpCode opCode,
152  uint8_t *parameters,
153  uint8_t numParameters);
154 
177 BOOL
179  TVECECOpCode *outOpCode,
180  uint8_t *outParameters,
181  uint8_t *outNumParameters);
182 
183 #ifdef __cplusplus
184 }
185 #endif
186 
BOOL TVESetCECEnable(BOOL enable)
Sets the CEC enabled status.
TVECECLogicalAddress
Definition: cec.h:15
BOOL TVECECInit(void)
Initializes CEC.
BOOL TVECECSendCommand(TVECECLogicalAddress destination, TVECECOpCode opCode, uint8_t *parameters, uint8_t numParameters)
Sends a CEC command.
BOOL TVEIsCECEnable(void)
Checks if CEC is enabled.
BOOL TVECECReceiveCommand(TVECECLogicalAddress *outInitiator, TVECECOpCode *outOpCode, uint8_t *outParameters, uint8_t *outNumParameters)
Get the last receieved CEC command.
TVECECOpCode
Definition: cec.h:36
@ TVE_CEC_DEVICE_TUNER_4
Definition: cec.h:26
@ TVE_CEC_DEVICE_TV
Definition: cec.h:16
@ TVE_CEC_DEVICE_AUDIO_SYSTEM
Definition: cec.h:21
@ TVE_CEC_DEVICE_TUNER_3
Definition: cec.h:23
@ TVE_CEC_DEVICE_RESERVED_1
Definition: cec.h:28
@ TVE_CEC_DEVICE_PLAYBACK_DEVICE_3
Definition: cec.h:27
@ TVE_CEC_DEVICE_TUNER_2
Definition: cec.h:22
@ TVE_CEC_DEVICE_UNREGISTERED
Definition: cec.h:31
@ TVE_CEC_DEVICE_PLAYBACK_DEVICE_1
Definition: cec.h:20
@ TVE_CEC_DEVICE_RESERVED_2
Definition: cec.h:29
@ TVE_CEC_DEVICE_RECORDING_DEVICE_1
Definition: cec.h:17
@ TVE_CEC_DEVICE_RECORDING_DEVICE_3
Definition: cec.h:25
@ TVE_CEC_DEVICE_PLAYBACK_DEVICE_2
Definition: cec.h:24
@ TVE_CEC_DEVICE_TUNER_1
Definition: cec.h:19
@ TVE_CEC_DEVICE_FREE_USE
Definition: cec.h:30
@ TVE_CEC_DEVICE_BROADCAST
Definition: cec.h:32
@ TVE_CEC_DEVICE_RECORDING_DEVICE_2
Definition: cec.h:18
@ TVE_CEC_OPCODE_CLEAR_DIGITAL_TIMER
Definition: cec.h:90
@ TVE_CEC_OPCODE_SET_ANALOGUE_TIMER
Definition: cec.h:52
@ TVE_CEC_OPCODE_SET_MENU_LANGUAGE
Definition: cec.h:50
@ TVE_CEC_OPCODE_VENDOR_COMMAND
Definition: cec.h:78
@ TVE_CEC_OPCODE_INACTIVE_SOURCE
Definition: cec.h:92
@ TVE_CEC_OPCODE_TIMER_STATUS
Definition: cec.h:53
@ TVE_CEC_OPCODE_VENDOR_REMOTE_BUTTON_DOWN
Definition: cec.h:79
@ TVE_CEC_OPCODE_SET_STREAM_PATH
Definition: cec.h:76
@ TVE_CEC_OPCODE_SELECT_ANALOGUE_SERVICE
Definition: cec.h:87
@ TVE_CEC_OPCODE_SET_OSD_STRING
Definition: cec.h:62
@ TVE_CEC_OPCODE_CLEAR_EXTERNAL_TIMER
Definition: cec.h:96
@ TVE_CEC_OPCODE_RECORD_OFF
Definition: cec.h:45
@ TVE_CEC_OPCODE_VENDOR_REMOTE_BUTTON_UP
Definition: cec.h:80
@ TVE_CEC_OPCODE_SYSTEM_AUDIO_MODE_REQUEST
Definition: cec.h:64
@ TVE_CEC_OPCODE_USER_CONTROL_PRESSED
Definition: cec.h:58
@ TVE_CEC_OPCODE_GIVE_OSD_NAME
Definition: cec.h:60
@ TVE_CEC_OPCODE_REPORT_PHYSICAL_ADDRESS
Definition: cec.h:74
@ TVE_CEC_OPCODE_DECK_STATUS
Definition: cec.h:49
@ TVE_CEC_OPCODE_CEC_VERSION
Definition: cec.h:93
@ TVE_CEC_OPCODE_SET_TIMER_PROGRAM_TITLE
Definition: cec.h:63
@ TVE_CEC_OPCODE_ROUTING_INFORMATION
Definition: cec.h:71
@ TVE_CEC_OPCODE_TUNER_DEVICE_STATUS
Definition: cec.h:41
@ TVE_CEC_OPCODE_SELECT_DIGITAL_SERVICE
Definition: cec.h:88
@ TVE_CEC_OPCODE_VENDOR_COMMAND_WITH_ID
Definition: cec.h:95
@ TVE_CEC_OPCODE_DEVICE_VENDOR_ID
Definition: cec.h:77
@ TVE_CEC_OPCODE_GIVE_SYSTEM_AUDIO_MODE_STATUS
Definition: cec.h:68
@ TVE_CEC_OPCODE_CLEAR_ANALOGUE_TIMER
Definition: cec.h:51
@ TVE_CEC_OPCODE_REPORT_AUDIO_STATUS
Definition: cec.h:67
@ TVE_CEC_OPCODE_TIMER_CLEARED_STATUS
Definition: cec.h:57
@ TVE_CEC_OPCODE_ROUTING_CHANGE
Definition: cec.h:70
@ TVE_CEC_OPCODE_GIVE_AUDIO_STATUS
Definition: cec.h:65
@ TVE_CEC_OPCODE_SET_DIGITAL_TIMER
Definition: cec.h:89
@ TVE_CEC_OPCODE_GET_MENU_LANGUAGE
Definition: cec.h:86
@ TVE_CEC_OPCODE_TUNER_STEP_INCREMENT
Definition: cec.h:39
@ TVE_CEC_OPCODE_GIVE_DEVICE_VENDOR_ID
Definition: cec.h:81
@ TVE_CEC_OPCODE_MENU_REQUEST
Definition: cec.h:82
@ TVE_CEC_OPCODE_USER_CONTROL_RELEASE
Definition: cec.h:59
@ TVE_CEC_OPCODE_GIVE_TUNER_DEVICE_STATUS
Definition: cec.h:42
@ TVE_CEC_OPCODE_IMAGE_VIEW_ON
Definition: cec.h:38
@ TVE_CEC_OPCODE_SET_EXTERNAL_TIMER
Definition: cec.h:97
@ TVE_CEC_OPCODE_ABORT
Definition: cec.h:98
@ TVE_CEC_OPCODE_DECK_CONTROL
Definition: cec.h:56
@ TVE_CEC_OPCODE_SET_SYSTEM_AUDIO_MODE
Definition: cec.h:66
@ TVE_CEC_OPCODE_STANDBY
Definition: cec.h:54
@ TVE_CEC_OPCODE_TEXT_VIEW_ON
Definition: cec.h:46
@ TVE_CEC_OPCODE_ACTIVE_SOURCE
Definition: cec.h:72
@ TVE_CEC_OPCODE_REPORT_POWER_STATUS
Definition: cec.h:85
@ TVE_CEC_OPCODE_SET_OSD_NAME
Definition: cec.h:61
@ TVE_CEC_OPCODE_RECORD_TV_SCREEN
Definition: cec.h:47
@ TVE_CEC_OPCODE_MENU_STATUS
Definition: cec.h:83
@ TVE_CEC_OPCODE_GIVE_DECK_STATUS
Definition: cec.h:48
@ TVE_CEC_OPCODE_PLAY
Definition: cec.h:55
@ TVE_CEC_OPCODE_TUNER_STEP_DECREMENT
Definition: cec.h:40
@ TVE_CEC_OPCODE_GIVE_DEVICE_POWER_STATUS
Definition: cec.h:84
@ TVE_CEC_OPCODE_FEATURE_ABORT
Definition: cec.h:37
@ TVE_CEC_OPCODE_SET_AUDIO_RATE
Definition: cec.h:91
@ TVE_CEC_OPCODE_RECORD_ON
Definition: cec.h:43
@ TVE_CEC_OPCODE_REQUEST_ACTIVE_SOURCE
Definition: cec.h:75
@ TVE_CEC_OPCODE_GIVE_PHYSICAL_ADDRESS
Definition: cec.h:73
@ TVE_CEC_OPCODE_RECORD_STATUS
Definition: cec.h:44
@ TVE_CEC_OPCODE_SYSTEM_AUDIO_MODE_STATUS
Definition: cec.h:69
@ TVE_CEC_OPCODE_GET_CEC_VERSION
Definition: cec.h:94
int32_t BOOL
Definition: wut_types.h:7