40 #ifndef __DRIVERLIB_SSI_H__
41 #define __DRIVERLIB_SSI_H__
60 #define SSI_TXFF 0x00000008 // TX FIFO half full or less
61 #define SSI_RXFF 0x00000004 // RX FIFO half full or more
62 #define SSI_RXTO 0x00000002 // RX timeout
63 #define SSI_RXOR 0x00000001 // RX overrun
70 #define SSI_FRF_MOTO_MODE_0 0x00000000 // Moto fmt, polarity 0, phase 0
71 #define SSI_FRF_MOTO_MODE_1 0x00000002 // Moto fmt, polarity 0, phase 1
72 #define SSI_FRF_MOTO_MODE_2 0x00000001 // Moto fmt, polarity 1, phase 0
73 #define SSI_FRF_MOTO_MODE_3 0x00000003 // Moto fmt, polarity 1, phase 1
74 #define SSI_FRF_TI 0x00000010 // TI frame format
75 #define SSI_FRF_NMW 0x00000020 // National MicroWire frame format
77 #define SSI_MODE_MASTER 0x00000000 // SSI master
78 #define SSI_MODE_SLAVE 0x00000001 // SSI slave
79 #define SSI_MODE_SLAVE_OD 0x00000002 // SSI slave with output disabled
86 #define SSI_DMA_TX 0x00000002 // Enable DMA for transmit
87 #define SSI_DMA_RX 0x00000001 // Enable DMA for receive
95 #define SSI_CLOCK_SYSTEM 0x00000000
96 #define SSI_CLOCK_PIOSC 0x00000005
104 uint32_t ui32Protocol, uint32_t ui32Mode,
105 uint32_t ui32BitRate,
106 uint32_t ui32DataWidth);
107 extern void SSIDataGet(uint32_t ui32Base, uint32_t *pui32Data);
109 uint32_t *pui32Data);
110 extern void SSIDataPut(uint32_t ui32Base, uint32_t ui32Data);
113 extern void SSIEnable(uint32_t ui32Base);
114 extern void SSIIntClear(uint32_t ui32Base, uint32_t ui32IntFlags);
115 extern void SSIIntDisable(uint32_t ui32Base, uint32_t ui32IntFlags);
116 extern void SSIIntEnable(uint32_t ui32Base, uint32_t ui32IntFlags);
117 extern void SSIIntRegister(uint32_t ui32Base,
void (*pfnHandler)(
void));
118 extern uint32_t
SSIIntStatus(uint32_t ui32Base,
bool bMasked);
120 extern void SSIDMAEnable(uint32_t ui32Base, uint32_t ui32DMAFlags);
121 extern void SSIDMADisable(uint32_t ui32Base, uint32_t ui32DMAFlags);
122 extern bool SSIBusy(uint32_t ui32Base);
135 #endif // __DRIVERLIB_SSI_H__
uint32_t SSIIntStatus(uint32_t ui32Base, bool bMasked)
Definition: ssi.c:479
void SSIIntDisable(uint32_t ui32Base, uint32_t ui32IntFlags)
Definition: ssi.c:449
void SSIIntEnable(uint32_t ui32Base, uint32_t ui32IntFlags)
Definition: ssi.c:421
void SSIDataGet(uint32_t ui32Base, uint32_t *pui32Data)
Definition: ssi.c:647
void SSIClockSourceSet(uint32_t ui32Base, uint32_t ui32Source)
Definition: ssi.c:829
int32_t SSIDataPutNonBlocking(uint32_t ui32Base, uint32_t ui32Data)
Definition: ssi.c:601
void SSIDisable(uint32_t ui32Base)
Definition: ssi.c:299
uint32_t SSIClockSourceGet(uint32_t ui32Base)
Definition: ssi.c:861
void SSIEnable(uint32_t ui32Base)
Definition: ssi.c:274
int32_t SSIDataGetNonBlocking(uint32_t ui32Base, uint32_t *pui32Data)
Definition: ssi.c:690
void SSIDataPut(uint32_t ui32Base, uint32_t ui32Data)
Definition: ssi.c:559
void SSIIntRegister(uint32_t ui32Base, void(*pfnHandler)(void))
Definition: ssi.c:333
bool SSIBusy(uint32_t ui32Base)
Definition: ssi.c:793
void SSIIntUnregister(uint32_t ui32Base)
Definition: ssi.c:377
void SSIDMADisable(uint32_t ui32Base, uint32_t ui32DMAFlags)
Definition: ssi.c:764
void SSIConfigSetExpClk(uint32_t ui32Base, uint32_t ui32SSIClk, uint32_t ui32Protocol, uint32_t ui32Mode, uint32_t ui32BitRate, uint32_t ui32DataWidth)
Definition: ssi.c:201
void SSIIntClear(uint32_t ui32Base, uint32_t ui32IntFlags)
Definition: ssi.c:526
void SSIDMAEnable(uint32_t ui32Base, uint32_t ui32DMAFlags)
Definition: ssi.c:733