Mistake on this page?
Report an issue in GitHub or email us
Enumerations | Functions
Synchronous I2C Hardware Abstraction Layer for slave

Enumerations

Functions

i2c_slave_status_t i2c_slave_status (i2c_t *obj)
 Check to see if the I2C slave has been addressed. More...
 
void i2c_slave_address (i2c_t *obj, uint16_t address)
 Configure I2C address. More...
 

Detailed Description

Enumeration Type Documentation

Slave status.

Note
Default status is Idle.

Definition at line 457 of file i2c_api.h.

Function Documentation

void i2c_slave_address ( i2c_t obj,
uint16_t  address 
)

Configure I2C address.

Note
This function does nothing when configured in master mode.
Parameters
objThe I2C object
addressThe address to be set - 7 bit or 10 bit
i2c_slave_status_t i2c_slave_status ( i2c_t obj)

Check to see if the I2C slave has been addressed.

Parameters
objThe I2C object
Returns
The status - i2c_slave_status_t indicating what state the peripheral is configured in.
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.