Struct midi_msg::UserBits[][src]

pub struct UserBits {
    pub bytes: (u8, u8, u8, u8),
    pub flag1: bool,
    pub flag2: bool,
}

32 bits defined by SMPTE for “special functions”. Used in UniversalRealTimeMsg::TimeCodeUserBits. See the SMTPE time code standard.

As defined in the MIDI Time Code spec (MMA0001 / RP004 / RP008)

Fields

bytes: (u8, u8, u8, u8)

Full bytes can be used here. Sent such that the first is considered the “most significant” value

flag1: bool

SMPTE time code bit 43 (EBU bit 27)

flag2: bool

SMPTE time code bit 59 (EBU bit 43)

Implementations

impl UserBits[src]

pub fn to_nibbles(&self) -> [u8; 9][src]

Turn the UserBits into its 9 nibble representation: [nibble_1, nibble_2, nibble_3, nibble_4, nibble_5, nibble_6, nibble_7, nibble_8, nibble_9, nibble_flags]

Trait Implementations

impl Clone for UserBits[src]

impl Copy for UserBits[src]

impl Debug for UserBits[src]

impl From<UserBits> for StandardUserBits[src]

impl PartialEq<UserBits> for UserBits[src]

impl StructuralPartialEq for UserBits[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.