pub trait AddressRegister<const N: usize>: Copy {
const ADDRESS: u8;
// Required methods
fn new() -> Self;
fn from_bits(bits: u64) -> Self;
fn into_bits(self) -> u64;
fn into_bytes(self) -> [u8; N];
}Expand description
A trait for nRF24L01+ address registers which can be 3-5 bytes.
- RxAddrP0
- RxAddrP1
- TxAddr
Required Associated Constants§
Required Methods§
Sourcefn into_bytes(self) -> [u8; N]
fn into_bytes(self) -> [u8; N]
Convert into bytes ordered by LSByte first.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.