XilinxProcessorIPLib/drivers/v_hdmitx/src/xv_hdmitx.c
XV_HdmiTx_AudioFormatType XV_HdmiTx_GetAudioFormat(XV_HdmiTx *InstancePtr)
{
	XV_HdmiTx_AudioFormatType RegValue;

    Xil_AssertNonvoid(InstancePtr != NULL);

    RegValue = XV_HdmiTx_ReadReg((InstancePtr)->Config.BaseAddress, (XV_HDMITX_AUD_CTRL_OFFSET));
    RegValue = (RegValue >> XV_HDMITX_AUD_CTRL_AUDFMT_SHIFT) & (XV_HDMITX_AUD_CTRL_AUDFMT_MASK);

    return RegValue;
}
/*****************************************************************************/
/**
*
* This function gets the active audio format
*
* @param    InstancePtr is a pointer to the XV_HdmiTx core instance.
*
* @return   Active audio format of HDMI Tx
*
* @note     None.
*
******************************************************************************/
This function gets the active audio format
This function gets the active audio format
XV_HdmiTx_AudioFormatType XV_HdmiTx_GetAudioFormat(XV_HdmiTx *InstancePtr)
{
	XV_HdmiTx_AudioFormatType RegValue;
    Xil_AssertNonvoid(InstancePtr != NULL);
    RegValue = XV_HdmiTx_ReadReg((InstancePtr)->Config.BaseAddress, (XV_HDMITX_AUD_CTRL_OFFSET));
    RegValue = (RegValue >> XV_HDMITX_AUD_CTRL_AUDFMT_SHIFT) & (XV_HDMITX_AUD_CTRL_AUDFMT_MASK);
    return RegValue;
}
XV_HdmiTx_AudioFormatType XV_HdmiTx_GetAudioFormat ( XV_HdmiTx * InstancePtr ) { XV_HdmiTx_AudioFormatType RegValue ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; RegValue = XV_HdmiTx_ReadReg ( ( InstancePtr ) -> Config . BaseAddress , ( XV_HDMITX_AUD_CTRL_OFFSET ) ) ; RegValue = ( RegValue >> XV_HDMITX_AUD_CTRL_AUDFMT_SHIFT ) & ( XV_HDMITX_AUD_CTRL_AUDFMT_MASK ) ; return RegValue ; }
This function gets the active audio format
This function gets the active audio format