nrfxlib API 3.3.99
Loading...
Searching...
No Matches
nrf_modem_softsim.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
18#ifndef NRF_MODEM_SOFTSIM_H__
19#define NRF_MODEM_SOFTSIM_H__
20
21#include <stdint.h>
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
38
54typedef void (*nrf_modem_softsim_req_handler_t)(enum nrf_modem_softsim_cmd cmd, uint16_t req_id,
55 void *data, uint16_t data_len);
56
68
88int nrf_modem_softsim_res(enum nrf_modem_softsim_cmd cmd, uint16_t req_id, const void *data,
89 uint16_t data_len);
90
103int nrf_modem_softsim_err(enum nrf_modem_softsim_cmd cmd, uint16_t req_id);
104
111
112#ifdef __cplusplus
113}
114#endif
115
116#endif /* NRF_MODEM_SOFTSIM_H__ */
int nrf_modem_softsim_res(enum nrf_modem_softsim_cmd cmd, uint16_t req_id, const void *data, uint16_t data_len)
Sends a SoftSIM response to a request.
int nrf_modem_softsim_err(enum nrf_modem_softsim_cmd cmd, uint16_t req_id)
Sends a SoftSIM error to a request.
nrf_modem_softsim_cmd
SoftSIM request command type.
Definition nrf_modem_softsim.h:28
@ NRF_MODEM_SOFTSIM_APDU
Transport command, issued by the Modem to request data from the application.
Definition nrf_modem_softsim.h:32
@ NRF_MODEM_SOFTSIM_INIT
Initialization command.
Definition nrf_modem_softsim.h:30
@ NRF_MODEM_SOFTSIM_RESET
Reset command, issued by the Modem when a request becomes unresponsive.
Definition nrf_modem_softsim.h:36
@ NRF_MODEM_SOFTSIM_DEINIT
Deinitialization command.
Definition nrf_modem_softsim.h:34
void nrf_modem_softsim_data_free(void *data)
Free the data of a SoftSIM request.
void(* nrf_modem_softsim_req_handler_t)(enum nrf_modem_softsim_cmd cmd, uint16_t req_id, void *data, uint16_t data_len)
Handle a SoftSIM request.
Definition nrf_modem_softsim.h:54
int nrf_modem_softsim_req_handler_set(nrf_modem_softsim_req_handler_t handler)
Set a handler function for SoftSIM requests.