/Zephyr-latest/tests/drivers/i2c/i2c_emul/src/ |
D | emulated_target.cpp | 11 DEFINE_FAKE_VALUE_FUNC(int, target_read_requested_##n, struct i2c_target_config *, \ 13 DEFINE_FAKE_VALUE_FUNC(int, target_read_processed_##n, struct i2c_target_config *, \ 15 DEFINE_FAKE_VALUE_FUNC(int, target_write_requested_##n, struct i2c_target_config *); \ 16 DEFINE_FAKE_VALUE_FUNC(int, target_write_received_##n, struct i2c_target_config *, \ 18 DEFINE_FAKE_VALUE_FUNC(int, target_stop_##n, struct i2c_target_config *); \ 19 DEFINE_FAKE_VALUE_FUNC(int, target_buf_read_requested_##n, struct i2c_target_config *, \ 21 DEFINE_FAKE_VOID_FUNC(target_buf_write_received_##n, struct i2c_target_config *, \ 51 struct i2c_target_config emulated_target_config[FORWARD_COUNT] = {
|
D | test_forwarding_buf.cpp | 27 target_buf_write_received_0_fake.custom_fake = [&data](struct i2c_target_config *, in ZTEST() 51 target_buf_read_requested_0_fake.custom_fake = [&expected](struct i2c_target_config *, in ZTEST() argument 84 target_buf_read_requested_0_fake.custom_fake = [](struct i2c_target_config *, uint8_t **_, in ZTEST() 115 target_buf_write_received_0_fake.custom_fake = [&phase](struct i2c_target_config *, in ZTEST() 121 target_buf_read_requested_0_fake.custom_fake = [&phase](struct i2c_target_config *, in ZTEST() argument 131 target_stop_0_fake.custom_fake = [&phase](struct i2c_target_config *) -> int { in ZTEST() argument
|
D | test_forwarding_pio.cpp | 68 [expected_data](struct i2c_target_config *, uint8_t *out) -> int { in ZTEST() argument 73 [expected_data](struct i2c_target_config *, uint8_t *out) -> int { in ZTEST() argument 170 target_write_requested_0_fake.custom_fake = [&phase](struct i2c_target_config *) -> int { in ZTEST() argument 175 target_write_received_0_fake.custom_fake = [&phase](struct i2c_target_config *, in ZTEST() 181 target_read_requested_0_fake.custom_fake = [&phase](struct i2c_target_config *, in ZTEST() argument 187 target_read_processed_0_fake.custom_fake = [&phase](struct i2c_target_config *, in ZTEST() argument 193 target_stop_0_fake.custom_fake = [&phase](struct i2c_target_config *) -> int { in ZTEST() argument
|
/Zephyr-latest/tests/drivers/i2c/i2c_emul/include/ |
D | emulated_target.hpp | 23 extern struct i2c_target_config emulated_target_config[FORWARD_COUNT]; 27 DECLARE_FAKE_VALUE_FUNC(int, target_read_requested_##n, struct i2c_target_config *, \ 29 DECLARE_FAKE_VALUE_FUNC(int, target_read_processed_##n, struct i2c_target_config *, \ 31 DECLARE_FAKE_VALUE_FUNC(int, target_write_requested_##n, struct i2c_target_config *); \ 32 DECLARE_FAKE_VALUE_FUNC(int, target_write_received_##n, struct i2c_target_config *, \ 34 DECLARE_FAKE_VALUE_FUNC(int, target_stop_##n, struct i2c_target_config *); \ 35 DECLARE_FAKE_VALUE_FUNC(int, target_buf_read_requested_##n, struct i2c_target_config *, \ 37 DECLARE_FAKE_VOID_FUNC(target_buf_write_received_##n, struct i2c_target_config *, \
|
/Zephyr-latest/samples/drivers/i2c/custom_target/src/ |
D | main.c | 18 int sample_target_write_requested_cb(struct i2c_target_config *config) in sample_target_write_requested_cb() 29 int sample_target_write_received_cb(struct i2c_target_config *config, uint8_t val) in sample_target_write_received_cb() 41 int sample_target_read_requested_cb(struct i2c_target_config *config, uint8_t *val) in sample_target_read_requested_cb() 53 int sample_target_read_processed_cb(struct i2c_target_config *config, uint8_t *val) in sample_target_read_processed_cb() 64 int sample_target_stop_cb(struct i2c_target_config *config) in sample_target_stop_cb() 80 struct i2c_target_config target_cfg = { in main()
|
/Zephyr-latest/tests/drivers/i2c/i2c_target_api/common/ |
D | i2c_virtual.c | 27 static struct i2c_target_config *find_address(struct i2c_virtual_data *data, in find_address() 30 struct i2c_target_config *cfg = NULL; in find_address() 35 cfg = CONTAINER_OF(node, struct i2c_target_config, node); in find_address() 49 struct i2c_target_config *config) in i2c_virtual_target_register() 70 struct i2c_target_config *config) in i2c_virtual_target_unregister() 87 struct i2c_target_config *config, in i2c_virtual_msg_write() 121 struct i2c_target_config *config) in i2c_virtual_msg_read() 154 struct i2c_target_config *cfg; in i2c_virtual_transfer()
|
/Zephyr-latest/drivers/i2c/ |
D | i2c_ll_stm32.h | 81 struct i2c_target_config *slave_cfg; 83 struct i2c_target_config *slave2_cfg; 110 int i2c_stm32_target_register(const struct device *dev, struct i2c_target_config *config); 111 int i2c_stm32_target_unregister(const struct device *dev, struct i2c_target_config *config);
|
D | i2c_npcx_controller.h | 94 struct i2c_target_config *target_cfg, uint8_t port); 107 struct i2c_target_config *target_cfg);
|
D | i2c_nrfx_twis.c | 64 struct i2c_target_config *target_config; 121 struct i2c_target_config *target_config = dev_data->target_config; 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() 214 struct i2c_target_config *target_config) in shim_nrf_twis_target_register() 250 struct i2c_target_config *target_config) in shim_nrf_twis_target_unregister()
|
D | i2c_lpc11u6x.h | 89 struct i2c_target_config *slave;
|
D | i2c_npcx_port.c | 148 struct i2c_target_config *target_cfg) in i2c_npcx_target_register() 165 struct i2c_target_config *target_cfg) in i2c_npcx_target_unregister()
|
D | i2c_gecko.c | 43 struct i2c_target_config *target_cfg; 186 static int i2c_gecko_target_register(const struct device *dev, struct i2c_target_config *cfg) in i2c_gecko_target_register() 206 static int i2c_gecko_target_unregister(const struct device *dev, struct i2c_target_config *cfg) in i2c_gecko_target_unregister()
|
D | i2c_emul.c | 33 struct i2c_target_config *target_cfg; 272 static int i2c_emul_target_register(const struct device *dev, struct i2c_target_config *cfg) in i2c_emul_target_register() 280 static int i2c_emul_target_unregister(const struct device *dev, struct i2c_target_config *cfg) in i2c_emul_target_unregister()
|
D | i2c_bcm_iproc.c | 162 struct i2c_target_config *target_cfg; 231 struct i2c_target_config *target_config = dd->target_cfg; in iproc_i2c_target_init() 305 struct i2c_target_config *target_cfg = dd->target_cfg; in iproc_i2c_target_read() 372 struct i2c_target_config *target_cfg = dd->target_cfg; in iproc_i2c_target_isr() 458 struct i2c_target_config *target_config) in iproc_i2c_target_register() 482 static int iproc_i2c_target_unregister(const struct device *dev, struct i2c_target_config *config) in iproc_i2c_target_unregister()
|
D | i2c_ifx_xmc4.c | 61 struct i2c_target_config *p_target_config; 307 static int ifx_xmc4_i2c_target_register(const struct device *dev, struct i2c_target_config *cfg) in ifx_xmc4_i2c_target_register() 353 static int ifx_xmc4_i2c_target_unregister(const struct device *dev, struct i2c_target_config *cfg) in ifx_xmc4_i2c_target_unregister()
|
D | i2c_dw.h | 130 struct i2c_target_config *slave_cfg;
|
D | i2c_xilinx_axi.c | 35 struct i2c_target_config *target_cfg; 58 struct i2c_target_config *cfg) in i2c_xilinx_axi_target_setup() 67 static int i2c_xilinx_axi_target_register(const struct device *dev, struct i2c_target_config *cfg) in i2c_xilinx_axi_target_register() 98 static int i2c_xilinx_axi_target_unregister(const struct device *dev, struct i2c_target_config *cfg) in i2c_xilinx_axi_target_unregister()
|
D | i2c_ifx_cat1.c | 54 struct i2c_target_config *p_target_config; 445 static int ifx_cat1_i2c_target_register(const struct device *dev, struct i2c_target_config *cfg) in ifx_cat1_i2c_target_register() 476 static int ifx_cat1_i2c_target_unregister(const struct device *dev, struct i2c_target_config *cfg) in ifx_cat1_i2c_target_unregister()
|
D | i2c_mcux_flexcomm.c | 41 struct i2c_target_config *target_cfg; 375 struct i2c_target_config *target_config) in mcux_flexcomm_target_register() 415 struct i2c_target_config *target_config) in mcux_flexcomm_target_unregister()
|
D | i2c_mcux_lpi2c.c | 68 struct i2c_target_config *target_cfg; 411 struct i2c_target_config *target_config) in mcux_lpi2c_target_register() 460 struct i2c_target_config *target_config) in mcux_lpi2c_target_unregister()
|
D | i2c_numaker.c | 87 struct i2c_target_config *slave_config; 407 struct i2c_target_config *slave_config) in i2c_numaker_slave_register() 453 struct i2c_target_config *slave_config) in i2c_numaker_slave_unregister() 520 struct i2c_target_config *slave_config = data->slave_xfer.slave_config; in i2c_numaker_isr()
|
D | i2c_lpc11u6x.c | 119 struct i2c_target_config *cfg) in lpc11u6x_i2c_slave_register() 153 struct i2c_target_config *cfg) in lpc11u6x_i2c_slave_unregister()
|
/Zephyr-latest/samples/drivers/i2c/rtio_loopback/src/ |
D | main.c | 61 static int sample_target_write_requested(struct i2c_target_config *target_config) in sample_target_write_requested() 67 static int sample_target_read_requested(struct i2c_target_config *target_config, uint8_t *val) in sample_target_read_requested() 74 static int sample_target_write_received(struct i2c_target_config *target_config, uint8_t val) in sample_target_write_received() 85 static int sample_target_read_processed(struct i2c_target_config *target_config, uint8_t *val) in sample_target_read_processed() 97 static void sample_target_buf_write_received(struct i2c_target_config *target_config, in sample_target_buf_write_received() 105 static int sample_target_buf_read_requested(struct i2c_target_config *target_config, in sample_target_buf_read_requested() 114 static int sample_target_stop(struct i2c_target_config *config) in sample_target_stop() 130 static struct i2c_target_config sample_target_config = {
|
/Zephyr-latest/drivers/i2c/target/ |
D | eeprom_target.c | 21 struct i2c_target_config config; 82 static int eeprom_target_write_requested(struct i2c_target_config *config) in eeprom_target_write_requested() 95 static int eeprom_target_read_requested(struct i2c_target_config *config, in eeprom_target_read_requested() 111 static int eeprom_target_write_received(struct i2c_target_config *config, in eeprom_target_write_received() 141 static int eeprom_target_read_processed(struct i2c_target_config *config, in eeprom_target_read_processed() 162 static int eeprom_target_stop(struct i2c_target_config *config) in eeprom_target_stop() 176 static void eeprom_target_buf_write_received(struct i2c_target_config *config, in eeprom_target_buf_write_received() 197 static int eeprom_target_buf_read_requested(struct i2c_target_config *config, in eeprom_target_buf_read_requested()
|
/Zephyr-latest/include/zephyr/drivers/ |
D | i2c.h | 210 struct i2c_target_config; 221 struct i2c_target_config *cfg); 223 struct i2c_target_config *cfg); 290 struct i2c_target_config *config); 311 struct i2c_target_config *config, uint8_t val); 333 struct i2c_target_config *config, uint8_t *val); 355 struct i2c_target_config *config, uint8_t *val); 372 struct i2c_target_config *config, uint8_t *ptr, uint32_t len); 397 struct i2c_target_config *config, uint8_t **ptr, uint32_t *len); 414 typedef int (*i2c_target_stop_cb_t)(struct i2c_target_config *config); [all …]
|