Jump to main content

##

# 2.112.36 I2C_ERROR Enum

## C

    /* I2C master mode */

    typedef enum
    {
        /* No Error */
        I2C_ERROR_NONE,

        /* Slave returned Nack */
        I2C_ERROR_NACK,

        /* Bus Collision Error */
        I2C_ERROR_BUS_COLLISION,

        /* Bus Arbitration lost Error */
        I2C_ERROR_ARBITRATION_LOST,

    } I2C_ERROR;

## Summary

Defines the possible errors that the I2C peripheral can generate in I2C master mode.

## Description

This enum defines the possible errors the I2C peripheral can generate when it is configured in master mode. An error of this type is returned by the I2CSMBx_ErrorGet() function.

## Remarks

None