pub struct OperacakeFreq {
pub min: u16,
pub max: u16,
pub port: u8,
}Expand description
A Frequency band allocated to a specific port for all Operacakes operating in frequency mode.
This is used in HackRf::operacake_config_freq.
Ports are zero-indexed, but can also be referred to with the top-level constants:
- PORT_A1 = 0
- PORT_A2 = 1
- PORT_A3 = 2
- PORT_A4 = 3
- PORT_B1 = 4
- PORT_B2 = 5
- PORT_B3 = 6
- PORT_B4 = 7
Fields§
§min: u16Start frequency, in MHz.
max: u16Stop frequency, in MHz.
port: u8Port for A0 to use for the range. B0 will use the mirror image.
Trait Implementations§
Source§impl Clone for OperacakeFreq
impl Clone for OperacakeFreq
Source§fn clone(&self) -> OperacakeFreq
fn clone(&self) -> OperacakeFreq
Returns a duplicate 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 OperacakeFreq
impl Debug for OperacakeFreq
impl Copy for OperacakeFreq
Auto Trait Implementations§
impl Freeze for OperacakeFreq
impl RefUnwindSafe for OperacakeFreq
impl Send for OperacakeFreq
impl Sync for OperacakeFreq
impl Unpin for OperacakeFreq
impl UnwindSafe for OperacakeFreq
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