XilinxProcessorIPLib/drivers/dual_splitter/src/xdualsplitter.c
void XDualSplitter_GetImgParam(XDualSplitter *InstancePtr, u8 *InputSamples,
				u8 *OutputSamples, u8 *ImageSegments,
				u8 *Overlap)
{
	u32 Data;

	/* Verify arguments. */
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InputSamples != NULL);
	Xil_AssertVoid(OutputSamples != NULL);
	Xil_AssertVoid(ImageSegments != NULL);
	Xil_AssertVoid(Overlap != NULL);

	/* Read from Core Control register */
	Data = XDualSplitter_ReadReg(InstancePtr->Config.BaseAddress,
				XDUSP_CORE_CTL_OFFSET);

	/* Extract Image parameters. */
	*InputSamples = (u8)(Data & XDUSP_CORE_CTL_IN_SAMPLES_MASK);
	*OutputSamples = (u8)((Data &
			XDUSP_CORE_CTL_OUT_SAMPLES_MASK) >>
				XDUSP_CORE_CTL_OUT_SAMPLES_SHIFT);
	*ImageSegments = (u8)((Data &
			XDUSP_CORE_CTL_IMG_SEG_MASK) >>
				XDUSP_CORE_CTL_IMG_SEG_SHIFT);
	*Overlap = (u8)((Data &
			XDUSP_CORE_CTL_OVRLAP_SEG_MASK) >>
				XDUSP_CORE_CTL_OVRLAP_SEG_SHIFT);
}
/*****************************************************************************/
/**
*
* This function gets the image parameters of the Dual Splitter core.
*
* @param	InstancePtr is a pointer to the XDualSplitter core instance.
* @param	InputSamples specifies a pointer to the 8-bit variable that
*		will be filled with number of input samples which is in the
*		range [0, 4]
* @param	OutputSamples specifies a pointer to the 8-bit variable that
*		will be filled with number of output samples which is in the
*		range [0, 4]
* @param	ImageSegments specifies a pointer to the 8-bit variable that
*		will be filled with number of image segments which is in the
*		range [0, 4]
* @param	Overlap specifies a pointer to the 8-bit variable that will be
*		filled with number of samples overlapping the segments.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function gets the image parameters of the Dual Splitter core.
This function gets the image parameters of the Dual Splitter core .
void XDualSplitter_GetImgParam(XDualSplitter *InstancePtr, u8 *InputSamples,
				u8 *OutputSamples, u8 *ImageSegments,
				u8 *Overlap)
{
	u32 Data;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InputSamples != NULL);
	Xil_AssertVoid(OutputSamples != NULL);
	Xil_AssertVoid(ImageSegments != NULL);
	Xil_AssertVoid(Overlap != NULL);
	Data = XDualSplitter_ReadReg(InstancePtr->Config.BaseAddress,
				XDUSP_CORE_CTL_OFFSET);
	*InputSamples = (u8)(Data & XDUSP_CORE_CTL_IN_SAMPLES_MASK);
	*OutputSamples = (u8)((Data &
			XDUSP_CORE_CTL_OUT_SAMPLES_MASK) >>
				XDUSP_CORE_CTL_OUT_SAMPLES_SHIFT);
	*ImageSegments = (u8)((Data &
			XDUSP_CORE_CTL_IMG_SEG_MASK) >>
				XDUSP_CORE_CTL_IMG_SEG_SHIFT);
	*Overlap = (u8)((Data &
			XDUSP_CORE_CTL_OVRLAP_SEG_MASK) >>
				XDUSP_CORE_CTL_OVRLAP_SEG_SHIFT);
}
void XDualSplitter_GetImgParam ( XDualSplitter * InstancePtr , u8 * InputSamples , u8 * OutputSamples , u8 * ImageSegments , u8 * Overlap ) { u32 Data ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InputSamples != NULL ) ; Xil_AssertVoid ( OutputSamples != NULL ) ; Xil_AssertVoid ( ImageSegments != NULL ) ; Xil_AssertVoid ( Overlap != NULL ) ; Data = XDualSplitter_ReadReg ( InstancePtr -> Config . BaseAddress , XDUSP_CORE_CTL_OFFSET ) ; * InputSamples = ( u8 ) ( Data & XDUSP_CORE_CTL_IN_SAMPLES_MASK ) ; * OutputSamples = ( u8 ) ( ( Data & XDUSP_CORE_CTL_OUT_SAMPLES_MASK ) >> XDUSP_CORE_CTL_OUT_SAMPLES_SHIFT ) ; * ImageSegments = ( u8 ) ( ( Data & XDUSP_CORE_CTL_IMG_SEG_MASK ) >> XDUSP_CORE_CTL_IMG_SEG_SHIFT ) ; * Overlap = ( u8 ) ( ( Data & XDUSP_CORE_CTL_OVRLAP_SEG_MASK ) >> XDUSP_CORE_CTL_OVRLAP_SEG_SHIFT ) ; }
This function gets the image parameters of the Dual Splitter core.
This function gets the image parameters of the Dual Splitter core .
/* Verify arguments. */ /* Read from Core Control register */ /* Extract Image parameters. */