4#include "tutti_gli_header.h"
301extern ARM_DRIVER_I2C Driver_I2C0;
302ARM_DRIVER_I2C * I2CBdrv = &Driver_I2C0;
318 if(event==ARM_I2C_EVENT_TRANSFER_DONE)
323 if( event & ARM_I2C_EVENT_TRANSFER_INCOMPLETE)
327 if(event==ARM_I2C_EVENT_SLAVE_TRANSMIT)
332 if(event==ARM_I2C_EVENT_SLAVE_RECEIVE)
337 if (event & ARM_I2C_EVENT_ADDRESS_NACK){
340 if (event & ARM_I2C_EVENT_ARBITRATION_LOST){
343 if( event & ARM_I2C_EVENT_BUS_ERROR){
346 if( event & ARM_I2C_EVENT_BUS_CLEAR){
372 I2CBdrv->PowerControl (ARM_POWER_FULL);
373 I2CBdrv->Control (ARM_I2C_BUS_SPEED, ARM_I2C_BUS_SPEED_STANDARD);
374 I2CBdrv->Control (ARM_I2C_BUS_CLEAR, 0);
volatile uint32_t Error_bad_operation
exploited to mark the errors
void I2C_0_SignalEvent_t(uint32_t event)
The I2C_0 interrupt function.
uint32_t evento_I2C
This is the variable which resembles the flags from the communication.
int8_t Status_Error_Codes_I2C
Macros.
void I2C_0_Initialize(void)
The I2C_0 initialize.