|
ptt-fhss
Bare-metal PTT firmware for nRF52840 with FHSS
|
Hardware register bitfield unions for nRF52840 peripherals. More...
#include <stdint.h>Go to the source code of this file.
Data Structures | |
| union | gpiote_config_t |
| GPIOTE CONFIG[n]: channel configuration register. More... | |
| union | gpiote_inten_t |
| GPIOTE INTENSET / INTENCLR: interrupt enable register. More... | |
| union | radio_frequency_t |
| RADIO FREQUENCY: RF channel selection register. More... | |
| union | radio_txpower_t |
| RADIO TXPOWER: transmit power register. More... | |
| union | radio_mode_t |
| RADIO MODE: data rate and modulation register. More... | |
| union | radio_pcnf0_t |
| RADIO PCNF0: packet configuration register 0 (header fields). More... | |
| union | radio_pcnf1_t |
| RADIO PCNF1: packet configuration register 1 (payload and address). More... | |
| union | radio_crccnf_t |
| RADIO CRCCNF: CRC configuration register. More... | |
| union | radio_shorts_t |
| RADIO SHORTS: hardware shortcut register. More... | |
| union | gpio_pin_cnf_t |
| GPIO PIN_CNF[n]: pin configuration register. More... | |
Macros | |
| #define | GPIOTE_MODE_DISABLED 0u |
| #define | GPIOTE_MODE_EVENT 1u |
| #define | GPIOTE_MODE_TASK 3u |
| #define | GPIOTE_POL_NONE 0u |
| #define | GPIOTE_POL_LOTOHI 1u |
| #define | GPIOTE_POL_HITOLO 2u |
| #define | GPIOTE_POL_TOGGLE 3u |
| #define | RADIO_MAP_DEFAULT 0u /* channel n -> 2400+n MHz */ |
| #define | RADIO_MAP_BLE 1u /* channel n -> 2360+n MHz */ |
| #define | RADIO_MODE_NRF_1MBIT 0u |
| #define | RADIO_MODE_NRF_2MBIT 1u |
| #define | RADIO_MODE_BLE_1MBIT 4u |
| #define | RADIO_CRCCNF_LEN_DISABLED 0u |
| #define | RADIO_CRCCNF_LEN_ONE 1u |
| #define | RADIO_CRCCNF_LEN_TWO 2u |
| #define | RADIO_CRCCNF_LEN_THREE 3u |
| #define | GPIO_PULL_DISABLED 0u |
| #define | GPIO_PULL_PULLDOWN 1u |
| #define | GPIO_PULL_PULLUP 3u |
Hardware register bitfield unions for nRF52840 peripherals.
Layout is guaranteed correct only with arm-none-eabi-gcc (LSB-first bitfields). Bit ranges match nRF52840 Product Specification v1.7.
| #define GPIO_PULL_DISABLED 0u |
| #define GPIO_PULL_PULLDOWN 1u |
| #define GPIO_PULL_PULLUP 3u |
| #define GPIOTE_MODE_DISABLED 0u |
| #define GPIOTE_MODE_EVENT 1u |
| #define GPIOTE_MODE_TASK 3u |
| #define GPIOTE_POL_HITOLO 2u |
| #define GPIOTE_POL_LOTOHI 1u |
| #define GPIOTE_POL_NONE 0u |
| #define GPIOTE_POL_TOGGLE 3u |
| #define RADIO_CRCCNF_LEN_DISABLED 0u |
| #define RADIO_CRCCNF_LEN_ONE 1u |
| #define RADIO_CRCCNF_LEN_THREE 3u |
| #define RADIO_CRCCNF_LEN_TWO 2u |
| #define RADIO_MAP_BLE 1u /* channel n -> 2360+n MHz */ |
| #define RADIO_MAP_DEFAULT 0u /* channel n -> 2400+n MHz */ |
| #define RADIO_MODE_BLE_1MBIT 4u |
| #define RADIO_MODE_NRF_1MBIT 0u |
| #define RADIO_MODE_NRF_2MBIT 1u |