nRF Connect SDK API
2.8.99
Loading...
Searching...
No Matches
backend.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 _BACKEND_H__
8
#define _BACKEND_H__
9
10
#include <
drivers/gpio/nrfe_gpio.h
>
11
12
#if !IS_ENABLED(CONFIG_GPIO_NRFE_EGPIO_BACKEND_ICMSG) && \
13
!IS_ENABLED(CONFIG_GPIO_NRFE_EGPIO_BACKEND_MBOX) && \
14
!IS_ENABLED(CONFIG_GPIO_NRFE_EGPIO_BACKEND_ICBMSG)
15
#error "Define communication backend type"
16
#endif
17
23
typedef
void (*
backend_callback_t
)(
nrfe_gpio_data_packet_t
*packet);
24
30
int
backend_init
(
backend_callback_t
callback);
31
32
33
#endif
/* BACKEND_H__ */
backend_init
int backend_init(backend_callback_t callback)
Initialize backend.
backend_callback_t
void(* backend_callback_t)(nrfe_gpio_data_packet_t *packet)
Callback function called by backend when new packet arrives.
Definition
backend.h:23
nrfe_gpio.h
nrfe_gpio_data_packet_t
eGPIO data packet.
Definition
nrfe_gpio.h:26
applications
sdp
gpio
src
backend
backend.h
Generated on Tue Nov 5 2024 16:02:08 for nRF Connect SDK API by
1.12.0