CROSS Technical Documentation User Manual and Technical Doc.
INFN Milano Bicocca
Loading...
Searching...
No Matches

◆ SPI_callback()

void SPI_callback ( uint32_t  event)

After that the SPI ends its operations and the interrupt is generated this signal function is called which marks errors, if any and flags of operation done.

Parameters
[in]event
Returns
No parameters
173void SPI_callback(uint32_t event)
174{
175 evento_SPI =event; //We make the event global
176 switch (event)
177 {
178 case ARM_SPI_EVENT_TRANSFER_COMPLETE:
179 {
181 break;
182 }
183 case ARM_SPI_EVENT_DATA_LOST:
184 {
186 break;
187 }
188 case ARM_SPI_EVENT_MODE_FAULT:
189 {
191 break;
192 }
193 }
194}
volatile uint32_t Error_bad_operation
exploited to mark the errors
void SPI_callback(uint32_t event)
After that the SPI ends its operations and the interrupt is generated this signal function is called ...
Definition: Spi.c:173
uint32_t evento_SPI
This is the variable which resembles the flags from the communication.
Definition: Spi.c:151

Definition at line 173 of file Spi.c.

References Error_bad_operation, and evento_SPI.

Referenced by SPI_Inizialize(), and SPI_Inizialize_per_il_DAC().