XilinxProcessorIPLib/drivers/v_hdmitxss/examples/xhdmi_example/I2S/xhdmi_example.c
void CloneTxEdid(void)
{
#ifdef XPAR_XV_HDMIRXSS_NUM_INSTANCES
    u8 Buffer[256];
    u32 Status;

    /* Read TX edid */
    Status = XV_HdmiTxSs_ReadEdid(&HdmiTxSs, (u8*)&Buffer);

    /* Check if read was successful */
    if (Status == (XST_SUCCESS)) {
        /* Load new EDID */
        XV_HdmiRxSs_LoadEdid(&HdmiRxSs, (u8*)&Buffer, sizeof(Buffer));

        /* Toggle HPD after loading new HPD */
        ToggleHdmiRxHpd(&Vphy, &HdmiRxSs);

        xil_printf("\r\n");
        xil_printf("Successfully cloned EDID and toggled HPD.\r\n");
    }
#else
    xil_printf("\r\nEdid Cloning no possible with HDMI RX SS.\r\n");
#endif
}
/*****************************************************************************/
/**
*
* This function clones the EDID of the connected sink device to the HDMI RX
* @return None.
*
* @note   None.
*
******************************************************************************/
This function clones the EDID of the connected sink device to the HDMI RX
This function clones the EDID of the connected sink device to the HDMI RX
void CloneTxEdid(void)
{
#ifdef XPAR_XV_HDMIRXSS_NUM_INSTANCES
    u8 Buffer[256];
    u32 Status;
    Status = XV_HdmiTxSs_ReadEdid(&HdmiTxSs, (u8*)&Buffer);
    if (Status == (XST_SUCCESS)) {
        XV_HdmiRxSs_LoadEdid(&HdmiRxSs, (u8*)&Buffer, sizeof(Buffer));
        ToggleHdmiRxHpd(&Vphy, &HdmiRxSs);
        xil_printf("\r\n");
        xil_printf("Successfully cloned EDID and toggled HPD.\r\n");
    }
#else
    xil_printf("\r\nEdid Cloning no possible with HDMI RX SS.\r\n");
#endif
}
void CloneTxEdid ( void ) { #ifdef XPAR_XV_HDMIRXSS_NUM_INSTANCES u8 Buffer [ 256 ] ; u32 Status ; Status = XV_HdmiTxSs_ReadEdid ( & HdmiTxSs , ( u8 * ) & Buffer ) ; if ( Status == ( XST_SUCCESS ) ) { XV_HdmiRxSs_LoadEdid ( & HdmiRxSs , ( u8 * ) & Buffer , sizeof ( Buffer ) ) ; ToggleHdmiRxHpd ( & Vphy , & HdmiRxSs ) ; xil_printf ( " \r \n " ) ; xil_printf ( " \r \n " ) ; } #else xil_printf ( " \r \n \r \n " ) ; #endif }
This function clones the EDID of the connected sink device to the HDMI RX
This function clones the EDID of the connected sink device to the HDMI RX
/* Read TX edid */ /* Check if read was successful */ /* Load new EDID */ /* Toggle HPD after loading new HPD */