XilinxProcessorIPLib/drivers/spips/src/xspips_options.c
void XSpiPs_GetDelays(const XSpiPs *InstancePtr,u8 *DelayNss, u8 *DelayBtwn,
			u8 *DelayAfter, u8 *DelayInit)
{
	u32 DelayRegister;

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

	DelayRegister = XSpiPs_ReadReg(InstancePtr->Config.BaseAddress,
					XSPIPS_DR_OFFSET);

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

	*DelayAfter = (u8)((DelayRegister & XSPIPS_DR_AFTER_MASK) >>
				 XSPIPS_DR_AFTER_SHIFT);

	*DelayBtwn = (u8)((DelayRegister & XSPIPS_DR_BTWN_MASK) >>
				XSPIPS_DR_BTWN_SHIFT);

	*DelayNss = (u8)((DelayRegister & XSPIPS_DR_NSS_MASK) >>
				XSPIPS_DR_NSS_SHIFT);

}
/*****************************************************************************/
/**
*
* This function gets the delay settings for an SPI 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 XSpiPs instance.
* @param	DelayNss is a pointer to the delay for which the chip select
*		outputs will be de-asserted between words when CPHA=0.
* @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 SPI 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 SPI device . The delay register controls the Delay Between Transfers Delay After Transfers and the Delay Initially . The default value is 0x0 .
void XSpiPs_GetDelays(const XSpiPs *InstancePtr,u8 *DelayNss, u8 *DelayBtwn,
			u8 *DelayAfter, u8 *DelayInit)
{
	u32 DelayRegister;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	DelayRegister = XSpiPs_ReadReg(InstancePtr->Config.BaseAddress,
					XSPIPS_DR_OFFSET);
	*DelayInit = (u8)(DelayRegister & XSPIPS_DR_INIT_MASK);
	*DelayAfter = (u8)((DelayRegister & XSPIPS_DR_AFTER_MASK) >>
				 XSPIPS_DR_AFTER_SHIFT);
	*DelayBtwn = (u8)((DelayRegister & XSPIPS_DR_BTWN_MASK) >>
				XSPIPS_DR_BTWN_SHIFT);
	*DelayNss = (u8)((DelayRegister & XSPIPS_DR_NSS_MASK) >>
				XSPIPS_DR_NSS_SHIFT);
}
void XSpiPs_GetDelays ( const XSpiPs * InstancePtr , u8 * DelayNss , u8 * DelayBtwn , u8 * DelayAfter , u8 * DelayInit ) { u32 DelayRegister ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; DelayRegister = XSpiPs_ReadReg ( InstancePtr -> Config . BaseAddress , XSPIPS_DR_OFFSET ) ; * DelayInit = ( u8 ) ( DelayRegister & XSPIPS_DR_INIT_MASK ) ; * DelayAfter = ( u8 ) ( ( DelayRegister & XSPIPS_DR_AFTER_MASK ) >> XSPIPS_DR_AFTER_SHIFT ) ; * DelayBtwn = ( u8 ) ( ( DelayRegister & XSPIPS_DR_BTWN_MASK ) >> XSPIPS_DR_BTWN_SHIFT ) ; * DelayNss = ( u8 ) ( ( DelayRegister & XSPIPS_DR_NSS_MASK ) >> XSPIPS_DR_NSS_SHIFT ) ; }
This function gets the delay settings for an SPI device.
This function gets the delay settings for an SPI device .