Struct p25::trunking::fields::ChannelParams
[−]
[src]
pub struct ChannelParams {
pub bandwidth: u32,
// some fields omitted
}Computes TX/RX frequencies and bandwidth for channel numbers within a site.
Fields
bandwidth: u32
Channel bandwidth in Hz.
Methods
impl ChannelParams[src]
pub fn new(
base: u32,
bandwidth: u16,
offset: u16,
spacing: u16
) -> ChannelParams[src]
base: u32,
bandwidth: u16,
offset: u16,
spacing: u16
) -> ChannelParams
Create a new ChannelParams from the given base frequency (5Hz steps), bandwidth
(125Hz steps), TX offset (250kHz steps), and inter-channel spacing (125Hz steps.)
pub fn rx_freq(&self, ch: u16) -> u32[src]
Receive frequency for the given channel number in Hz.
pub fn tx_freq(&self, ch: u16) -> u32[src]
Transmit frequency for the given channel number in Hz.
Trait Implementations
impl Copy for ChannelParams[src]
impl Clone for ChannelParams[src]
fn clone(&self) -> ChannelParams[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for ChannelParams[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Eq for ChannelParams[src]
impl PartialEq for ChannelParams[src]
fn eq(&self, __arg_0: &ChannelParams) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ChannelParams) -> bool[src]
This method tests for !=.