Home
last modified time | relevance | path

Searched refs:reg_ptr (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/tests/drivers/sensor/ina237/src/
Dina237_emul.c49 struct ina237_reg *reg_ptr = get_register(data_ptr, reg); in ina237_mock_set_register() local
51 if (reg_ptr == NULL) { in ina237_mock_set_register()
55 reg_ptr->value = value; in ina237_mock_set_register()
61 struct ina237_reg *reg_ptr = get_register(data_ptr, reg); in ina237_mock_get_register() local
63 if (reg_ptr == NULL || value_ptr == NULL) { in ina237_mock_get_register()
67 *value_ptr = reg_ptr->value; in ina237_mock_get_register()
98 struct ina237_reg *reg_ptr = get_register(data, reg); in ina237_emul_transfer_i2c() local
100 if (!reg_ptr) { in ina237_emul_transfer_i2c()
104 reg_ptr->value = val; in ina237_emul_transfer_i2c()
114 struct ina237_reg *reg_ptr = get_register(data, reg); in ina237_emul_transfer_i2c() local
[all …]
/Zephyr-latest/tests/drivers/sensor/ina230/src/
Dina230_emul.c54 struct ina230_reg *reg_ptr = get_register(data_ptr, reg); in ina230_mock_set_register() local
56 if (reg_ptr == NULL) { in ina230_mock_set_register()
60 reg_ptr->value = value; in ina230_mock_set_register()
72 struct ina230_reg *reg_ptr = get_register(data_ptr, reg); in ina230_mock_get_register() local
74 if (reg_ptr == NULL || value_ptr == NULL) { in ina230_mock_get_register()
78 *value_ptr = reg_ptr->value; in ina230_mock_get_register()
109 struct ina230_reg *reg_ptr = get_register(data, reg); in ina230_emul_transfer_i2c() local
111 if (!reg_ptr) { in ina230_emul_transfer_i2c()
115 reg_ptr->value = val; in ina230_emul_transfer_i2c()
125 struct ina230_reg *reg_ptr = get_register(data, reg); in ina230_emul_transfer_i2c() local
[all …]
/Zephyr-latest/include/zephyr/sensing/
Dsensing_sensor.h318 #define SENSING_SENSOR_DEFINE(node, prop, idx, reg_ptr, cb_list_ptr) \ argument
325 .register_info = reg_ptr, \
341 #define SENSING_SENSORS_DEFINE(node, reg_ptr, cb_list_ptr) \ argument
343 SENSING_SENSOR_DEFINE, reg_ptr, cb_list_ptr)
369 #define SENSING_SENSORS_DT_DEFINE(node, reg_ptr, cb_list_ptr, \ argument
379 SENSING_SENSORS_DEFINE(node, reg_ptr, cb_list_ptr);