nRF Connect SDK API 2.8.99
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#include <sdp/nrfe_common.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
18typedef enum {
19 NRFE_GPIO_PIN_CONFIGURE = 0, /* Configure eGPIO pin. */
20 NRFE_GPIO_PIN_CLEAR = 1, /* Clear eGPIO pin. */
21 NRFE_GPIO_PIN_SET = 2, /* Set eGPIO pin. */
22 NRFE_GPIO_PIN_TOGGLE = 3, /* Toggle eGPIO pin. */
24
26typedef struct __packed {
27 uint8_t opcode; /* eGPIO opcode. */
28 uint32_t pin; /* Pin number when opcode is NRFE_GPIO_PIN_CONFIGURE, pin mask for others. */
29 uint8_t port; /* Port number. */
30 uint32_t flags; /* Configuration flags when opcode
31 * is NRFE_GPIO_PIN_CONFIGURE (gpio_flags_t).
32 * Not used in other cases.
33 */
35
40
41#ifdef __cplusplus
42}
43#endif
44
45#endif /* NRFE_GPIO_H */
nrfe_gpio_opcode_t
eGPIO opcodes.
Definition nrfe_gpio.h:18
@ NRFE_GPIO_PIN_CLEAR
Definition nrfe_gpio.h:20
@ NRFE_GPIO_PIN_CONFIGURE
Definition nrfe_gpio.h:19
@ NRFE_GPIO_PIN_TOGGLE
Definition nrfe_gpio.h:22
@ NRFE_GPIO_PIN_SET
Definition nrfe_gpio.h:21
uint8_t opcode
Definition nrfe_gpio.h:27
uint8_t port
Definition nrfe_gpio.h:29
uint32_t flags
Definition nrfe_gpio.h:30
uint32_t pin
Definition nrfe_gpio.h:28
eGPIO data packet.
Definition nrfe_gpio.h:26
nrfe_gpio_data_packet_t data
Definition nrfe_gpio.h:38
Definition nrfe_gpio.h:36
Definition nrfe_common.h:23