![]() |
spips
Vitis Drivers API Documentation
|
Implements the functions for the configuration of the XSpiPs driver.
MODIFICATION HISTORY:
Ver Who Date Changes
1.00 drg/jz 01/25/10 First release 1.00 sdm 10/25/11 Removed the Divide by 2 in the SPI Clock Prescaler options as this is not supported in the device 1.04a sg 01/30/13 Added XSPIPS_MANUAL_START_OPTION. SetDelays and GetDelays API's include DelayNss parameter. 1.05a hk 26/04/13 Added disable and enable in XSpiPs_SetOptions when CPOL/CPHA bits are set/reset. Fix for CR#707669. 3.00 kvn 02/13/15 Modified code for MISRA-C:2012 compliance. 3.2 aru 01/20/19 Fixes violations according to MISRAC-2012 in safety mode and done changes such as Declared the pointer param as Pointer to const 3.15 vn 08/26/26 Fix Doxygen warnings. 3.15 tb 09/30/26 Align Doxygen comments with AMD documentation standards
#include "xspips.h"Macros | |
| #define | XSPIPS_NUM_OPTIONS (sizeof(OptionsTable) / sizeof(OptionsMap)) |
| Number of entries in the options table. More... | |
Functions | |
| s32 | XSpiPs_SetOptions (const XSpiPs *InstancePtr, u32 Options) |
| Sets the options for the SPI device driver. More... | |
| u32 | XSpiPs_GetOptions (const XSpiPs *InstancePtr) |
| Gets the options for the SPI device. More... | |
| s32 | XSpiPs_SetClkPrescaler (const XSpiPs *InstancePtr, u8 Prescaler) |
| Sets the clock prescaler for an SPI device. More... | |
| u8 | XSpiPs_GetClkPrescaler (const XSpiPs *InstancePtr) |
| Gets the clock prescaler of an SPI device. More... | |
| s32 | XSpiPs_SetDelays (const XSpiPs *InstancePtr, u8 DelayNss, u8 DelayBtwn, u8 DelayAfter, u8 DelayInit) |
| Sets the delay register for the SPI device driver. More... | |
| void | XSpiPs_GetDelays (const XSpiPs *InstancePtr, u8 *DelayNss, u8 *DelayBtwn, u8 *DelayAfter, u8 *DelayInit) |
| Gets the delay settings for an SPI device. More... | |