STM32100E_EVAL_CEC_Exported_Constants
[STM32100E_EVAL_CEC]

Defines

#define HDMI_CEC_AUDIOSYSTEM   0x05
#define HDMI_CEC_CANNOTPROVIDE_SOURCE   0x02
#define HDMI_CEC_HPD_GPIO_CLK   RCC_APB2Periph_GPIOB
#define HDMI_CEC_HPD_GPIO_PORT   GPIOB
#define HDMI_CEC_HPD_PIN   GPIO_Pin_9
 HDMI CEC HPD (Hot Plug Detect) Interface pin.
#define HDMI_CEC_I2C   I2C1
#define HDMI_CEC_I2C_CLK   RCC_APB1Periph_I2C1
#define HDMI_CEC_I2C_CLOCK_SPEED   100000
#define HDMI_CEC_I2C_GPIO_CLK   RCC_APB2Periph_GPIOB
#define HDMI_CEC_I2C_GPIO_PORT   GPIOB
#define HDMI_CEC_I2C_SCL_PIN   GPIO_Pin_6
 HDMI CEC I2C Interface pins.
#define HDMI_CEC_I2C_SDA_PIN   GPIO_Pin_7
#define HDMI_CEC_I2C_SLAVE_ADDRESS7   0xA0
#define HDMI_CEC_INVALID_OPERAND   0x03
#define HDMI_CEC_LINE_GPIO_CLK   RCC_APB2Periph_GPIOB
#define HDMI_CEC_LINE_GPIO_PORT   GPIOB
#define HDMI_CEC_LINE_PIN   GPIO_Pin_8
 HDMI CEC Interface pin.
#define HDMI_CEC_NOT_CORRECT_MODETORESPOND   0x01
#define HDMI_CEC_OPCODE_ABORT   ((uint8_t) 0xFF)
#define HDMI_CEC_OPCODE_ACTIVE_SOURCE   ((uint8_t) 0x82)
 HDMI CEC specific commands.
#define HDMI_CEC_OPCODE_CEC_VERSION   ((uint8_t) 0x9E)
#define HDMI_CEC_OPCODE_CLEAR_ANALOGUE_TIMER   ((uint8_t) 0x33)
#define HDMI_CEC_OPCODE_CLEAR_DIGITAL_TIMER   ((uint8_t) 0x99)
#define HDMI_CEC_OPCODE_CLEAR_EXTERNAL_TIMER   ((uint8_t) 0xA1)
#define HDMI_CEC_OPCODE_DECK_CONTROL   ((uint8_t) 0x42)
#define HDMI_CEC_OPCODE_DECK_STATUS   ((uint8_t) 0x1B)
#define HDMI_CEC_OPCODE_DEVICE_VENDOR_ID   ((uint8_t) 0x87)
#define HDMI_CEC_OPCODE_FEATURE_ABORT   ((uint8_t) 0x00)
#define HDMI_CEC_OPCODE_GET_CEC_VERSION   ((uint8_t) 0x9F)
#define HDMI_CEC_OPCODE_GET_MENU_LANGUAGE   ((uint8_t) 0x91)
#define HDMI_CEC_OPCODE_GIVE_AUDIO_STATUS   ((uint8_t) 0x71)
#define HDMI_CEC_OPCODE_GIVE_DECK_STATUS   ((uint8_t) 0x1A)
#define HDMI_CEC_OPCODE_GIVE_DEVICE_POWER_STATUS   ((uint8_t) 0x8F)
#define HDMI_CEC_OPCODE_GIVE_DEVICE_VENDOR_ID   ((uint8_t) 0x8C)
#define HDMI_CEC_OPCODE_GIVE_OSD_NAME   ((uint8_t) 0x46)
#define HDMI_CEC_OPCODE_GIVE_PHYSICAL_ADDRESS   ((uint8_t) 0x83)
#define HDMI_CEC_OPCODE_GIVE_SYSTEM_AUDIO_MODE_STATUS   ((uint8_t) 0x7D)
#define HDMI_CEC_OPCODE_GIVE_TUNER_DEVICE_STATUS   ((uint8_t) 0x08)
#define HDMI_CEC_OPCODE_IMAGE_VIEW_ON   ((uint8_t) 0x04)
#define HDMI_CEC_OPCODE_INACTIVE_SOURCE   ((uint8_t) 0x9D)
#define HDMI_CEC_OPCODE_MENU_REQUEST   ((uint8_t) 0x8D)
#define HDMI_CEC_OPCODE_MENU_STATUS   ((uint8_t) 0x8E)
#define HDMI_CEC_OPCODE_PLAY   ((uint8_t) 0x41)
#define HDMI_CEC_OPCODE_RECORD_OFF   ((uint8_t) 0x0B)
#define HDMI_CEC_OPCODE_RECORD_ON   ((uint8_t) 0x09)
#define HDMI_CEC_OPCODE_RECORD_STATUS   ((uint8_t) 0x0A)
#define HDMI_CEC_OPCODE_RECORD_TV_SCREEN   ((uint8_t) 0x0F)
#define HDMI_CEC_OPCODE_REPORT_AUDIO_STATUS   ((uint8_t) 0x7A)
#define HDMI_CEC_OPCODE_REPORT_PHYSICAL_ADDRESS   ((uint8_t) 0x84)
#define HDMI_CEC_OPCODE_REPORT_POWER_STATUS   ((uint8_t) 0x90)
#define HDMI_CEC_OPCODE_REQUEST_ACTIVE_SOURCE   ((uint8_t) 0x85)
#define HDMI_CEC_OPCODE_ROUTING_CHANGE   ((uint8_t) 0x80)
#define HDMI_CEC_OPCODE_ROUTING_INFORMATION   ((uint8_t) 0x81)
#define HDMI_CEC_OPCODE_SELECT_ANALOGUE_SERVICE   ((uint8_t) 0x92)
#define HDMI_CEC_OPCODE_SELECT_DIGITAL_SERVICE   ((uint8_t) 0x93)
#define HDMI_CEC_OPCODE_SET_ANALOGUE_TIMER   ((uint8_t) 0x34)
#define HDMI_CEC_OPCODE_SET_AUDIO_RATE   ((uint8_t) 0x9A)
#define HDMI_CEC_OPCODE_SET_DIGITAL_TIMER   ((uint8_t) 0x97)
#define HDMI_CEC_OPCODE_SET_EXTERNAL_TIMER   ((uint8_t) 0xA2)
#define HDMI_CEC_OPCODE_SET_MENU_LANGUAGE   ((uint8_t) 0x32)
#define HDMI_CEC_OPCODE_SET_OSD_NAME   ((uint8_t) 0x47)
#define HDMI_CEC_OPCODE_SET_OSD_STRING   ((uint8_t) 0x64)
#define HDMI_CEC_OPCODE_SET_STREAM_PATH   ((uint8_t) 0x86)
#define HDMI_CEC_OPCODE_SET_SYSTEM_AUDIO_MODE   ((uint8_t) 0x72)
#define HDMI_CEC_OPCODE_SET_TIMER_PROGRAM_TITLE   ((uint8_t) 0x67)
#define HDMI_CEC_OPCODE_STANDBY   ((uint8_t) 0x36)
#define HDMI_CEC_OPCODE_SYSTEM_AUDIO_MODE_REQUEST   ((uint8_t) 0x70)
#define HDMI_CEC_OPCODE_SYSTEM_AUDIO_MODE_STATUS   ((uint8_t) 0x7E)
#define HDMI_CEC_OPCODE_TEXT_VIEW_ON   ((uint8_t) 0x0D)
#define HDMI_CEC_OPCODE_TIMER_CLEARED_STATUS   ((uint8_t) 0x43)
#define HDMI_CEC_OPCODE_TIMER_STATUS   ((uint8_t) 0x35)
#define HDMI_CEC_OPCODE_TUNER_DEVICE_STATUS   ((uint8_t) 0x07)
#define HDMI_CEC_OPCODE_TUNER_STEP_DECREMENT   ((uint8_t) 0x06)
#define HDMI_CEC_OPCODE_TUNER_STEP_INCREMENT   ((uint8_t) 0x05)
#define HDMI_CEC_OPCODE_USER_CONTROL_PRESSED   ((uint8_t) 0x44)
#define HDMI_CEC_OPCODE_USER_CONTROL_RELEASED   ((uint8_t) 0x45)
#define HDMI_CEC_OPCODE_VENDOR_COMMAND   ((uint8_t) 0x89)
#define HDMI_CEC_OPCODE_VENDOR_COMMAND_WITH_ID   ((uint8_t) 0xA0)
#define HDMI_CEC_OPCODE_VENDOR_REMOTE_BUTTON_DOWN   ((uint8_t) 0x8A)
#define HDMI_CEC_OPCODE_VENDOR_REMOTE_BUTTON_UP   ((uint8_t) 0x8B)
#define HDMI_CEC_PLAYBACK   0x04
#define HDMI_CEC_RECORDING   0x01
#define HDMI_CEC_REFUSED   0x04
#define HDMI_CEC_ROOT   0x00
 HDMI CEC Root (Mainly for TV with a fixed physical address (0.0.0.0)) If you want to configure the STM32100E-EVAL board as CEC Root (Sink) change the following define to 0x1.
#define HDMI_CEC_TUNER   0x03
#define HDMI_CEC_TV   0x00
 CEC device types.
#define HDMI_CEC_UNRECOGNIZED_OPCODE   0x00
 Reason for Abort feature.
#define HDMI_CEC_VERSION   0x04
 To select if the DDC Channel will be used for physical address discovery or not.

Define Documentation

#define HDMI_CEC_AUDIOSYSTEM   0x05

Definition at line 108 of file stm32100e_eval_cec.h.

#define HDMI_CEC_CANNOTPROVIDE_SOURCE   0x02

Definition at line 164 of file stm32100e_eval_cec.h.

#define HDMI_CEC_HPD_GPIO_CLK   RCC_APB2Periph_GPIOB

Definition at line 126 of file stm32100e_eval_cec.h.

#define HDMI_CEC_HPD_GPIO_PORT   GPIOB

Definition at line 125 of file stm32100e_eval_cec.h.

#define HDMI_CEC_HPD_PIN   GPIO_Pin_9

HDMI CEC HPD (Hot Plug Detect) Interface pin.

Definition at line 124 of file stm32100e_eval_cec.h.

#define HDMI_CEC_I2C   I2C1

Definition at line 118 of file stm32100e_eval_cec.h.

#define HDMI_CEC_I2C_CLK   RCC_APB1Periph_I2C1

Definition at line 119 of file stm32100e_eval_cec.h.

#define HDMI_CEC_I2C_CLOCK_SPEED   100000

Definition at line 136 of file stm32100e_eval_cec.h.

#define HDMI_CEC_I2C_GPIO_CLK   RCC_APB2Periph_GPIOB

Definition at line 117 of file stm32100e_eval_cec.h.

#define HDMI_CEC_I2C_GPIO_PORT   GPIOB

Definition at line 116 of file stm32100e_eval_cec.h.

#define HDMI_CEC_I2C_SCL_PIN   GPIO_Pin_6

HDMI CEC I2C Interface pins.

Definition at line 114 of file stm32100e_eval_cec.h.

#define HDMI_CEC_I2C_SDA_PIN   GPIO_Pin_7

Definition at line 115 of file stm32100e_eval_cec.h.

#define HDMI_CEC_I2C_SLAVE_ADDRESS7   0xA0

Definition at line 135 of file stm32100e_eval_cec.h.

#define HDMI_CEC_INVALID_OPERAND   0x03

Definition at line 165 of file stm32100e_eval_cec.h.

#define HDMI_CEC_LINE_GPIO_CLK   RCC_APB2Periph_GPIOB

Definition at line 133 of file stm32100e_eval_cec.h.

#define HDMI_CEC_LINE_GPIO_PORT   GPIOB

Definition at line 132 of file stm32100e_eval_cec.h.

#define HDMI_CEC_LINE_PIN   GPIO_Pin_8

HDMI CEC Interface pin.

Definition at line 131 of file stm32100e_eval_cec.h.

#define HDMI_CEC_NOT_CORRECT_MODETORESPOND   0x01

Definition at line 163 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_ABORT   ((uint8_t) 0xFF)

Definition at line 225 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_ACTIVE_SOURCE   ((uint8_t) 0x82)

HDMI CEC specific commands.

Definition at line 171 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_CEC_VERSION   ((uint8_t) 0x9E)

Definition at line 193 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_CLEAR_ANALOGUE_TIMER   ((uint8_t) 0x33)

Definition at line 184 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_CLEAR_DIGITAL_TIMER   ((uint8_t) 0x99)

Definition at line 185 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_CLEAR_EXTERNAL_TIMER   ((uint8_t) 0xA1)

Definition at line 186 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_DECK_CONTROL   ((uint8_t) 0x42)

Definition at line 199 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_DECK_STATUS   ((uint8_t) 0x1B)

Definition at line 200 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_DEVICE_VENDOR_ID   ((uint8_t) 0x87)

Definition at line 209 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_FEATURE_ABORT   ((uint8_t) 0x00)

Definition at line 224 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_GET_CEC_VERSION   ((uint8_t) 0x9F)

Definition at line 194 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_GET_MENU_LANGUAGE   ((uint8_t) 0x91)

Definition at line 196 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_GIVE_AUDIO_STATUS   ((uint8_t) 0x71)

Definition at line 226 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_GIVE_DECK_STATUS   ((uint8_t) 0x1A)

Definition at line 201 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_GIVE_DEVICE_POWER_STATUS   ((uint8_t) 0x8F)

Definition at line 222 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_GIVE_DEVICE_VENDOR_ID   ((uint8_t) 0x8C)

Definition at line 210 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_GIVE_OSD_NAME   ((uint8_t) 0x46)

Definition at line 216 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_GIVE_PHYSICAL_ADDRESS   ((uint8_t) 0x83)

Definition at line 195 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_GIVE_SYSTEM_AUDIO_MODE_STATUS   ((uint8_t) 0x7D)

Definition at line 227 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_GIVE_TUNER_DEVICE_STATUS   ((uint8_t) 0x08)

Definition at line 203 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_IMAGE_VIEW_ON   ((uint8_t) 0x04)

Definition at line 172 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_INACTIVE_SOURCE   ((uint8_t) 0x9D)

Definition at line 174 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_MENU_REQUEST   ((uint8_t) 0x8D)

Definition at line 218 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_MENU_STATUS   ((uint8_t) 0x8E)

Definition at line 219 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_PLAY   ((uint8_t) 0x41)

Definition at line 202 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_RECORD_OFF   ((uint8_t) 0x0B)

Definition at line 180 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_RECORD_ON   ((uint8_t) 0x09)

Definition at line 181 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_RECORD_STATUS   ((uint8_t) 0x0A)

Definition at line 182 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_RECORD_TV_SCREEN   ((uint8_t) 0x0F)

Definition at line 183 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_REPORT_AUDIO_STATUS   ((uint8_t) 0x7A)

Definition at line 228 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_REPORT_PHYSICAL_ADDRESS   ((uint8_t) 0x84)

Definition at line 197 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_REPORT_POWER_STATUS   ((uint8_t) 0x90)

Definition at line 223 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_REQUEST_ACTIVE_SOURCE   ((uint8_t) 0x85)

Definition at line 175 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_ROUTING_CHANGE   ((uint8_t) 0x80)

Definition at line 176 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_ROUTING_INFORMATION   ((uint8_t) 0x81)

Definition at line 177 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_SELECT_ANALOGUE_SERVICE   ((uint8_t) 0x92)

Definition at line 204 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_SELECT_DIGITAL_SERVICE   ((uint8_t) 0x93)

Definition at line 205 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_SET_ANALOGUE_TIMER   ((uint8_t) 0x34)

Definition at line 187 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_SET_AUDIO_RATE   ((uint8_t) 0x9A)

Definition at line 232 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_SET_DIGITAL_TIMER   ((uint8_t) 0x97)

Definition at line 188 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_SET_EXTERNAL_TIMER   ((uint8_t) 0xA2)

Definition at line 189 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_SET_MENU_LANGUAGE   ((uint8_t) 0x32)

Definition at line 198 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_SET_OSD_NAME   ((uint8_t) 0x47)

Definition at line 217 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_SET_OSD_STRING   ((uint8_t) 0x64)

Definition at line 215 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_SET_STREAM_PATH   ((uint8_t) 0x86)

Definition at line 178 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_SET_SYSTEM_AUDIO_MODE   ((uint8_t) 0x72)

Definition at line 229 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_SET_TIMER_PROGRAM_TITLE   ((uint8_t) 0x67)

Definition at line 190 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_STANDBY   ((uint8_t) 0x36)

Definition at line 179 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_SYSTEM_AUDIO_MODE_REQUEST   ((uint8_t) 0x70)

Definition at line 230 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_SYSTEM_AUDIO_MODE_STATUS   ((uint8_t) 0x7E)

Definition at line 231 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_TEXT_VIEW_ON   ((uint8_t) 0x0D)

Definition at line 173 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_TIMER_CLEARED_STATUS   ((uint8_t) 0x43)

Definition at line 191 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_TIMER_STATUS   ((uint8_t) 0x35)

Definition at line 192 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_TUNER_DEVICE_STATUS   ((uint8_t) 0x07)

Definition at line 206 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_TUNER_STEP_DECREMENT   ((uint8_t) 0x06)

Definition at line 207 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_TUNER_STEP_INCREMENT   ((uint8_t) 0x05)

Definition at line 208 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_USER_CONTROL_PRESSED   ((uint8_t) 0x44)

Definition at line 220 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_USER_CONTROL_RELEASED   ((uint8_t) 0x45)

Definition at line 221 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_VENDOR_COMMAND   ((uint8_t) 0x89)

Definition at line 211 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_VENDOR_COMMAND_WITH_ID   ((uint8_t) 0xA0)

Definition at line 212 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_VENDOR_REMOTE_BUTTON_DOWN   ((uint8_t) 0x8A)

Definition at line 213 of file stm32100e_eval_cec.h.

#define HDMI_CEC_OPCODE_VENDOR_REMOTE_BUTTON_UP   ((uint8_t) 0x8B)

Definition at line 214 of file stm32100e_eval_cec.h.

#define HDMI_CEC_PLAYBACK   0x04

Definition at line 107 of file stm32100e_eval_cec.h.

#define HDMI_CEC_RECORDING   0x01

Definition at line 105 of file stm32100e_eval_cec.h.

#define HDMI_CEC_REFUSED   0x04

Definition at line 166 of file stm32100e_eval_cec.h.

#define HDMI_CEC_ROOT   0x00

HDMI CEC Root (Mainly for TV with a fixed physical address (0.0.0.0)) If you want to configure the STM32100E-EVAL board as CEC Root (Sink) change the following define to 0x1.

Definition at line 143 of file stm32100e_eval_cec.h.

#define HDMI_CEC_TUNER   0x03

Definition at line 106 of file stm32100e_eval_cec.h.

#define HDMI_CEC_TV   0x00

CEC device types.

Definition at line 104 of file stm32100e_eval_cec.h.

#define HDMI_CEC_UNRECOGNIZED_OPCODE   0x00

Reason for Abort feature.

Definition at line 162 of file stm32100e_eval_cec.h.

#define HDMI_CEC_VERSION   0x04

To select if the DDC Channel will be used for physical address discovery or not.

To use the DDC Channel to read the EDID structure uncomment the following line. If the device is configured as HMDI source it should read his own physical address from the sink that is connected to. CEC version: V1.3a

Definition at line 157 of file stm32100e_eval_cec.h.

STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32