no-OS
Loading...
Searching...
No Matches
transmitter.c File Reference
#include <stdio.h>
#include <string.h>
#include "transmitter.h"
#include "tx_lib.h"
#include "cf_hdmi.h"
#include "xil_io.h"
#include "wrapper.h"
#include "edid.h"
#include "app_config.h"
Include dependency graph for transmitter.c:

Macros

#define TRANSMITTER_MODE_SWITCH_DELAY   500
 
#define TRANSMITTER_HOUSEKEEPING_DELAY   100
 

Functions

void transmitter_link_clkgen (struct axi_clkgen *clk_gen_handle)
 Link the transmitter clk_gen handler to the application one.
 
ATV_ERR ADIAPI_TransmitterInit (void)
 Initializes the transmitter.
 
void TRANSMITTER_SoftwareInit (void)
 Initializes the software parameters.
 
void TRANSMITTER_HardwareInit (void)
 Initializes the hardware of the transmitter.
 
ATV_ERR ADIAPI_TransmitterSetPowerMode (TRANSMITTER_POWER_MODE pwrmode)
 Sets the transmitter power mode.
 
ATV_ERR ADIAPI_TransmitterGetDetectedMode (TRANSMITTER_OPER_MODE *Mode)
 Gets the operating mode based on HDMI HPD and MSEN state.
 
ATV_ERR ADIAPI_TransmitterGetOperatingMode (TRANSMITTER_OPER_MODE *Mode)
 Gets the current system operating mode.
 
ATV_ERR ADIAPI_TransmitterSetOperatingMode (TRANSMITTER_OPER_MODE Mode)
 Sets the system operating mode.
 
void ADIAPI_TransmitterSetMuteMode (TRANSMITTER_OPER_MODE Mode)
 Sets the mute mode using the operating mode information.
 
void TRANSMITTER_MonitorAvrMode (void)
 Checks current AVR operating mode and notify application if mode changed.
 
ATV_ERR ADIAPI_TransmitterMain (void)
 Main function for polling mode operation. This function should be called periodically (at least every 100 ms).
 
void TRANSMITTER_Housekeeping (void)
 Performs TX housekeeping tasks. This function should be called periodically (at least every 100 ms)
 
ATV_ERR ADIAPI_TransmitterSetMuteState (void)
 This is the TX audio/video mute handling function.
 
UINT16 TRANSMITTER_Notification (TX_EVENT Ev, UINT16 Count, void *BufPtr)
 Performs the notification operations.
 
void TRANSMITTER_NewEdidSegment (UINT16 SegmentNum, UCHAR *SegPtr)
 Parse the new EDID segment and set the resolution and the pixel clock according to EDID data.
 

Variables

TRANSMITTER_OPER_PARAMS TransmitterParm
 
UCHAR MuteState
 
TRANSMITTER_TX_VARS TransmitterTxVars
 

Detailed Description

Copyright 2013(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

SVN Revision: $WCREV$

Macro Definition Documentation

◆ TRANSMITTER_HOUSEKEEPING_DELAY

#define TRANSMITTER_HOUSEKEEPING_DELAY   100

◆ TRANSMITTER_MODE_SWITCH_DELAY

#define TRANSMITTER_MODE_SWITCH_DELAY   500

Function Documentation

◆ ADIAPI_TransmitterGetDetectedMode()

ATV_ERR ADIAPI_TransmitterGetDetectedMode ( TRANSMITTER_OPER_MODE * Mode)

Gets the operating mode based on HDMI HPD and MSEN state.

Parameters
Mode- operating mode.
Returns
Returns ATVERR_OK.

◆ ADIAPI_TransmitterGetOperatingMode()

ATV_ERR ADIAPI_TransmitterGetOperatingMode ( TRANSMITTER_OPER_MODE * Mode)

Gets the current system operating mode.

Parameters
Mode- operating mode.
Returns
Returns ATVERR_OK.

◆ ADIAPI_TransmitterInit()

ATV_ERR ADIAPI_TransmitterInit ( void )

Initializes the transmitter.

Returns
Returns ATVERR_OK.

◆ ADIAPI_TransmitterMain()

ATV_ERR ADIAPI_TransmitterMain ( void )

Main function for polling mode operation. This function should be called periodically (at least every 100 ms).

Main function for polling mode operation.

◆ ADIAPI_TransmitterSetMuteMode()

void ADIAPI_TransmitterSetMuteMode ( TRANSMITTER_OPER_MODE Mode)

Sets the mute mode using the operating mode information.

Parameters
Mode- operating mode.

◆ ADIAPI_TransmitterSetMuteState()

ATV_ERR ADIAPI_TransmitterSetMuteState ( void )

This is the TX audio/video mute handling function.

Returns
Returns ATVERR_OK.

◆ ADIAPI_TransmitterSetOperatingMode()

ATV_ERR ADIAPI_TransmitterSetOperatingMode ( TRANSMITTER_OPER_MODE Mode)

Sets the system operating mode.

Parameters
Mode- operating mode.
Returns
Returns ATVERR_OK.

◆ ADIAPI_TransmitterSetPowerMode()

ATV_ERR ADIAPI_TransmitterSetPowerMode ( TRANSMITTER_POWER_MODE pwrmode)

Sets the transmitter power mode.

Parameters
pwrmode- transmitter power mode.
Returns
Returns ATVERR_OK.

◆ TRANSMITTER_HardwareInit()

void TRANSMITTER_HardwareInit ( void )

Initializes the hardware of the transmitter.

Initializes the hardware of the transmitter.

◆ TRANSMITTER_Housekeeping()

void TRANSMITTER_Housekeeping ( void )

Performs TX housekeeping tasks. This function should be called periodically (at least every 100 ms)

Performs TX housekeeping tasks.

◆ transmitter_link_clkgen()

void transmitter_link_clkgen ( struct axi_clkgen * clk_gen_handle)

Link the transmitter clk_gen handler to the application one.

Parameters
[in]clk_gen_handle- Pointer to the clk_axi_clkgen handle.

◆ TRANSMITTER_MonitorAvrMode()

void TRANSMITTER_MonitorAvrMode ( void )

Checks current AVR operating mode and notify application if mode changed.

Checks current AVR operating mode and notify application if mode changed.

◆ TRANSMITTER_NewEdidSegment()

void TRANSMITTER_NewEdidSegment ( UINT16 SegmentNum,
UCHAR * SegPtr )

Parse the new EDID segment and set the resolution and the pixel clock according to EDID data.

Parse the new EDID segment.

Parameters
SegmentNum- Segment number.
SegPtr- Segment pointer.

◆ TRANSMITTER_Notification()

UINT16 TRANSMITTER_Notification ( TX_EVENT Ev,
UINT16 Count,
void * BufPtr )

Performs the notification operations.

Returns
Returns 0.

◆ TRANSMITTER_SoftwareInit()

void TRANSMITTER_SoftwareInit ( void )

Initializes the software parameters.

Initializes the software parameters.

Variable Documentation

◆ MuteState

UCHAR MuteState

◆ TransmitterParm

TRANSMITTER_OPER_PARAMS TransmitterParm

◆ TransmitterTxVars

TRANSMITTER_TX_VARS TransmitterTxVars