Lines Matching full:node

84 	sys_snode_t snode;             /**< Node in the singly-linked list of connections. */
127 * This macro generates a name for a sensor info structure based on a node and an index.
129 * @param node The devicetree node identifier.
132 #define SENSING_SENSOR_INFO_NAME(node, idx) \ argument
133 _CONCAT(_CONCAT(__sensing_sensor_info_, idx), DEVICE_DT_NAME_GET(node))
138 * This macro defines a sensor info structure based on a node and an index.
142 * @param node The devicetree node identifier.
145 #define SENSING_SENSOR_INFO_DEFINE(node, idx) \ argument
147 SENSING_SENSOR_INFO_NAME(node, idx)) = { \
148 .type = DT_PROP_BY_IDX(node, sensor_types, idx), \
149 .name = DT_NODE_FULL_NAME(node), \
150 .friendly_name = DT_PROP(node, friendly_name), \
151 .vendor = DT_NODE_VENDOR_OR(node, NULL), \
152 .model = DT_NODE_MODEL_OR(node, NULL), \
153 .minimal_interval = DT_PROP(node, minimal_interval), \
159 * This macro generates a name for a connections array based on a node.
161 * @param node The devicetree node identifier.
163 #define SENSING_CONNECTIONS_NAME(node) \ argument
164 _CONCAT(__sensing_connections_, DEVICE_DT_NAME_GET(node))
169 * This macro generates a name for a sensor source based on an index and a node.
172 * @param node The devicetree node identifier.
174 #define SENSING_SENSOR_SOURCE_NAME(idx, node) \ argument
175 SENSING_SENSOR_NAME(DT_PHANDLE_BY_IDX(node, reporters, idx), \
176 DT_PROP_BY_IDX(node, reporters_index, idx))
181 * This macro declares an external sensor source based on an index and a node.
184 * @param node The devicetree node identifier.
186 #define SENSING_SENSOR_SOURCE_EXTERN(idx, node) \ argument
187 extern struct sensing_sensor SENSING_SENSOR_SOURCE_NAME(idx, node);
206 * This macro defines a connection based on an index, a node, and a callback list pointer.
209 * @param node The devicetree node identifier.
212 #define SENSING_CONNECTION_DEFINE(idx, node, cb_list_ptr) \ argument
213 SENSING_CONNECTION_INITIALIZER(SENSING_SENSOR_SOURCE_NAME(idx, node), \
219 * This macro defines an array of connections based on a node, a number, and a callback list
222 * @param node The devicetree node identifier.
226 #define SENSING_CONNECTIONS_DEFINE(node, num, cb_list_ptr) \ argument
228 (), node) \
230 SENSING_CONNECTIONS_NAME(node)[(num)] = { \
232 (,), node, cb_list_ptr) \
257 * This macro generates a name for a submit configuration based on a node and an index.
259 * @param node The devicetree node identifier.
262 #define SENSING_SUBMIT_CFG_NAME(node, idx) \ argument
263 _CONCAT(_CONCAT(__sensing_submit_cfg_, idx), DEVICE_DT_NAME_GET(node))
268 * This macro generates a name for a sensor I/O device based on a node and an index.
270 * @param node The devicetree node identifier.
273 #define SENSING_SENSOR_IODEV_NAME(node, idx) \ argument
274 _CONCAT(_CONCAT(__sensing_iodev_, idx), DEVICE_DT_NAME_GET(node))
279 * This macro defines a sensor I/O device based on a node and an index.
282 * @param node The devicetree node identifier.
285 #define SENSING_SENSOR_IODEV_DEFINE(node, idx) \ argument
286 static struct sensing_submit_config SENSING_SUBMIT_CFG_NAME(node, idx) = { \
287 .is_streaming = DT_PROP(node, stream_mode), \
290 RTIO_IODEV_DEFINE(SENSING_SENSOR_IODEV_NAME(node, idx), \
292 &SENSING_SUBMIT_CFG_NAME(node, idx));
297 * This macro generates a name for a sensor based on a node and an index.
299 * @param node The devicetree node identifier.
302 #define SENSING_SENSOR_NAME(node, idx) \ argument
303 _CONCAT(_CONCAT(__sensing_sensor_, idx), DEVICE_DT_NAME_GET(node))
308 * This macro defines a sensor based on a node, a property, an index, a register info pointer, and a
312 * @param node The devicetree node identifier.
318 #define SENSING_SENSOR_DEFINE(node, prop, idx, reg_ptr, cb_list_ptr) \ argument
319 SENSING_SENSOR_INFO_DEFINE(node, idx) \
320 SENSING_SENSOR_IODEV_DEFINE(node, idx) \
322 SENSING_SENSOR_NAME(node, idx)) = { \
323 .dev = DEVICE_DT_GET(node), \
324 .info = &SENSING_SENSOR_INFO_NAME(node, idx), \
326 .reporter_num = DT_PROP_LEN_OR(node, reporters, 0), \
327 .conns = SENSING_CONNECTIONS_NAME(node), \
328 .iodev = &SENSING_SENSOR_IODEV_NAME(node, idx), \
334 * This macro defines sensors based on a node, a register info pointer, and a callback list pointer.
337 * @param node The devicetree node identifier.
341 #define SENSING_SENSORS_DEFINE(node, reg_ptr, cb_list_ptr) \ argument
342 DT_FOREACH_PROP_ELEM_VARGS(node, sensor_types, \
354 * @param node The devicetree node identifier.
369 #define SENSING_SENSORS_DT_DEFINE(node, reg_ptr, cb_list_ptr, \ argument
373 SENSOR_DEVICE_DT_DEFINE(node, init_fn, pm_device, \
376 SENSING_CONNECTIONS_DEFINE(node, \
377 DT_PROP_LEN_OR(node, reporters, 0), \
379 SENSING_SENSORS_DEFINE(node, reg_ptr, cb_list_ptr);