Skip to main content

Fcc15247

Enum Fcc15247 

Source
pub enum Fcc15247 {
    DigitalModulation,
    FrequencyHopping {
        channels: u16,
    },
}
Expand description

A 902-928 MHz transmitter as 47 CFR 15.247 classes it for a power limit.

Paragraph (b) caps the peak conducted output power, and paragraph (b)(4) bases that cap on an antenna of no more than 6 dBi: past that, the conducted power comes down by every decibel the gain exceeds 6 dBi. Which class a device belongs to follows from how it is built and certified, which this type does not decide.

§Examples

use pamoja_lora::budget::{Decibels, Fcc15247};

// A 9 dBi Yagi takes 3 dB off the 1 W limit for digital modulation.
let yagi = Decibels::from_db(9);
let limit = Fcc15247::DigitalModulation.max_conducted_dbm(yagi);
assert_eq!(limit, Some(Decibels::from_db(27)));

// Paragraph (b)(2) names no limit for hopping on fewer than 25 channels.
let hopping = Fcc15247::FrequencyHopping { channels: 20 };
assert_eq!(hopping.max_conducted_dbm(yagi), None);

Variants§

§

DigitalModulation

A system using digital modulation, limited to 1 W by paragraph (b)(3).

§

FrequencyHopping

A frequency hopping system, limited by paragraph (b)(2) to 1 W on at least 50 hopping channels and to 0.25 W on 25 to 49.

Fields

§channels: u16

The number of hopping channels the system uses.

Implementations§

Source§

impl Fcc15247

Source

pub fn max_conducted_dbm(self, antenna_gain_dbi: Decibels) -> Option<Decibels>

Returns the most conducted output power the rule allows through an antenna, in dBm.

§Arguments
  • antenna_gain_dbi - the directional gain of the transmitting antenna.
§Returns

The limit of paragraph (b)(2) or (b)(3), less whatever the gain exceeds 6 dBi, or None for a hopping system on fewer than 25 channels, which paragraph (b)(2) sets no limit for.

Trait Implementations§

Source§

impl Clone for Fcc15247

Source§

fn clone(&self) -> Fcc15247

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Fcc15247

Source§

impl Debug for Fcc15247

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Fcc15247

Source§

impl Hash for Fcc15247

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Fcc15247

Source§

fn eq(&self, other: &Fcc15247) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Fcc15247

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.