Trait p25::data::crc::CRCParams
[−]
[src]
pub trait CRCParams { fn gen() -> u64; fn inv() -> u64; fn shift() -> usize; fn validate() { ... } }
Required Methods
fn gen() -> u64
Generator polynomial, with the MSB being the coefficient of highest degree.
fn inv() -> u64
Inversion polynomial, with the MSB being the coefficient of highest degree.
fn shift() -> usize
Amount to left-shift the message (multiply by xi) before division.
Provided Methods
fn validate()
Verify the parameters are well-formed.
Implementors
impl CRCParams for CRC9Params
impl CRCParams for CRC16Params
impl CRCParams for CRC32Params