Lines Matching full:slave
109 /* If a slave is registered, put the controller in slave mode */ in lpc11u6x_i2c_transfer()
110 if (data->slave) { in lpc11u6x_i2c_transfer()
134 if (data->slave) { in lpc11u6x_i2c_slave_register()
139 data->slave = cfg; in lpc11u6x_i2c_slave_register()
140 /* Configure controller to act as slave */ in lpc11u6x_i2c_slave_register()
161 if (data->slave != cfg) { in lpc11u6x_i2c_slave_unregister()
166 data->slave = NULL; in lpc11u6x_i2c_slave_unregister()
234 /* Slave States */ in lpc11u6x_i2c_isr()
239 if (data->slave->callbacks->write_requested(data->slave)) { in lpc11u6x_i2c_isr()
247 if (data->slave->callbacks->write_received(data->slave, val)) { in lpc11u6x_i2c_isr()
255 data->slave->callbacks->write_received(data->slave, val); in lpc11u6x_i2c_isr()
256 data->slave->callbacks->stop(data->slave); in lpc11u6x_i2c_isr()
261 data->slave->callbacks->stop(data->slave); in lpc11u6x_i2c_isr()
267 if (data->slave->callbacks->read_requested(data->slave, &val)) { in lpc11u6x_i2c_isr()
273 if (data->slave->callbacks->read_processed(data->slave, &val)) { in lpc11u6x_i2c_isr()
280 data->slave->callbacks->stop(data->slave); in lpc11u6x_i2c_isr()