Zephyr API Documentation  3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
io-channels.h
Go to the documentation of this file.
1
6/*
7 * Copyright (c) 2020, Linaro Ltd.
8 *
9 * SPDX-License-Identifier: Apache-2.0
10 */
11
12#ifndef ZEPHYR_INCLUDE_DEVICETREE_IO_CHANNELS_H_
13#define ZEPHYR_INCLUDE_DEVICETREE_IO_CHANNELS_H_
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
50#define DT_IO_CHANNELS_CTLR_BY_IDX(node_id, idx) \
51 DT_PHANDLE_BY_IDX(node_id, io_channels, idx)
52
79#define DT_IO_CHANNELS_CTLR_BY_NAME(node_id, name) \
80 DT_PHANDLE_BY_NAME(node_id, io_channels, name)
81
89#define DT_IO_CHANNELS_CTLR(node_id) DT_IO_CHANNELS_CTLR_BY_IDX(node_id, 0)
90
100#define DT_INST_IO_CHANNELS_CTLR_BY_IDX(inst, idx) \
101 DT_IO_CHANNELS_CTLR_BY_IDX(DT_DRV_INST(inst), idx)
102
112#define DT_INST_IO_CHANNELS_CTLR_BY_NAME(inst, name) \
113 DT_IO_CHANNELS_CTLR_BY_NAME(DT_DRV_INST(inst), name)
114
122#define DT_INST_IO_CHANNELS_CTLR(inst) DT_INST_IO_CHANNELS_CTLR_BY_IDX(inst, 0)
123
161#define DT_IO_CHANNELS_INPUT_BY_IDX(node_id, idx) \
162 DT_PHA_BY_IDX(node_id, io_channels, idx, input)
163
203#define DT_IO_CHANNELS_INPUT_BY_NAME(node_id, name) \
204 DT_PHA_BY_NAME(node_id, io_channels, name, input)
211#define DT_IO_CHANNELS_INPUT(node_id) DT_IO_CHANNELS_INPUT_BY_IDX(node_id, 0)
212
221#define DT_INST_IO_CHANNELS_INPUT_BY_IDX(inst, idx) \
222 DT_IO_CHANNELS_INPUT_BY_IDX(DT_DRV_INST(inst), idx)
223
233#define DT_INST_IO_CHANNELS_INPUT_BY_NAME(inst, name) \
234 DT_IO_CHANNELS_INPUT_BY_NAME(DT_DRV_INST(inst), name)
235
241#define DT_INST_IO_CHANNELS_INPUT(inst) DT_INST_IO_CHANNELS_INPUT_BY_IDX(inst, 0)
242
247#ifdef __cplusplus
248}
249#endif
250
251#endif /* ZEPHYR_INCLUDE_DEVICETREE_IO_CHANNELS_H_ */