ao_i2c_3.h
I²C 3

Include

ao_i2c.h
ao_sys.h
stdbool.h
xc.h

Configuration

AO_I2C_3

#define AO_I2C_3 (false)

Defines whether to use the module.

Functions

ao_i2c_baud_3

#define ao_i2c_baud_3(f)   \
(                          \
    ao_i2c_baud            \
    (                      \
        ao_i2c_reg_3(),    \
        AO_SYS_CLOCK_I2C3, \
        f                  \
    )                      \
)

Sets up the baud rate, in bits per second.

ao_i2c_reg_3

#define ao_i2c_reg_3()     \
(                          \
    (ao_i2c_reg_t *)       \
    (                      \
        _I2C3_BASE_ADDRESS \
    )                      \
)

Gets the control registers.