int i2c_slave_event(struct i2c_client *client, enum i2c_slave_event event, u8 *val)
{ int ret = client->slave_cb(client, event, val);
if (trace_i2c_slave_enabled())
trace_i2c_slave(client, event, val, ret);
return ret;
}
EXPORT_SYMBOL_GPL(i2c_slave_event);
/** * i2c_detect_slave_mode - detect operation mode * @dev: The device owning the bus * * This checks the device nodes for an I2C slave by checking the address * used in the reg property. If the address match the I2C_OWN_SLAVE_ADDRESS * flag this means the device is configured to act as a I2C slave and it will * be listening at that address. * * Returns true if an I2C own slave address is detected, otherwise returns * false.
*/ bool i2c_detect_slave_mode(struct device *dev)
{ struct fwnode_handle *fwnode = dev_fwnode(dev);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.