Lines Matching refs:target_config
64 struct i2c_target_config *target_config; member
94 if (dev_data->target_config == NULL) { in shim_nrf_twis_enable()
121 struct i2c_target_config *target_config = dev_data->target_config; in shim_nrf_twis_handle_read_req() local
122 const struct i2c_target_callbacks *callbacks = target_config->callbacks; in shim_nrf_twis_handle_read_req()
128 if (callbacks->buf_read_requested(target_config, &buf, &buf_size)) { in shim_nrf_twis_handle_read_req()
164 struct i2c_target_config *target_config = dev_data->target_config; in shim_nrf_twis_handle_write_done() local
165 const struct i2c_target_callbacks *callbacks = target_config->callbacks; in shim_nrf_twis_handle_write_done()
168 callbacks->buf_write_received(target_config, dev_config->buf, nrfx_twis_rx_amount(twis)); in shim_nrf_twis_handle_write_done()
214 struct i2c_target_config *target_config) in shim_nrf_twis_target_register() argument
222 target_config->address, in shim_nrf_twis_target_register()
228 if (target_config->flags) { in shim_nrf_twis_target_register()
240 dev_data->target_config = target_config; in shim_nrf_twis_target_register()
250 struct i2c_target_config *target_config) in shim_nrf_twis_target_unregister() argument
254 if (dev_data->target_config != target_config) { in shim_nrf_twis_target_unregister()
259 dev_data->target_config = NULL; in shim_nrf_twis_target_unregister()