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

◆ I2C_0_SignalEvent_t()

void I2C_0_SignalEvent_t ( uint32_t  event)

The I2C_0 interrupt function.

Returns
No Parameters
315void I2C_0_SignalEvent_t (uint32_t event)
316{
317 evento_I2C=event;
318 if(event==ARM_I2C_EVENT_TRANSFER_DONE) // Ricezione e trasmissione finita sia del master che dello slave
319 {
320 __NOP();
322 }
323 if( event & ARM_I2C_EVENT_TRANSFER_INCOMPLETE)
324 {
326 }
327 if(event==ARM_I2C_EVENT_SLAVE_TRANSMIT)
328 {
329 __NOP();
331 }
332 if(event==ARM_I2C_EVENT_SLAVE_RECEIVE)
333 {
334 __NOP();
336 }
337 if (event & ARM_I2C_EVENT_ADDRESS_NACK){
339 }
340 if (event & ARM_I2C_EVENT_ARBITRATION_LOST){
342 }
343 if( event & ARM_I2C_EVENT_BUS_ERROR){
345 }
346 if( event & ARM_I2C_EVENT_BUS_CLEAR){
348 }
349}
volatile uint32_t Error_bad_operation
exploited to mark the errors
void I2C_0_SignalEvent_t(uint32_t event)
The I2C_0 interrupt function.
Definition: I2C_0.c:315
uint32_t evento_I2C
This is the variable which resembles the flags from the communication.
Definition: I2C_0.c:300

Definition at line 315 of file I2C_0.c.

Referenced by I2C_0_Initialize().