|
Zephyr Project API 4.5.0-rc2
A Scalable Open Source RTOS
|
Fake LoRa driver. More...
Files | |
| file | lora_fake.h |
| Fake LoRa driver API functions. | |
Fake LoRa driver.
@driver_fake{lora_interface,CONFIG_LORA_FAKE,zephyr\,fake-lora}
fake_lora_recv() is given a default custom_fake that initializes its output parameters with zero values, re-installed on every reset. When CONFIG_LORA_FAKE_OPTIONAL_API is enabled, fake_lora_rssi() and fake_lora_recv_duty_cycle() receive equivalent delegates. Install your own custom_fake in the test case to change what they report.
| DECLARE_FAKE_VALUE_FUNC | ( | int | , |
| fake_lora_cad | , | ||
| const struct device * | , | ||
| k_timeout_t | ) |
#include <lora_fake.h>
@fake_of{lora_driver_api::cad}
| DECLARE_FAKE_VALUE_FUNC | ( | int | , |
| fake_lora_cad_async | , | ||
| const struct device * | , | ||
| lora_cad_cb | , | ||
| void * | ) |
#include <lora_fake.h>
@fake_of{lora_driver_api::cad_async}
| DECLARE_FAKE_VALUE_FUNC | ( | int | , |
| fake_lora_config | , | ||
| const struct device * | , | ||
| const struct lora_modem_config * | ) |
#include <lora_fake.h>
@fake_of{lora_driver_api::config}
| DECLARE_FAKE_VALUE_FUNC | ( | int | , |
| fake_lora_recv | , | ||
| const struct device * | , | ||
| uint8_t * | , | ||
| uint8_t | , | ||
| k_timeout_t | , | ||
| int16_t * | , | ||
| int8_t * | ) |
#include <lora_fake.h>
@fake_of{lora_driver_api::recv}
| DECLARE_FAKE_VALUE_FUNC | ( | int | , |
| fake_lora_recv_async | , | ||
| const struct device * | , | ||
| lora_recv_cb | , | ||
| void * | ) |
#include <lora_fake.h>
@fake_of{lora_driver_api::recv_async}
| DECLARE_FAKE_VALUE_FUNC | ( | int | , |
| fake_lora_recv_duty_cycle | , | ||
| const struct device * | , | ||
| k_timeout_t | , | ||
| k_timeout_t | , | ||
| uint8_t * | , | ||
| uint8_t | , | ||
| k_timeout_t | , | ||
| int16_t * | , | ||
| int8_t * | ) |
#include <lora_fake.h>
@fake_of{lora_driver_api::recv_duty_cycle}
| DECLARE_FAKE_VALUE_FUNC | ( | int | , |
| fake_lora_recv_duty_cycle_async | , | ||
| const struct device * | , | ||
| k_timeout_t | , | ||
| k_timeout_t | , | ||
| lora_recv_cb | , | ||
| void * | ) |
#include <lora_fake.h>
@fake_of{lora_driver_api::recv_duty_cycle_async}
#include <lora_fake.h>
@fake_of{lora_driver_api::rssi}
#include <lora_fake.h>
@fake_of{lora_driver_api::send}
| DECLARE_FAKE_VALUE_FUNC | ( | int | , |
| fake_lora_send_async | , | ||
| const struct device * | , | ||
| uint8_t * | , | ||
| uint32_t | , | ||
| struct k_poll_signal * | ) |
#include <lora_fake.h>
@fake_of{lora_driver_api::send_async}
| DECLARE_FAKE_VALUE_FUNC | ( | int | , |
| fake_lora_test_cw | , | ||
| const struct device * | , | ||
| uint32_t | , | ||
| int8_t | , | ||
| uint16_t | ) |
#include <lora_fake.h>
@fake_of{lora_driver_api::test_cw}
#include <lora_fake.h>
@fake_of{lora_driver_api::airtime}