embassy-nrf

Crates

git

Versions

nrf54l05-app-s

Flavors

Radio

Struct Radio 

Source
pub struct Radio { /* private fields */ }
Expand description

2.4 GHz radio 0.

Implementations§

Source§

impl Radio

Source

pub const unsafe fn from_ptr(ptr: *mut ()) -> Radio

Source

pub const fn as_ptr(&self) -> *mut ()

Source

pub const fn tasks_txen(self) -> Reg<u32, W>

Enable RADIO in TX mode.

Source

pub const fn tasks_rxen(self) -> Reg<u32, W>

Enable RADIO in RX mode.

Source

pub const fn tasks_start(self) -> Reg<u32, W>

Start RADIO.

Source

pub const fn tasks_stop(self) -> Reg<u32, W>

Stop RADIO.

Source

pub const fn tasks_disable(self) -> Reg<u32, W>

Disable RADIO.

Source

pub const fn tasks_rssistart(self) -> Reg<u32, W>

Start the RSSI and take one single sample of the receive signal strength.

Source

pub const fn tasks_bcstart(self) -> Reg<u32, W>

Start the bit counter.

Source

pub const fn tasks_bcstop(self) -> Reg<u32, W>

Stop the bit counter.

Source

pub const fn tasks_edstart(self) -> Reg<u32, W>

Start the energy detect measurement used in IEEE 802.15.4 mode.

Source

pub const fn tasks_edstop(self) -> Reg<u32, W>

Stop the energy detect measurement.

Source

pub const fn tasks_ccastart(self) -> Reg<u32, W>

Start the clear channel assessment used in IEEE 802.15.4 mode.

Source

pub const fn tasks_ccastop(self) -> Reg<u32, W>

Stop the clear channel assessment.

Source

pub const fn tasks_auxdatadmastart(self) -> Reg<u32, W>

Start DMA transaction of acquisition.

Source

pub const fn tasks_auxdatadmastop(self) -> Reg<u32, W>

Stop ongoing DMA transaction of acquisition.

Source

pub const fn tasks_pllen(self) -> Reg<u32, W>

Enable RADIO in PLL mode (standby for either TX or RX).

Source

pub const fn tasks_cstonesstart(self) -> Reg<u32, W>

Start tone processing for channel sounding.

Source

pub const fn tasks_softreset(self) -> Reg<u32, W>

Reset all public registers, but with these exceptions: DMA registers and EVENT/INTEN/SUBSCRIBE/PUBLISH registers. Only to be used in DISABLED state.

Source

pub const fn subscribe_txen(self) -> Reg<Subscribe, RW>

Subscribe configuration for task TXEN.

Source

pub const fn subscribe_rxen(self) -> Reg<Subscribe, RW>

Subscribe configuration for task RXEN.

Source

pub const fn subscribe_start(self) -> Reg<Subscribe, RW>

Subscribe configuration for task START.

Source

pub const fn subscribe_stop(self) -> Reg<Subscribe, RW>

Subscribe configuration for task STOP.

Source

pub const fn subscribe_disable(self) -> Reg<Subscribe, RW>

Subscribe configuration for task DISABLE.

Source

pub const fn subscribe_rssistart(self) -> Reg<Subscribe, RW>

Subscribe configuration for task RSSISTART.

Source

pub const fn subscribe_bcstart(self) -> Reg<Subscribe, RW>

Subscribe configuration for task BCSTART.

Source

pub const fn subscribe_bcstop(self) -> Reg<Subscribe, RW>

Subscribe configuration for task BCSTOP.

Source

pub const fn subscribe_edstart(self) -> Reg<Subscribe, RW>

Subscribe configuration for task EDSTART.

Source

pub const fn subscribe_edstop(self) -> Reg<Subscribe, RW>

Subscribe configuration for task EDSTOP.

Source

pub const fn subscribe_ccastart(self) -> Reg<Subscribe, RW>

Subscribe configuration for task CCASTART.

Source

pub const fn subscribe_ccastop(self) -> Reg<Subscribe, RW>

Subscribe configuration for task CCASTOP.

Source

pub const fn subscribe_auxdatadmastart(self) -> Reg<Subscribe, RW>

Subscribe configuration for task AUXDATADMASTART.

Source

pub const fn subscribe_auxdatadmastop(self) -> Reg<Subscribe, RW>

Subscribe configuration for task AUXDATADMASTOP.

Source

pub const fn subscribe_pllen(self) -> Reg<Subscribe, RW>

Subscribe configuration for task PLLEN.

Source

pub const fn subscribe_cstonesstart(self) -> Reg<Subscribe, RW>

Subscribe configuration for task CSTONESSTART.

Source

pub const fn subscribe_softreset(self) -> Reg<Subscribe, RW>

Subscribe configuration for task SOFTRESET.

Source

pub const fn events_ready(self) -> Reg<u32, RW>

RADIO has ramped up and is ready to be started.

Source

pub const fn events_txready(self) -> Reg<u32, RW>

RADIO has ramped up and is ready to be started TX path.

Source

pub const fn events_rxready(self) -> Reg<u32, RW>

RADIO has ramped up and is ready to be started RX path.

Source

pub const fn events_address(self) -> Reg<u32, RW>

Address sent or received.

Source

pub const fn events_framestart(self) -> Reg<u32, RW>

IEEE 802.15.4 length field received.

Source

pub const fn events_payload(self) -> Reg<u32, RW>

Packet payload sent or received.

Source

pub const fn events_end(self) -> Reg<u32, RW>

Memory access for packet data has been completed.

Source

pub const fn events_phyend(self) -> Reg<u32, RW>

The last bit is sent on air or last bit is received.

Source

pub const fn events_disabled(self) -> Reg<u32, RW>

RADIO has been disabled.

Source

pub const fn events_devmatch(self) -> Reg<u32, RW>

A device address match occurred on the last received packet.

Source

pub const fn events_devmiss(self) -> Reg<u32, RW>

No device address match occurred on the last received packet.

Source

pub const fn events_crcok(self) -> Reg<u32, RW>

Packet received with CRC ok.

Source

pub const fn events_crcerror(self) -> Reg<u32, RW>

Packet received with CRC error.

Source

pub const fn events_bcmatch(self) -> Reg<u32, RW>

Bit counter reached bit count value.

Source

pub const fn events_edend(self) -> Reg<u32, RW>

Sampling of energy detection complete (a new ED sample is ready for readout from the RADIO.EDSAMPLE register).

Source

pub const fn events_edstopped(self) -> Reg<u32, RW>

The sampling of energy detection has stopped.

Source

pub const fn events_ccaidle(self) -> Reg<u32, RW>

Wireless medium in idle - clear to send.

Source

pub const fn events_ccabusy(self) -> Reg<u32, RW>

Wireless medium busy - do not send.

Source

pub const fn events_ccastopped(self) -> Reg<u32, RW>

The CCA has stopped.

Source

pub const fn events_rateboost(self) -> Reg<u32, RW>

Ble_LR CI field received, receive mode is changed from Ble_LR125Kbit to Ble_LR500Kbit.

Source

pub const fn events_mhrmatch(self) -> Reg<u32, RW>

MAC header match found.

Source

pub const fn events_sync(self) -> Reg<u32, RW>

Initial sync detected.

Source

pub const fn events_ctepresent(self) -> Reg<u32, RW>

CTEInfo byte is received.

Source

pub const fn events_pllready(self) -> Reg<u32, RW>

PLL has settled and RADIO is ready to be enabled in either TX or RX mode.

Source

pub const fn events_rxaddress(self) -> Reg<u32, RW>

Address received.

Source

pub const fn events_auxdatadmaend(self) -> Reg<u32, RW>

AUXDATA DMA end.

Source

pub const fn events_cstonesend(self) -> Reg<u32, RW>

The channel sounding tone processing is complete.

Source

pub const fn publish_ready(self) -> Reg<Publish, RW>

Publish configuration for event READY.

Source

pub const fn publish_txready(self) -> Reg<Publish, RW>

Publish configuration for event TXREADY.

Source

pub const fn publish_rxready(self) -> Reg<Publish, RW>

Publish configuration for event RXREADY.

Source

pub const fn publish_address(self) -> Reg<Publish, RW>

Publish configuration for event ADDRESS.

Source

pub const fn publish_framestart(self) -> Reg<Publish, RW>

Publish configuration for event FRAMESTART.

Source

pub const fn publish_payload(self) -> Reg<Publish, RW>

Publish configuration for event PAYLOAD.

Source

pub const fn publish_end(self) -> Reg<Publish, RW>

Publish configuration for event END.

Source

pub const fn publish_phyend(self) -> Reg<Publish, RW>

Publish configuration for event PHYEND.

Source

pub const fn publish_disabled(self) -> Reg<Publish, RW>

Publish configuration for event DISABLED.

Source

pub const fn publish_devmatch(self) -> Reg<Publish, RW>

Publish configuration for event DEVMATCH.

Source

pub const fn publish_devmiss(self) -> Reg<Publish, RW>

Publish configuration for event DEVMISS.

Source

pub const fn publish_crcok(self) -> Reg<Publish, RW>

Publish configuration for event CRCOK.

Source

pub const fn publish_crcerror(self) -> Reg<Publish, RW>

Publish configuration for event CRCERROR.

Source

pub const fn publish_bcmatch(self) -> Reg<Publish, RW>

Publish configuration for event BCMATCH.

Source

pub const fn publish_edend(self) -> Reg<Publish, RW>

Publish configuration for event EDEND.

Source

pub const fn publish_edstopped(self) -> Reg<Publish, RW>

Publish configuration for event EDSTOPPED.

Source

pub const fn publish_ccaidle(self) -> Reg<Publish, RW>

Publish configuration for event CCAIDLE.

Source

pub const fn publish_ccabusy(self) -> Reg<Publish, RW>

Publish configuration for event CCABUSY.

Source

pub const fn publish_ccastopped(self) -> Reg<Publish, RW>

Publish configuration for event CCASTOPPED.

Source

pub const fn publish_rateboost(self) -> Reg<Publish, RW>

Publish configuration for event RATEBOOST.

Source

pub const fn publish_mhrmatch(self) -> Reg<Publish, RW>

Publish configuration for event MHRMATCH.

Source

pub const fn publish_sync(self) -> Reg<Publish, RW>

Publish configuration for event SYNC.

Source

pub const fn publish_ctepresent(self) -> Reg<Publish, RW>

Publish configuration for event CTEPRESENT.

Source

pub const fn publish_pllready(self) -> Reg<Publish, RW>

Publish configuration for event PLLREADY.

Source

pub const fn publish_rxaddress(self) -> Reg<Publish, RW>

Publish configuration for event RXADDRESS.

Source

pub const fn publish_auxdatadmaend(self) -> Reg<Publish, RW>

Publish configuration for event AUXDATADMAEND.

Source

pub const fn publish_cstonesend(self) -> Reg<Publish, RW>

Publish configuration for event CSTONESEND.

Source

pub const fn shorts(self) -> Reg<Shorts, RW>

Shortcuts between local events and tasks.

Source

pub const fn intenset0(self, n: usize) -> Reg<Int0, RW>

Enable interrupt.

Source

pub const fn intenset1(self, n: usize) -> Reg<Int1, RW>

Enable interrupt.

Source

pub const fn intenclr0(self, n: usize) -> Reg<Int0, RW>

Disable interrupt.

Source

pub const fn intenclr1(self, n: usize) -> Reg<Int1, RW>

Disable interrupt.

Source

pub const fn mode(self) -> Reg<RadioMode, RW>

Data rate and modulation.

Source

pub const fn phyendtxdelay(self) -> Reg<Phyendtxdelay, RW>

Configurable delay of PHYEND event for TX.

Source

pub const fn state(self) -> Reg<State, R>

Current radio state.

Source

pub const fn edctrl(self) -> Reg<Edctrl, RW>

IEEE 802.15.4 energy detect control.

Source

pub const fn edsample(self) -> Reg<Edsample, R>

IEEE 802.15.4 energy detect level.

Source

pub const fn ccactrl(self) -> Reg<Ccactrl, RW>

IEEE 802.15.4 clear channel assessment control.

Source

pub const fn datawhite(self) -> Reg<Datawhite, RW>

Data whitening configuration.

Source

pub const fn auxdata(self) -> Auxdata

Unspecified.

Source

pub const fn auxdatadma(self, n: usize) -> Auxdatadma

Unspecified.

Source

pub const fn timing(self) -> Reg<Timing, RW>

Timing.

Source

pub const fn frequency(self) -> Reg<Frequency, RW>

Frequency.

Source

pub const fn txpower(self) -> Reg<Txpower, RW>

Output power.

Source

pub const fn tifs(self) -> Reg<Tifs, RW>

Interframe spacing in us.

Source

pub const fn rssisample(self) -> Reg<Rssisample, R>

RSSI sample.

Source

pub const fn rxgain(self) -> Rxgain

Unspecified.

Source

pub const fn freqfinetune(self) -> Reg<Freqfinetune, RW>

Fine tuning of the RF frequency.

Source

pub const fn feconfig(self) -> Reg<Feconfig, RW>

Config register.

Source

pub const fn cfo_stat(self) -> Reg<CfoStat, R>

Carrier freq. offset estimate.

Source

pub const fn dbccorr(self) -> Reg<Dbccorr, RW>

Correlator thresholds.

Source

pub const fn dfemode(self) -> Reg<Dfemode, RW>

Whether to use Angle-of-Arrival (AOA) or Angle-of-Departure (AOD).

Source

pub const fn dfestatus(self) -> Reg<Dfestatus, R>

DFE status information.

Source

pub const fn dfectrl1(self) -> Reg<Dfectrl1, RW>

Various configuration for Direction finding.

Source

pub const fn dfectrl2(self) -> Reg<Dfectrl2, RW>

Start offset for Direction finding.

Source

pub const fn switchpattern(self) -> Reg<Switchpattern, RW>

GPIO patterns to be used for each antenna.

Source

pub const fn clearpattern(self) -> Reg<Clearpattern, W>

Clear the GPIO pattern array for antenna control.

Source

pub const fn psel(self) -> Psel

Unspecified.

Source

pub const fn dfepacket(self) -> Dfepacket

DFE packet EasyDMA channel.

Source

pub const fn crcstatus(self) -> Reg<Crcstatus, R>

CRC status.

Source

pub const fn rxmatch(self) -> Reg<Rxmatch, R>

Received address.

Source

pub const fn rxcrc(self) -> Reg<Rxcrc, R>

CRC field of previously received packet.

Source

pub const fn dai(self) -> Reg<Dai, R>

Device address match index.

Source

pub const fn pdustat(self) -> Reg<Pdustat, R>

Payload status.

Source

pub const fn pcnf0(self) -> Reg<Pcnf0, RW>

Packet configuration register 0.

Source

pub const fn pcnf1(self) -> Reg<Pcnf1, RW>

Packet configuration register 1.

Source

pub const fn base0(self) -> Reg<u32, RW>

Base address 0.

Source

pub const fn base1(self) -> Reg<u32, RW>

Base address 1.

Source

pub const fn prefix0(self) -> Reg<Prefix0, RW>

Prefixes bytes for logical addresses 0-3.

Source

pub const fn prefix1(self) -> Reg<Prefix1, RW>

Prefixes bytes for logical addresses 4-7.

Source

pub const fn txaddress(self) -> Reg<Txaddress, RW>

Transmit address select.

Source

pub const fn rxaddresses(self) -> Reg<Rxaddresses, RW>

Receive address select.

Source

pub const fn crccnf(self) -> Reg<Crccnf, RW>

CRC configuration.

Source

pub const fn crcpoly(self) -> Reg<Crcpoly, RW>

CRC polynomial.

Source

pub const fn crcinit(self) -> Reg<Crcinit, RW>

CRC initial value.

Source

pub const fn dab(self, n: usize) -> Reg<u32, RW>

Description collection: Device address base segment n.

Source

pub const fn dap(self, n: usize) -> Reg<Dap, RW>

Description collection: Device address prefix n.

Source

pub const fn dacnf(self) -> Reg<Dacnf, RW>

Device address match configuration.

Source

pub const fn bcc(self) -> Reg<u32, RW>

Bit counter compare.

Source

pub const fn ctestatus(self) -> Reg<Ctestatus, R>

CTEInfo parsed from received packet.

Source

pub const fn mhrmatchconf(self) -> Reg<u32, RW>

Search pattern configuration.

Source

pub const fn mhrmatchmask(self) -> Reg<u32, RW>

Pattern mask.

Source

pub const fn sfd(self) -> Reg<Sfd, RW>

IEEE 802.15.4 start of frame delimiter.

Source

pub const fn cteinlineconf(self) -> Reg<Cteinlineconf, RW>

Configuration for CTE inline mode.

Source

pub const fn packetptr(self) -> Reg<u32, RW>

Packet pointer.

Source

pub const fn cstones(self) -> Cstones

Unspecified.

Source

pub const fn rtt(self) -> Rtt

Unspecified.

Trait Implementations§

Source§

impl Clone for Radio

Source§

fn clone(&self) -> Radio

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl PartialEq for Radio

Source§

fn eq(&self, other: &Radio) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Radio

Source§

impl Eq for Radio

Source§

impl Send for Radio

Source§

impl StructuralPartialEq for Radio

Source§

impl Sync for Radio

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Az for T

Source§

fn az<Dst>(self) -> Dst
where T: Cast<Dst>,

Casts the value.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<Src, Dst> CastFrom<Src> for Dst
where Src: Cast<Dst>,

Source§

fn cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> CheckedAs for T

Source§

fn checked_as<Dst>(self) -> Option<Dst>
where T: CheckedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> CheckedCastFrom<Src> for Dst
where Src: CheckedCast<Dst>,

Source§

fn checked_cast_from(src: Src) -> Option<Dst>

Casts the value.
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<Src, Dst> LosslessTryInto<Dst> for Src
where Dst: LosslessTryFrom<Src>,

Source§

fn lossless_try_into(self) -> Option<Dst>

Performs the conversion.
Source§

impl<Src, Dst> LossyInto<Dst> for Src
where Dst: LossyFrom<Src>,

Source§

fn lossy_into(self) -> Dst

Performs the conversion.
Source§

impl<T> OverflowingAs for T

Source§

fn overflowing_as<Dst>(self) -> (Dst, bool)
where T: OverflowingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> OverflowingCastFrom<Src> for Dst
where Src: OverflowingCast<Dst>,

Source§

fn overflowing_cast_from(src: Src) -> (Dst, bool)

Casts the value.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> SaturatingAs for T

Source§

fn saturating_as<Dst>(self) -> Dst
where T: SaturatingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> SaturatingCastFrom<Src> for Dst
where Src: SaturatingCast<Dst>,

Source§

fn saturating_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> StrictAs for T

Source§

fn strict_as<Dst>(self) -> Dst
where T: StrictCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> StrictCastFrom<Src> for Dst
where Src: StrictCast<Dst>,

Source§

fn strict_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> UnwrappedAs for T

Source§

fn unwrapped_as<Dst>(self) -> Dst
where T: UnwrappedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> UnwrappedCastFrom<Src> for Dst
where Src: UnwrappedCast<Dst>,

Source§

fn unwrapped_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> WrappingAs for T

Source§

fn wrapping_as<Dst>(self) -> Dst
where T: WrappingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> WrappingCastFrom<Src> for Dst
where Src: WrappingCast<Dst>,

Source§

fn wrapping_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,