Struct stm32wlxx_hal::subghz::BpskPacketParams
source · pub struct BpskPacketParams { /* private fields */ }
Expand description
Packet parameters for set_lora_packet_params
.
Implementations§
source§impl BpskPacketParams
impl BpskPacketParams
sourcepub const fn new() -> BpskPacketParams
pub const fn new() -> BpskPacketParams
Create a new BpskPacketParams
.
This is the same as default
, but in a const
function.
Example
use stm32wlxx_hal::subghz::BpskPacketParams;
const PKT_PARAMS: BpskPacketParams = BpskPacketParams::new();
assert_eq!(PKT_PARAMS, BpskPacketParams::default());
sourcepub const fn set_payload_len(self, len: u8) -> BpskPacketParams
pub const fn set_payload_len(self, len: u8) -> BpskPacketParams
Set the payload length in bytes.
The length includes preamble, sync word, device ID, and CRC.
Example
use stm32wlxx_hal::subghz::BpskPacketParams;
const PKT_PARAMS: BpskPacketParams = BpskPacketParams::new().set_payload_len(12);
Trait Implementations§
source§impl Clone for BpskPacketParams
impl Clone for BpskPacketParams
source§fn clone(&self) -> BpskPacketParams
fn clone(&self) -> BpskPacketParams
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BpskPacketParams
impl Debug for BpskPacketParams
source§impl Default for BpskPacketParams
impl Default for BpskPacketParams
source§impl PartialEq for BpskPacketParams
impl PartialEq for BpskPacketParams
source§fn eq(&self, other: &BpskPacketParams) -> bool
fn eq(&self, other: &BpskPacketParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BpskPacketParams
impl Eq for BpskPacketParams
impl StructuralEq for BpskPacketParams
impl StructuralPartialEq for BpskPacketParams
Auto Trait Implementations§
impl RefUnwindSafe for BpskPacketParams
impl Send for BpskPacketParams
impl Sync for BpskPacketParams
impl Unpin for BpskPacketParams
impl UnwindSafe for BpskPacketParams
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more