XilinxProcessorIPLib/drivers/qspips/src/xqspips_options.c
void XQspiPs_GetDelays(XQspiPs *InstancePtr, u8 *DelayNss, u8 *DelayBtwn,
			 u8 *DelayAfter, u8 *DelayInit)
{
	u32 DelayRegister;

	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);

	DelayRegister = XQspiPs_ReadReg(InstancePtr->Config.BaseAddress,
					 XQSPIPS_DR_OFFSET);

	*DelayInit = (u8)(DelayRegister & XQSPIPS_DR_INIT_MASK);

	*DelayAfter = (u8)((DelayRegister & XQSPIPS_DR_AFTER_MASK) >>
			   XQSPIPS_DR_AFTER_SHIFT);

	*DelayBtwn = (u8)((DelayRegister & XQSPIPS_DR_BTWN_MASK) >>
			  XQSPIPS_DR_BTWN_SHIFT);

	*DelayNss = (u8)((DelayRegister & XQSPIPS_DR_NSS_MASK) >>
			  XQSPIPS_DR_NSS_SHIFT);
}
/*****************************************************************************/
/**
*
* This function gets the delay settings for an QSPI device.
* The delay register controls the Delay Between Transfers, Delay After
* Transfers, and the Delay Initially. The default value is 0x0.
*
* @param	InstancePtr is a pointer to the XQspiPs instance.
* @param	DelayNss is a pointer to the Delay to de-assert slave select
*		between two word transfers.
* @param	DelayBtwn is a pointer to the Delay Between transfers value.
*		This is a return parameter.
* @param	DelayAfter is a pointer to the Delay After transfer value.
*		This is a return parameter.
* @param	DelayInit is a pointer to the Delay Initially value. This is
*		a return parameter.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function gets the delay settings for an QSPI device.
The delay register controls the Delay Between Transfers, Delay After
Transfers, and the Delay Initially. The default value is 0x0.
This function gets the delay settings for an QSPI device . The delay register controls the Delay Between Transfers Delay After Transfers and the Delay Initially . The default value is 0x0 .
void XQspiPs_GetDelays(XQspiPs *InstancePtr, u8 *DelayNss, u8 *DelayBtwn,
			 u8 *DelayAfter, u8 *DelayInit)
{
	u32 DelayRegister;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	DelayRegister = XQspiPs_ReadReg(InstancePtr->Config.BaseAddress,
					 XQSPIPS_DR_OFFSET);
	*DelayInit = (u8)(DelayRegister & XQSPIPS_DR_INIT_MASK);
	*DelayAfter = (u8)((DelayRegister & XQSPIPS_DR_AFTER_MASK) >>
			   XQSPIPS_DR_AFTER_SHIFT);
	*DelayBtwn = (u8)((DelayRegister & XQSPIPS_DR_BTWN_MASK) >>
			  XQSPIPS_DR_BTWN_SHIFT);
	*DelayNss = (u8)((DelayRegister & XQSPIPS_DR_NSS_MASK) >>
			  XQSPIPS_DR_NSS_SHIFT);
}
void XQspiPs_GetDelays ( XQspiPs * InstancePtr , u8 * DelayNss , u8 * DelayBtwn , u8 * DelayAfter , u8 * DelayInit ) { u32 DelayRegister ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; DelayRegister = XQspiPs_ReadReg ( InstancePtr -> Config . BaseAddress , XQSPIPS_DR_OFFSET ) ; * DelayInit = ( u8 ) ( DelayRegister & XQSPIPS_DR_INIT_MASK ) ; * DelayAfter = ( u8 ) ( ( DelayRegister & XQSPIPS_DR_AFTER_MASK ) >> XQSPIPS_DR_AFTER_SHIFT ) ; * DelayBtwn = ( u8 ) ( ( DelayRegister & XQSPIPS_DR_BTWN_MASK ) >> XQSPIPS_DR_BTWN_SHIFT ) ; * DelayNss = ( u8 ) ( ( DelayRegister & XQSPIPS_DR_NSS_MASK ) >> XQSPIPS_DR_NSS_SHIFT ) ; }
This function gets the delay settings for an QSPI device.
This function gets the delay settings for an QSPI device .