SwitchBankControl

Struct SwitchBankControl 

Source
pub struct SwitchBankControl<T>(pub T);
Expand description

Switch Bank Control

Tuple Fields§

§0: T

Implementations§

Source§

impl<T: AsRef<[u8]>> SwitchBankControl<T>

Source

pub fn instance(&self) -> u32

Source

pub fn switch_1(&self) -> NmeaOption<Switch1>

Source

pub fn switch_2(&self) -> NmeaOption<Switch2>

Source

pub fn switch_3(&self) -> NmeaOption<Switch3>

Source

pub fn switch_4(&self) -> NmeaOption<Switch4>

Source

pub fn switch_5(&self) -> NmeaOption<Switch5>

Source

pub fn switch_6(&self) -> NmeaOption<Switch6>

Source

pub fn switch_7(&self) -> NmeaOption<Switch7>

Source

pub fn switch_8(&self) -> NmeaOption<Switch8>

Source

pub fn switch_9(&self) -> NmeaOption<Switch9>

Source

pub fn switch_10(&self) -> NmeaOption<Switch10>

Source

pub fn switch_11(&self) -> NmeaOption<Switch11>

Source

pub fn switch_12(&self) -> NmeaOption<Switch12>

Source

pub fn switch_13(&self) -> NmeaOption<Switch13>

Source

pub fn switch_14(&self) -> NmeaOption<Switch14>

Source

pub fn switch_15(&self) -> NmeaOption<Switch15>

Source

pub fn switch_16(&self) -> NmeaOption<Switch16>

Source

pub fn switch_17(&self) -> NmeaOption<Switch17>

Source

pub fn switch_18(&self) -> NmeaOption<Switch18>

Source

pub fn switch_19(&self) -> NmeaOption<Switch19>

Source

pub fn switch_20(&self) -> NmeaOption<Switch20>

Source

pub fn switch_21(&self) -> NmeaOption<Switch21>

Source

pub fn switch_22(&self) -> NmeaOption<Switch22>

Source

pub fn switch_23(&self) -> NmeaOption<Switch23>

Source

pub fn switch_24(&self) -> NmeaOption<Switch24>

Source

pub fn switch_25(&self) -> NmeaOption<Switch25>

Source

pub fn switch_26(&self) -> NmeaOption<Switch26>

Source

pub fn switch_27(&self) -> NmeaOption<Switch27>

Source

pub fn switch_28(&self) -> NmeaOption<Switch28>

Source§

impl SwitchBankControl<&[u8]>

Source

pub fn is_match(&self, pgn: u32) -> bool

Source

pub fn get_pgn() -> u32

Source

pub fn get_message_type() -> PgnType

Trait Implementations§

Source§

impl<T: AsRef<[u8]>> BitRange<i128> for SwitchBankControl<T>

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i128

Get a range of bits.
Source§

impl<T: AsRef<[u8]>> BitRange<i16> for SwitchBankControl<T>

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i16

Get a range of bits.
Source§

impl<T: AsRef<[u8]>> BitRange<i32> for SwitchBankControl<T>

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i32

Get a range of bits.
Source§

impl<T: AsRef<[u8]>> BitRange<i64> for SwitchBankControl<T>

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i64

Get a range of bits.
Source§

impl<T: AsRef<[u8]>> BitRange<i8> for SwitchBankControl<T>

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i8

Get a range of bits.
Source§

impl<T: AsRef<[u8]>> BitRange<u128> for SwitchBankControl<T>

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u128

Get a range of bits.
Source§

impl<T: AsRef<[u8]>> BitRange<u16> for SwitchBankControl<T>

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u16

Get a range of bits.
Source§

impl<T: AsRef<[u8]>> BitRange<u32> for SwitchBankControl<T>

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u32

Get a range of bits.
Source§

impl<T: AsRef<[u8]>> BitRange<u64> for SwitchBankControl<T>

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u64

Get a range of bits.
Source§

impl<T: AsRef<[u8]>> BitRange<u8> for SwitchBankControl<T>

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u8

Get a range of bits.
Source§

impl<T: AsMut<[u8]>> BitRangeMut<i128> for SwitchBankControl<T>

Source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i128)

Set a range of bits.
Source§

impl<T: AsMut<[u8]>> BitRangeMut<i16> for SwitchBankControl<T>

Source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i16)

Set a range of bits.
Source§

impl<T: AsMut<[u8]>> BitRangeMut<i32> for SwitchBankControl<T>

Source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i32)

Set a range of bits.
Source§

impl<T: AsMut<[u8]>> BitRangeMut<i64> for SwitchBankControl<T>

Source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i64)

Set a range of bits.
Source§

impl<T: AsMut<[u8]>> BitRangeMut<i8> for SwitchBankControl<T>

Source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i8)

Set a range of bits.
Source§

impl<T: AsMut<[u8]>> BitRangeMut<u128> for SwitchBankControl<T>

Source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u128)

Set a range of bits.
Source§

impl<T: AsMut<[u8]>> BitRangeMut<u16> for SwitchBankControl<T>

Source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u16)

Set a range of bits.
Source§

impl<T: AsMut<[u8]>> BitRangeMut<u32> for SwitchBankControl<T>

Source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u32)

Set a range of bits.
Source§

impl<T: AsMut<[u8]>> BitRangeMut<u64> for SwitchBankControl<T>

Source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u64)

Set a range of bits.
Source§

impl<T: AsMut<[u8]>> BitRangeMut<u8> for SwitchBankControl<T>

Source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u8)

Set a range of bits.
Source§

impl<T: AsRef<[u8]> + Debug> Debug for SwitchBankControl<T>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> Freeze for SwitchBankControl<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for SwitchBankControl<T>
where T: RefUnwindSafe,

§

impl<T> Send for SwitchBankControl<T>
where T: Send,

§

impl<T> Sync for SwitchBankControl<T>
where T: Sync,

§

impl<T> Unpin for SwitchBankControl<T>
where T: Unpin,

§

impl<T> UnwindSafe for SwitchBankControl<T>
where T: UnwindSafe,

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> Bit for T
where T: BitRange<u8>,

Source§

fn bit(&self, bit: usize) -> bool

Get a single bit.
Source§

impl<T> BitMut for T
where T: BitRangeMut<u8>,

Source§

fn set_bit(&mut self, bit: usize, value: bool)

Set a single bit.
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> 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, 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.