ao_i2c_1.h
I²C 1

Include

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

Configuration

AO_I2C_1

#define AO_I2C_1 (false)

Defines whether to use the module.

Functions

ao_i2c_baud_1

#define ao_i2c_baud_1(f)   \
(                          \
    ao_i2c_baud            \
    (                      \
        ao_i2c_reg_1(),    \
        AO_SYS_CLOCK_I2C1, \
        f                  \
    )                      \
)

Sets up the baud rate, in bits per second.

ao_i2c_reg_1

#define ao_i2c_reg_1()     \
(                          \
    (ao_i2c_reg_t *)       \
    (                      \
        _I2C1_BASE_ADDRESS \
    )                      \
)

Gets the control registers.