ao_i2c_4.h
I²C 4

Include

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

Configuration

AO_I2C_4

#define AO_I2C_4 (false)

Defines whether to use the module.

Functions

ao_i2c_baud_4

#define ao_i2c_baud_4(f)   \
(                          \
    ao_i2c_baud            \
    (                      \
        ao_i2c_reg_4(),    \
        AO_SYS_CLOCK_I2C4, \
        f                  \
    )                      \
)

Sets up the baud rate, in bits per second.

ao_i2c_reg_4

#define ao_i2c_reg_4()     \
(                          \
    (ao_i2c_reg_t *)       \
    (                      \
        _I2C4_BASE_ADDRESS \
    )                      \
)

Gets the control registers.