Lines Matching refs:target
31 void akm09918c_emul_set_reg(const struct emul *target, uint8_t reg_addr, const uint8_t *val, in akm09918c_emul_set_reg() argument
34 struct akm09918c_emul_data *data = target->data; in akm09918c_emul_set_reg()
40 void akm09918c_emul_get_reg(const struct emul *target, uint8_t reg_addr, uint8_t *val, size_t count) in akm09918c_emul_get_reg() argument
42 struct akm09918c_emul_data *data = target->data; in akm09918c_emul_get_reg()
48 void akm09918c_emul_reset(const struct emul *target) in akm09918c_emul_reset() argument
50 struct akm09918c_emul_data *data = target->data; in akm09918c_emul_reset()
57 static int akm09918c_emul_handle_write(const struct emul *target, uint8_t regn, uint8_t value) in akm09918c_emul_handle_write() argument
59 struct akm09918c_emul_data *data = target->data; in akm09918c_emul_handle_write()
67 akm09918c_emul_reset(target); in akm09918c_emul_handle_write()
74 static int akm09918c_emul_transfer_i2c(const struct emul *target, struct i2c_msg *msgs, in akm09918c_emul_transfer_i2c() argument
77 struct akm09918c_emul_data *data = target->data; in akm09918c_emul_transfer_i2c()
79 i2c_dump_msgs_rw(target->dev, msgs, num_msgs, addr, false); in akm09918c_emul_transfer_i2c()
118 int rc = akm09918c_emul_handle_write(target, regn, msgs->buf[1]); in akm09918c_emul_transfer_i2c()
128 static int akm09918c_emul_init(const struct emul *target, const struct device *parent) in akm09918c_emul_init() argument
131 akm09918c_emul_reset(target); in akm09918c_emul_init()
136 static int akm09918c_emul_backend_set_channel(const struct emul *target, struct sensor_chan_spec ch, in akm09918c_emul_backend_set_channel() argument
139 if (!target || !target->data) { in akm09918c_emul_backend_set_channel()
143 struct akm09918c_emul_data *data = target->data; in akm09918c_emul_backend_set_channel()
180 static int akm09918c_emul_backend_get_sample_range(const struct emul *target, in akm09918c_emul_backend_get_sample_range() argument
184 ARG_UNUSED(target); in akm09918c_emul_backend_get_sample_range()