Struct p25::trunking::tsbk::TsbkFields
[−]
[src]
pub struct TsbkFields(_);
A Trunking Signalling Block packet.
Methods
impl TsbkFields
[src]
pub fn new(buf: Buf) -> TsbkFields
[src]
Interpret the given bytes as a TSBK packet.
pub fn is_tail(&self) -> bool
[src]
Whether this packet is the last one in the TSBK group.
pub fn protected(&self) -> bool
[src]
Whether the packet is encrypted.
pub fn opcode(&self) -> Option<TsbkOpcode>
[src]
Type of data contained in the payload.
pub fn mfg(&self) -> u8
[src]
Manufacturer ID, which determines if the packet is standardized.
pub fn crc(&self) -> u16
[src]
Transmitted CRC.
pub fn calc_crc(&self) -> u16
[src]
Calculate 16-bit CRC over bytes in packet.
pub fn crc_valid(&self) -> bool
[src]
Verify if the calculated CRC matches the transmitted one.
pub fn payload(&self) -> &[u8]
[src]
Bytes that make up the payload of the packet.
Trait Implementations
impl Copy for TsbkFields
[src]
impl Clone for TsbkFields
[src]
fn clone(&self) -> TsbkFields
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more