Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
counter-capture.h
Go to the documentation of this file.
1
5
6/*
7 * Copyright (c) 2026 Meta Platforms
8 *
9 * SPDX-License-Identifier: Apache-2.0
10 */
11
12#ifndef ZEPHYR_INCLUDE_DEVICETREE_COUNTER_CAPTURE_H_
13#define ZEPHYR_INCLUDE_DEVICETREE_COUNTER_CAPTURE_H_
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
25
56#define DT_COUNTER_CAPTURES_CTLR_BY_IDX(node_id, counter_capture_pha, idx) \
57 DT_PHANDLE_BY_IDX(node_id, counter_capture_pha, idx)
58
90#define DT_COUNTER_CAPTURES_CTLR_BY_NAME(node_id, counter_capture_pha, name) \
91 DT_PHANDLE_BY_NAME(node_id, counter_capture_pha, name)
92
102#define DT_COUNTER_CAPTURES_CTLR(node_id, counter_capture_pha) \
103 DT_COUNTER_CAPTURES_CTLR_BY_IDX(node_id, counter_capture_pha, 0)
104
148#define DT_COUNTER_CAPTURES_CELL_BY_IDX(node_id, counter_capture_pha, idx, cell) \
149 DT_PHA_BY_IDX(node_id, counter_capture_pha, idx, cell)
150
196#define DT_COUNTER_CAPTURES_CELL_BY_NAME(node_id, counter_capture_pha, name, cell) \
197 DT_PHA_BY_NAME(node_id, counter_capture_pha, name, cell)
198
209#define DT_COUNTER_CAPTURES_CELL(node_id, counter_capture_pha, cell) \
210 DT_COUNTER_CAPTURES_CELL_BY_IDX(node_id, counter_capture_pha, 0, cell)
211
229#define DT_COUNTER_CAPTURES_CHANNEL_BY_IDX(node_id, counter_capture_pha, idx) \
230 DT_COUNTER_CAPTURES_CELL_BY_IDX(node_id, counter_capture_pha, idx, channel)
231
250#define DT_COUNTER_CAPTURES_CHANNEL_BY_NAME(node_id, counter_capture_pha, name) \
251 DT_COUNTER_CAPTURES_CELL_BY_NAME(node_id, counter_capture_pha, name, channel)
252
261#define DT_COUNTER_CAPTURES_CHANNEL(node_id, counter_capture_pha) \
262 DT_COUNTER_CAPTURES_CHANNEL_BY_IDX(node_id, counter_capture_pha, 0)
263
282#define DT_COUNTER_CAPTURES_FLAGS_BY_IDX(node_id, counter_capture_pha, idx) \
283 DT_PHA_BY_IDX_OR(node_id, counter_capture_pha, idx, flags, 0)
284
307#define DT_COUNTER_CAPTURES_FLAGS_BY_NAME(node_id, counter_capture_pha, name) \
308 DT_PHA_BY_NAME_OR(node_id, counter_capture_pha, name, flags, 0)
309
319#define DT_COUNTER_CAPTURES_FLAGS(node_id, counter_capture_pha) \
320 DT_COUNTER_CAPTURES_FLAGS_BY_IDX(node_id, counter_capture_pha, 0)
321
332#define DT_INST_COUNTER_CAPTURES_CTLR_BY_IDX(inst, counter_capture_pha, idx) \
333 DT_COUNTER_CAPTURES_CTLR_BY_IDX(DT_DRV_INST(inst), counter_capture_pha, idx)
334
344#define DT_INST_COUNTER_CAPTURES_CTLR_BY_NAME(inst, counter_capture_pha, name) \
345 DT_COUNTER_CAPTURES_CTLR_BY_NAME(DT_DRV_INST(inst), counter_capture_pha, name)
346
354#define DT_INST_COUNTER_CAPTURES_CTLR(inst, counter_capture_pha) \
355 DT_INST_COUNTER_CAPTURES_CTLR_BY_IDX(inst, counter_capture_pha, 0)
356
365#define DT_INST_COUNTER_CAPTURES_CELL_BY_IDX(inst, counter_capture_pha, idx, cell) \
366 DT_COUNTER_CAPTURES_CELL_BY_IDX(DT_DRV_INST(inst), counter_capture_pha, idx, cell)
367
378#define DT_INST_COUNTER_CAPTURES_CELL_BY_NAME(inst, counter_capture_pha, name, cell) \
379 DT_COUNTER_CAPTURES_CELL_BY_NAME(DT_DRV_INST(inst), counter_capture_pha, name, cell)
380
387#define DT_INST_COUNTER_CAPTURES_CELL(inst, counter_capture_pha, cell) \
388 DT_INST_COUNTER_CAPTURES_CELL_BY_IDX(inst, counter_capture_pha, 0, cell)
389
398#define DT_INST_COUNTER_CAPTURES_CHANNEL_BY_IDX(inst, counter_capture_pha, idx) \
399 DT_INST_COUNTER_CAPTURES_CELL_BY_IDX(inst, counter_capture_pha, idx, channel)
400
410#define DT_INST_COUNTER_CAPTURES_CHANNEL_BY_NAME(inst, counter_capture_pha, name) \
411 DT_INST_COUNTER_CAPTURES_CELL_BY_NAME(inst, counter_capture_pha, name, channel)
412
419#define DT_INST_COUNTER_CAPTURES_CHANNEL(inst, counter_capture_pha) \
420 DT_INST_COUNTER_CAPTURES_CHANNEL_BY_IDX(inst, counter_capture_pha, 0)
421
429#define DT_INST_COUNTER_CAPTURES_FLAGS_BY_IDX(inst, counter_capture_pha, idx) \
430 DT_INST_COUNTER_CAPTURES_CELL_BY_IDX(inst, counter_capture_pha, idx, flags)
431
442#define DT_INST_COUNTER_CAPTURES_FLAGS_BY_NAME(inst, counter_capture_pha, name) \
443 DT_INST_COUNTER_CAPTURES_CELL_BY_NAME(inst, counter_capture_pha, name, flags)
444
451#define DT_INST_COUNTER_CAPTURES_FLAGS(inst, counter_capture_pha) \
452 DT_INST_COUNTER_CAPTURES_FLAGS_BY_IDX(inst, counter_capture_pha, 0)
453
457
458#ifdef __cplusplus
459}
460#endif
461
462#endif /* ZEPHYR_INCLUDE_DEVICETREE_COUNTER_CAPTURE_H_ */