nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
nrfe_gpio.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef NRFE_GPIO_H
8#define NRFE_GPIO_H
9
10#include <drivers/nrfx_common.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
17typedef enum {
18 NRFE_GPIO_PIN_CONFIGURE = 0, /* Configure eGPIO pin. */
19 NRFE_GPIO_PIN_CLEAR = 1, /* Clear eGPIO pin. */
20 NRFE_GPIO_PIN_SET = 2, /* Set eGPIO pin. */
21 NRFE_GPIO_PIN_TOGGLE = 3, /* Toggle eGPIO pin. */
23
25typedef struct __packed {
26 uint8_t opcode; /* eGPIO opcode. */
27 uint32_t pin; /* Pin number when opcode is NRFE_GPIO_PIN_CONFIGURE, pin mask for others. */
28 uint8_t port; /* Port number. */
29 uint32_t flags; /* Configuration flags when opcode
30 * is NRFE_GPIO_PIN_CONFIGURE (gpio_flags_t).
31 * Not used in other cases.
32 */
34
35#ifdef __cplusplus
36}
37#endif
38
39#endif /* NRFE_GPIO_H */
nrfe_gpio_opcode_t
eGPIO opcodes.
Definition: nrfe_gpio.h:17
@ NRFE_GPIO_PIN_CLEAR
Definition: nrfe_gpio.h:19
@ NRFE_GPIO_PIN_CONFIGURE
Definition: nrfe_gpio.h:18
@ NRFE_GPIO_PIN_TOGGLE
Definition: nrfe_gpio.h:21
@ NRFE_GPIO_PIN_SET
Definition: nrfe_gpio.h:20
uint8_t opcode
Definition: nrfe_gpio.h:26
uint8_t port
Definition: nrfe_gpio.h:28
uint32_t flags
Definition: nrfe_gpio.h:29
uint32_t pin
Definition: nrfe_gpio.h:27
eGPIO data packet.
Definition: nrfe_gpio.h:25