pub struct RdsData {Show 18 fields
pub program_information: ProgramInformation,
pub tn: NetworkInfo,
pub on: NetworkInfo,
pub content: Content,
pub rt: RtData,
pub clock: Clock,
pub slc: SlcData,
pub ptyn: PtynData,
pub oda: LinearMap<u16, OdaEntry, 10>,
pub tdc: TdcData,
pub ews: EwsData,
pub did_pty: DiCodes,
pub alt_freqs: AfTable,
pub alt_freq_decoder: AfDecoder,
pub on_freqs: AfTable,
pub on_freq_decoder: AfDecoder,
pub map_freqs: AfTable,
pub valid: ValidFields,
}Expand description
Container for all decoded RDS data.
This struct is populated by the Decoder, which is passed many blocks
of raw RDS data to decode. Depending what information is broadcast
and passed to the decoder, some of the fields in this struct will contain
valid data. The valid field is a bitmask that should be used first before
dereferencing any members of this struct.
Fields§
§program_information: ProgramInformationProgram Identification Code
tn: NetworkInfoTuned network (TN) info.
on: NetworkInfoOther network (ON) info.
content: ContentMusic/Speech flag.
rt: RtDataRadiotext
clock: ClockClock time
slc: SlcDataSlow labelling codes
ptyn: PtynDataProgram Type Name (extended PTY)
oda: LinearMap<u16, OdaEntry, 10>Active Open Data Applications
tdc: TdcDataTransparent Data Channels
ews: EwsDataEmergency Warning System
did_pty: DiCodes§alt_freqs: AfTable§alt_freq_decoder: AfDecoder§on_freqs: AfTable§on_freq_decoder: AfDecoder§map_freqs: AfTable§valid: ValidFieldsBitmask of which fields are valid
Trait Implementations§
impl StructuralPartialEq for RdsData
Auto Trait Implementations§
impl Freeze for RdsData
impl RefUnwindSafe for RdsData
impl Send for RdsData
impl Sync for RdsData
impl Unpin for RdsData
impl UnsafeUnpin for RdsData
impl UnwindSafe for RdsData
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