pub struct Channels<M: RawMutex, const RX: usize, const TX: usize> {
pub rx: Channel<M, RxFrame, RX>,
pub tx: Channel<M, TxRequest, TX>,
pub tx_done: Signal<M, Result<(), TxError<RadioError>>>,
pub rx_waker: AtomicWaker,
}Expand description
Shared state between LoraphyRadio and runner. Place in a static.
M: raw mutex type (e.g.ThreadModeRawMutexfor single-core Embassy).RX: depth of the receive queue.TX: depth of the transmit-request queue.
Fields§
§rx: Channel<M, RxFrame, RX>§tx: Channel<M, TxRequest, TX>§tx_done: Signal<M, Result<(), TxError<RadioError>>>§rx_waker: AtomicWaker