Go to the documentation of this file.
35 #ifndef _TRANSMITTER_H_
36 #define _TRANSMITTER_H_
47 #define ADI_TASK_EVENT_TIMER 0x1
48 #define TRANSMITTER_DBG_MSG if(TransmitterParm.DebugControl)DBG_MSG
57 #define CurrMuteState TransmitterTxVars.CurrMuteState
58 #define TxStatus TransmitterTxVars.TxStatus
60 #define HDMI_IEEE_REG 0x000C03
UCHAR CurrMuteState
Definition: transmitter.h:51
#define CurrMuteState
Definition: transmitter.h:57
@ OUT_MODE_HDMI
Definition: transmitter_defs.h:84
UINT32 ATV_GetMsCountNZ(void)
Definition: wrapper.c:155
uint8_t h_sync_offs
Definition: edid.h:65
TX_CS_MODE OutColorSpace
Definition: transmitter_defs.h:99
#define TRANSMITTER_MODE_SWITCH_DELAY
Definition: transmitter.c:51
void TRANSMITTER_Housekeeping(void)
Performs TX housekeeping tasks. This function should be called periodically (at least every 100 ms)
Definition: transmitter.c:346
unsigned long UINT32
Definition: wrapper.h:44
uint8_t h_sync_width
Definition: edid.h:66
TRANSMITTER_POWER_MODE
Definition: transmitter_defs.h:58
void InitHdmiVideoPcore(unsigned short horizontalActiveTime, unsigned short horizontalBlankingTime, unsigned short horizontalSyncOffset, unsigned short horizontalSyncPulseWidth, unsigned short verticalActiveTime, unsigned short verticalBlankingTime, unsigned short verticalSyncOffset, unsigned short verticalSyncPulseWidth)
InitHdmiVideoPcore.
Definition: cf_hdmi.c:161
TX_CS_MODE InColorSpace
Definition: transmitter_defs.h:98
BOOL Changed
Definition: transmitter_defs.h:89
uint8_t v_active
Definition: edid.h:62
Driver for the Analog Devices AXI CLKGEN.
ATV_ERR ADIAPI_TransmitterInit(void)
Initializes the transmitter.
Definition: transmitter.c:94
#define TRANSMITTER_HOUSEKEEPING_DELAY
Definition: transmitter.c:58
TRANSMITTER_OPER_MODE
Definition: transmitter_defs.h:52
int32_t axi_clkgen_set_rate(struct axi_clkgen *clkgen, uint32_t rate)
axi_clkgen_set_rate
Definition: clk_axi_clkgen.c:414
ATV_ERR ADIAPI_TransmitterSetOperatingMode(TRANSMITTER_OPER_MODE Mode)
Sets the system operating mode.
Definition: transmitter.c:249
UINT16 DebugControl
Definition: transmitter_defs.h:101
UINT16 TRANSMITTER_Notification(TX_EVENT Ev, UINT16 Count, void *BufPtr)
Performs the notification operations.
Definition: transmitter.c:380
TX_IN_FORMAT InPixelFormat
Definition: transmitter_defs.h:94
#define ADI_TASK_EVENT_TIMER
Definition: transmitter.h:47
unsigned char UCHAR
Definition: wrapper.h:42
ATV_ERR ADIAPI_TransmitterGetDetectedMode(TRANSMITTER_OPER_MODE *Mode)
Gets the operating mode based on HDMI HPD and MSEN state.
Definition: transmitter.c:213
void transmitter_link_clkgen(struct axi_clkgen *clk_gen_handle)
Link the transmitter clk_gen handler to the application one.
Definition: transmitter.c:84
#define DBG_MSG
Definition: wrapper.h:186
Definition: clk_axi_clkgen.h:44
@ ATVERR_TRUE
Definition: wrapper.h:323
uint8_t detailed_timing[72]
Definition: edid.h:123
TX_STATUS_PKT TxStatus
Definition: transmitter.h:52
@ MODE_NONE
Definition: transmitter_defs.h:54
unsigned short UINT16
Definition: wrapper.h:43
uint8_t h_active
Definition: edid.h:59
void TRANSMITTER_HardwareInit(void)
Initializes the hardware of the transmitter.
Definition: transmitter.c:144
ATV_ERR ADIAPI_TransmitterGetOperatingMode(TRANSMITTER_OPER_MODE *Mode)
Gets the current system operating mode.
Definition: transmitter.c:235
#define TRANSMITTER_DBG_MSG
Definition: transmitter.h:48
void TRANSMITTER_NewEdidSegment(UINT16 SegmentNum, UCHAR *SegPtr)
Parse the new EDID segment and set the resolution and the pixel clock according to EDID data.
Definition: transmitter.c:419
uint8_t v_act_blnk44
Definition: edid.h:64
void TRANSMITTER_SoftwareInit(void)
Initializes the software parameters.
Definition: transmitter.c:131
ATV_ERR
Definition: wrapper.h:320
TRANSMITTER_TX_VARS TransmitterTxVars
Definition: transmitter.c:77
ATV_ERR ADIAPI_TransmitterSetMuteState(void)
This is the TX audio/video mute handling function.
Definition: transmitter.c:357
uint8_t v_offs_pulse
Definition: edid.h:67
void AudioClick(void)
AudioClick.
Definition: cf_hdmi.c:295
uint8_t ADIAPI_mw_edid_parse(uint8_t *edid_ptr, uint16_t *spa_offset, uint8_t seg_num)
Definition: edid.c:896
uint8_t pixel_clk[2]
Definition: edid.h:58
@ REP_POWER_UP
Definition: transmitter_defs.h:60
#define TRUE
Definition: wrapper.h:56
TRANSMITTER_OUTPUT_MODE ReqOutputMode
Definition: transmitter_defs.h:92
ATV_ERR ADIAPI_TransmitterGetDetectedMode(TRANSMITTER_OPER_MODE *Mode)
Gets the operating mode based on HDMI HPD and MSEN state.
Definition: transmitter.c:213
ATV_ERR ADIAPI_TransmitterSetPowerMode(TRANSMITTER_POWER_MODE pwrmode)
Sets the transmitter power mode.
Definition: transmitter.c:199
TRANSMITTER_OPER_PARAMS TransmitterParm
Definition: transmitter.c:74
#define MUTE_DISABLE
Definition: transmitter_defs.h:46
UCHAR InPixelStyle
Definition: transmitter_defs.h:95
#define PKT_AV_INFO_FRAME
Definition: wrapper.h:169
Definition: transmitter_defs.h:88
void TRANSMITTER_HardwareInit(void)
Initializes the hardware of the transmitter.
Definition: transmitter.c:144
UCHAR InPixelBitsPerColor
Definition: transmitter_defs.h:93
void TRANSMITTER_NewEdidSegment(UINT16 SegmentNum, UCHAR *SegPtr)
Parse the new EDID segment.
Definition: transmitter.c:419
UINT32 ATV_GetElapsedMs(UINT32 StartCount, UINT32 *CurrMsCount)
Definition: wrapper.c:132
@ OUT_MODE_DVI
Definition: transmitter_defs.h:85
UCHAR MuteState
Definition: transmitter.c:75
void TRANSMITTER_MonitorAvrMode(void)
Checks current AVR operating mode and notify application if mode changed.
Definition: transmitter.c:288
ATV_ERR ADIAPI_TransmitterMain(void)
Main function for polling mode operation.
Definition: transmitter.c:312
ATV_ERR ADIAPI_TransmitterSetOperatingMode(TRANSMITTER_OPER_MODE Mode)
Sets the system operating mode.
Definition: transmitter.c:249
Config file of ADV7511 no-OS project.
#define HDMI_IEEE_REG
Definition: transmitter.h:60
ATV_ERR ADIAPI_TransmitterSetMuteState(void)
This is the TX audio/video mute handling function.
Definition: transmitter.c:357
uint32_t HAL_GetCurrentMsCount()
Definition: wrapper.c:1400
TRANSMITTER_OPER_MODE Mode
Definition: transmitter_defs.h:90
#define TxStatus
Definition: transmitter.h:58
@ MODE_INVALID
Definition: transmitter_defs.h:55
uint8_t v_blanking
Definition: edid.h:63
EDID control module header.
ATV_ERR ADIAPI_TransmitterSetPowerMode(TRANSMITTER_POWER_MODE pwrmode)
Sets the transmitter power mode.
Definition: transmitter.c:199
#define MUTE_ENABLE
Definition: transmitter_defs.h:47
uint8_t hv_offs_pulse
Definition: edid.h:68
void ADIAPI_TransmitterSetMuteMode(TRANSMITTER_OPER_MODE Mode)
Sets the mute mode using the operating mode information.
Definition: transmitter.c:273
#define BOOL
Definition: wrapper.h:52
ATV_ERR ADIAPI_TransmitterInit(void)
Initializes the transmitter.
Definition: transmitter.c:94
ATV_ERR ADIAPI_TransmitterGetOperatingMode(TRANSMITTER_OPER_MODE *Mode)
Gets the current system operating mode.
Definition: transmitter.c:235
TX_OUT_ENCODING OutPixelEncFormat
Definition: transmitter_defs.h:97
TRANSMITTER_POWER_MODE PowerMode
Definition: transmitter_defs.h:91
Definition: transmitter_defs.h:104
void transmitter_link_clkgen(struct axi_clkgen *clk_gen_handle)
Link the transmitter clk_gen handler to the application one.
Definition: transmitter.c:84
void ADIAPI_mw_edid_enable_debug_msg(bool enable)
Definition: edid.c:1021
void TRANSMITTER_MonitorAvrMode(void)
Checks current AVR operating mode and notify application if mode changed.
Definition: transmitter.c:288
ATV_ERR ADIAPI_TransmitterMain(void)
Main function for polling mode operation. This function should be called periodically (at least every...
Definition: transmitter.c:312
void TRANSMITTER_Housekeeping(void)
Performs TX housekeeping tasks. This function should be called periodically (at least every 100 ms)
Definition: transmitter.c:346
#define FALSE
Definition: wrapper.h:60
Definition: transmitter.h:50
uint8_t h_act_blnk44
Definition: edid.h:61
@ MODE_XMT
Definition: transmitter_defs.h:53
void ADIAPI_TransmitterSetMuteMode(TRANSMITTER_OPER_MODE Mode)
Sets the mute mode using the operating mode information.
Definition: transmitter.c:273
uint8_t h_blanking
Definition: edid.h:60
TX_CHAN_ALIGN InPixelAlignment
Definition: transmitter_defs.h:96
void TRANSMITTER_SoftwareInit(void)
Initializes the software parameters.
Definition: transmitter.c:131
TRANSMITTER_AUD_INTERFACE AudInterface
Definition: transmitter_defs.h:100
TRANSMITTER_TX_VARS TransmitterTxVars
Definition: transmitter.c:77
@ ATVERR_OK
Definition: wrapper.h:321
UINT16 TRANSMITTER_Notification(TX_EVENT Ev, UINT16 Count, void *BufPtr)
Performs the notification operations.
Definition: transmitter.c:380