nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
port_state.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef _PORT_STATE_H_
8#define _PORT_STATE_H_
9
10#include <stddef.h>
11#include <stdint.h>
12
13#include <zephyr/device.h>
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19struct pin_state {
20 uint32_t pin;
21 uint32_t val;
22};
23
24struct port_state {
25 const struct device *port;
26 const struct pin_state *ps;
27 size_t ps_count;
28};
29
30#ifdef __cplusplus
31}
32#endif
33
34#endif /* _PORT_STATE_H_ */
uint32_t val
Definition: port_state.h:21
uint32_t pin
Definition: port_state.h:20
Definition: port_state.h:19
size_t ps_count
Definition: port_state.h:27
const struct device * port
Definition: port_state.h:25
const struct pin_state * ps
Definition: port_state.h:26
Definition: port_state.h:24