Module nrf52::radio
[−]
[src]
Radio driver, Bluetooth Low Energy, NRF52
The generic radio configuration i.e., not specific to Bluetooth are functions and similar which
do not start with ble. Moreover, Bluetooth Low Energy specific radio configuration
starts with ble
For more readability the Bluetooth specific configuration may be moved to separate trait
Author
- Niklas Adolfsson niklasadolfsson1@gmail.com
- Date: July 18, 2017
Packet Configuration
+----------+------+--------+----+--------+----+---------+-----+ | Preamble | Base | Prefix | S0 | Length | S1 | Payload | CRC | +----------+------+--------+----+--------+----+---------+-----+
Premable - 1 byte
Base and prefix forms together the access address
S0, an optional parameter that is configured to indicate how many bytes of the payload is the PDU Type. Configured as 1 byte!
Length, an optional parameter that is configured to indicate how many bits of the payload is the length field. Configured as 8 bits!
S1, Not used
Payload - 2 to 255 bytes
CRC - 3 bytes
Reexports
use core::cell::Cell; |
use core::convert::TryFrom; |
use kernel; |
use kernel::ReturnCode; |
use nrf5x; |
use nrf5x::ble_advertising_hil::RadioChannel; |
use nrf5x::constants::TxPower; |
use peripheral_registers; |
Structs
| Radio |
Constants
| NRF52_RADIO_PCNF0_PLEN_8BITS | |
| NRF52_RADIO_PCNF0_PLEN_POS | |
| NRF52_RADIO_PCNF0_S1INCL_MSK | |
| NRF52_RADIO_PCNFO_S1INCL_POS |
Statics
| PAYLOAD | |
| RADIO |