Zephyr API Documentation 4.0.0-rc2
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
emul.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 A Labs GmbH
3 * Copyright (c) 2024 tado GmbH
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 */
7
8#ifndef ZEPHYR_INCLUDE_LORAWAN_EMUL_H_
9#define ZEPHYR_INCLUDE_LORAWAN_EMUL_H_
10
11#include <stdbool.h>
12#include <stdint.h>
13
15
23typedef void (*lorawan_uplink_cb_t)(uint8_t port, uint8_t len, const uint8_t *data);
24
35void lorawan_emul_send_downlink(uint8_t port, bool data_pending, int16_t rssi, int8_t snr,
36 uint8_t len, const uint8_t *data);
37
44
45#endif /* ZEPHYR_INCLUDE_LORAWAN_EMUL_H_ */
void lorawan_emul_register_uplink_callback(lorawan_uplink_cb_t cb)
Register callback for emulated uplink messages.
void lorawan_emul_send_downlink(uint8_t port, bool data_pending, int16_t rssi, int8_t snr, uint8_t len, const uint8_t *data)
Emulate LoRaWAN downlink message.
void(* lorawan_uplink_cb_t)(uint8_t port, uint8_t len, const uint8_t *data)
Defines the emulator uplink callback handler function signature.
Definition emul.h:23
Public LoRaWAN APIs.
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__INT8_TYPE__ int8_t
Definition stdint.h:72
__INT16_TYPE__ int16_t
Definition stdint.h:73