Skip to main content

Crate rds_rs

Crate rds_rs 

Source

Structs§

Clock
Clock Time and Date (CT)
Decoder
DiCodes
Decoder identification and Dynamic PTY indicator / DI codes See the RDS Standard section 3.2.1.5.
Group
An RDS group, when transmitted, is a 104 bit item consisting of 4 blocks (A, B, C, D). Each block consists of 26 bits: a 16 data information word followed by a 10 bit checkword. The receiver strips the 10 bit checkword, and evaluates it to determine if the the block should be passed along for decoding.
GroupType
Group type code and version. See the RDS Standard section 3.1.3 - Table 3.
RdsData
Container for all decoded RDS data.
ValidFields
Bitflags indicating the RDS fields that are valid / have been received and decoded.

Enums§

Content
Music/speech (M/S) switch code. See the RBDS Standard section 3.2.1.4.
ProgramType
RtVariant
Which RT variant is currently being decoded.

Constants§

BLANK_CHAR
LINE_BREAK_CHAR
MAX_RADIOTEXT_LEN
PS_TEXT_LEN
PTYN_TEXT_LEN

Functions§

is_whitespace_byte
rds_to_utf8_lossy
Convert an array of bytes from the code table to a string. If the destination string is too small then characters will be silently dropped. If desired call rds_to_utf8_required_bytes() to determine the number of bytes that the output string needs to be to contain all characters specified in bytes.
rds_to_utf8_required_bytes
Returns the exact number of UTF-8 bytes needed to represent the RDS-decoded string, not including a trailing null terminator (unless you explicitly want one).