Lines Matching full:slave
131 /* If a slave is registered, put the controller in slave mode */ in lpc11u6x_i2c_transfer()
132 if (data->slave) { in lpc11u6x_i2c_transfer()
156 if (data->slave) { in lpc11u6x_i2c_slave_register()
161 data->slave = cfg; in lpc11u6x_i2c_slave_register()
162 /* Configure controller to act as slave */ in lpc11u6x_i2c_slave_register()
183 if (data->slave != cfg) { in lpc11u6x_i2c_slave_unregister()
188 data->slave = NULL; in lpc11u6x_i2c_slave_unregister()
256 /* Slave States */ in lpc11u6x_i2c_isr()
261 if (data->slave->callbacks->write_requested(data->slave)) { in lpc11u6x_i2c_isr()
269 if (data->slave->callbacks->write_received(data->slave, val)) { in lpc11u6x_i2c_isr()
277 data->slave->callbacks->write_received(data->slave, val); in lpc11u6x_i2c_isr()
278 data->slave->callbacks->stop(data->slave); in lpc11u6x_i2c_isr()
283 data->slave->callbacks->stop(data->slave); in lpc11u6x_i2c_isr()
289 if (data->slave->callbacks->read_requested(data->slave, &val)) { in lpc11u6x_i2c_isr()
295 if (data->slave->callbacks->read_processed(data->slave, &val)) { in lpc11u6x_i2c_isr()
302 data->slave->callbacks->stop(data->slave); in lpc11u6x_i2c_isr()