This repository has been archived by the owner on Jun 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 223
CPU SPI APIs
Steve Maillet edited this page Feb 28, 2016
·
1 revision
BOOL CPU_SPI_Initialize();
void CPU_SPI_Uninitialize();
BOOL CPU_SPI_nWrite16_nRead16( const SPI_CONFIGURATION& Configuration, UINT16* Write16, INT32 WriteCount, UINT16* Read16, INT32 ReadCount, INT32 ReadStartOffset );
BOOL CPU_SPI_nWrite8_nRead8( const SPI_CONFIGURATION& Configuration, UINT8* Write8, INT32 WriteCount, UINT8* Read8, INT32 ReadCount, INT32 ReadStartOffset );
BOOL CPU_SPI_Xaction_Start( const SPI_CONFIGURATION& Configuration );
BOOL CPU_SPI_Xaction_Stop( const SPI_CONFIGURATION& Configuration );
BOOL CPU_SPI_Xaction_nWrite16_nRead16( SPI_XACTION_16& Transaction );
BOOL CPU_SPI_Xaction_nWrite8_nRead8( SPI_XACTION_8& Transaction );
UINT32 CPU_SPI_PortsCount();
void CPU_SPI_GetPins( UINT32 spi_mod, GPIO_PIN& msk, GPIO_PIN& miso, GPIO_PIN& mosi );
UINT32 CPU_SPI_MinClockFrequency( UINT32 spi_mod );
UINT32 CPU_SPI_MaxClockFrequency( UINT32 spi_mod );
UINT32 CPU_SPI_ChipSelectLineCount( UINT32 spi_mod );
Declared in: CPU_SPI_decl.h