|
nrf_to_nrf - NRF52 Radio Driver v1.2.2
TMRh20 2023 - OSI Layer 2 radio driver using RF24 API
|
#include <Arduino.h>Go to the source code of this file.
Classes | |
| class | nrf_to_nrf |
| Driver for the 2.4GHz radio in nRF52x and nRF54x chips, using the RF24 API. More... | |
Macros | |
| #define | NRF52_RADIO_LIBRARY |
| #define | DEFAULT_MAX_PAYLOAD_SIZE 32 |
| #define | ACTUAL_MAX_PAYLOAD_SIZE 258 |
| #define | ACK_TIMEOUT_1MBPS 600 |
| #define | ACK_TIMEOUT_2MBPS 400 |
| #define | ACK_TIMEOUT_250KBPS 800 |
| #define | ACK_TIMEOUT_1MBPS_OFFSET 300 |
| #define | ACK_TIMEOUT_2MBPS_OFFSET 135 |
| #define | ACK_TIMEOUT_250KBPS_OFFSET 300 |
| #define | ACK_PAYLOAD_TIMEOUT_OFFSET 750 |
| #define | CCM_ENCRYPTION_ENABLED |
| #define | MAX_PACKET_SIZE ACTUAL_MAX_PAYLOAD_SIZE |
| #define | CCM_KEY_SIZE 16 |
| #define | CCM_IV_SIZE 5 |
| #define | CCM_IV_SIZE_ACTUAL 8 |
| #define | CCM_COUNTER_SIZE 3 |
| #define | CCM_MIC_SIZE 4 |
| #define | CCM_START_SIZE 3 |
| #define | CCM_MODE_LENGTH_EXTENDED 16 |
Enumerations | |
| enum | nrf_pa_dbm_e { NRF_PA_MIN = 0 , NRF_PA_LOW , NRF_PA_HIGH , NRF_PA_MAX , NRF_PA_ERROR } |
| enum | nrf_datarate_e { NRF_1MBPS = 0 , NRF_2MBPS , NRF_250KBPS } |
| enum | nrf_crclength_e { NRF_CRC_DISABLED = 0 , NRF_CRC_8 , NRF_CRC_16 , NRF_CRC_24 } |
Class declaration for nrf52840_nrf24l01
Definition in file nrf_to_nrf.h.
| #define NRF52_RADIO_LIBRARY |
Definition at line 19 of file nrf_to_nrf.h.
| #define DEFAULT_MAX_PAYLOAD_SIZE 32 |
Definition at line 20 of file nrf_to_nrf.h.
| #define ACTUAL_MAX_PAYLOAD_SIZE 258 |
Definition at line 21 of file nrf_to_nrf.h.
| #define ACK_TIMEOUT_1MBPS 600 |
Definition at line 22 of file nrf_to_nrf.h.
| #define ACK_TIMEOUT_2MBPS 400 |
Definition at line 23 of file nrf_to_nrf.h.
| #define ACK_TIMEOUT_250KBPS 800 |
Definition at line 24 of file nrf_to_nrf.h.
| #define ACK_TIMEOUT_1MBPS_OFFSET 300 |
Definition at line 25 of file nrf_to_nrf.h.
| #define ACK_TIMEOUT_2MBPS_OFFSET 135 |
Definition at line 26 of file nrf_to_nrf.h.
| #define ACK_TIMEOUT_250KBPS_OFFSET 300 |
Definition at line 27 of file nrf_to_nrf.h.
| #define ACK_PAYLOAD_TIMEOUT_OFFSET 750 |
Definition at line 28 of file nrf_to_nrf.h.
| #define CCM_ENCRYPTION_ENABLED |
Definition at line 37 of file nrf_to_nrf.h.
| #define MAX_PACKET_SIZE ACTUAL_MAX_PAYLOAD_SIZE |
Definition at line 40 of file nrf_to_nrf.h.
| #define CCM_KEY_SIZE 16 |
Definition at line 41 of file nrf_to_nrf.h.
| #define CCM_IV_SIZE 5 |
Definition at line 42 of file nrf_to_nrf.h.
| #define CCM_IV_SIZE_ACTUAL 8 |
Definition at line 43 of file nrf_to_nrf.h.
| #define CCM_COUNTER_SIZE 3 |
Definition at line 44 of file nrf_to_nrf.h.
| #define CCM_MIC_SIZE 4 |
Definition at line 45 of file nrf_to_nrf.h.
| #define CCM_START_SIZE 3 |
Definition at line 46 of file nrf_to_nrf.h.
| #define CCM_MODE_LENGTH_EXTENDED 16 |
Definition at line 47 of file nrf_to_nrf.h.
| enum nrf_pa_dbm_e |
Power Amplifier (PA) levels. The output power depends on the chip:
| level (enum value) | nRF52840, nRF52833, nRF52820, nRF54L15 | nRF52832, nRF52811, nRF52810, nRF52805 |
|---|---|---|
| NRF_PA_MIN (0) | -12 dBm | -12 dBm |
| NRF_PA_LOW (1) | 2 dBm | -4 dBm |
| NRF_PA_HIGH (2) | 6 dBm | 0 dBm |
| NRF_PA_MAX (3) | 8 dBm | 4 dBm |
Definition at line 64 of file nrf_to_nrf.h.
| enum nrf_datarate_e |
How fast data moves through the air. Units are in bits per second (bps).
| Enumerator | |
|---|---|
| NRF_1MBPS | (0) represents 1 Mbps |
| NRF_2MBPS | (1) represents 2 Mbps |
| NRF_250KBPS | (2) represents 250 kbps. Nordic has deprecated this mode, and it might not work reliably on all devices. |
Definition at line 96 of file nrf_to_nrf.h.
| enum nrf_crclength_e |
The length of a CRC checksum that is used (if any). Cyclical Redundancy Checking (CRC) is commonly used to ensure data integrity.
Definition at line 124 of file nrf_to_nrf.h.