Zephyr API Documentation 4.5.0-rc1
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
13
14#ifndef ZEPHYR_INCLUDE_LORAWAN_EMUL_H_
15#define ZEPHYR_INCLUDE_LORAWAN_EMUL_H_
16
17#include <stdbool.h>
18#include <stdint.h>
19
21
29typedef void (*lorawan_uplink_cb_t)(uint8_t port, uint8_t len, const uint8_t *data);
30
41void lorawan_emul_send_downlink(uint8_t port, bool data_pending, int16_t rssi, int8_t snr,
42 uint8_t len, const uint8_t *data);
43
50
51#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:29
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