pub struct Crc<'d, M> { /* private fields */ }Expand description
CRC driver.
Implementations§
Source§impl<'d> Crc<'d, Crc16>
impl<'d> Crc<'d, Crc16>
Sourcepub fn new_crc16<T: Instance>(peri: Peri<'d, T>, config: Config) -> Self
pub fn new_crc16<T: Instance>(peri: Peri<'d, T>, config: Config) -> Self
Instantiates a new CRC peripheral driver in 16-bit mode
Sourcepub fn new_algorithm16<T: Instance>(
peri: Peri<'d, T>,
algorithm: Algorithm16,
) -> Self
pub fn new_algorithm16<T: Instance>( peri: Peri<'d, T>, algorithm: Algorithm16, ) -> Self
Instantiates a new CRC peripheral driver for the given Algorithm16.
Sourcepub fn new_a<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_a<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the A algorithm.
Sourcepub fn new_aug_ccitt<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_aug_ccitt<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the AugCcitt algorithm.
Sourcepub fn new_arc<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_arc<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the Arc algorithm.
Sourcepub fn new_buypass<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_buypass<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the Buypass algorithm.
Sourcepub fn new_ccitt_false<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_ccitt_false<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the CcittFalse algorithm.
Sourcepub fn new_ccitt_zero<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_ccitt_zero<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the CcittZero algorithm.
Sourcepub fn new_cdma_2000<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_cdma_2000<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the Cdma2000 algorithm.
Sourcepub fn new_dds_110<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_dds_110<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the Dds110 algorithm.
Sourcepub fn new_dect_x<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_dect_x<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the DectX algorithm.
Sourcepub fn new_dnp<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_dnp<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the Dnp algorithm.
Sourcepub fn new_en13757<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_en13757<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the En13757 algorithm.
Sourcepub fn new_genibus<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_genibus<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the Genibus algorithm.
Sourcepub fn new_kermit<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_kermit<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the Kermit algorithm.
Sourcepub fn new_maxim<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_maxim<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the Maxim algorithm.
Sourcepub fn new_mcrf4xx<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_mcrf4xx<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the Mcrf4xx algorithm.
Sourcepub fn new_modbus<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_modbus<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the Modbus algorithm.
Sourcepub fn new_riello<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_riello<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the Riello algorithm.
Sourcepub fn new_t10_dif<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_t10_dif<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the T10Dif algorithm.
Sourcepub fn new_teledisk<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_teledisk<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the Teledisk algorithm.
Sourcepub fn new_tms_37157<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_tms_37157<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the Tms37157 algorithm.
Sourcepub fn new_usb<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_usb<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the Usb algorithm.
Sourcepub fn new_x25<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_x25<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the X25 algorithm.
Sourcepub fn new_xmodem<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_xmodem<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the Xmodem algorithm.
Source§impl<'d> Crc<'d, Crc32>
impl<'d> Crc<'d, Crc32>
Sourcepub fn new_crc32<T: Instance>(peri: Peri<'d, T>, config: Config) -> Self
pub fn new_crc32<T: Instance>(peri: Peri<'d, T>, config: Config) -> Self
Instantiates a new CRC peripheral driver in 32-bit mode
Sourcepub fn new_algorithm32<T: Instance>(
peri: Peri<'d, T>,
algorithm: Algorithm32,
) -> Self
pub fn new_algorithm32<T: Instance>( peri: Peri<'d, T>, algorithm: Algorithm32, ) -> Self
Instantiates a new CRC peripheral driver for the given Algorithm32.
Sourcepub fn new_bzip2<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_bzip2<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the Bzip2 algorithm.
Sourcepub fn new_c<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_c<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the C algorithm.
Sourcepub fn new_d<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_d<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the D algorithm.
Sourcepub fn new_iso_hdlc<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_iso_hdlc<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the IsoHdlc algorithm.
Sourcepub fn new_jam_crc<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_jam_crc<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the JamCrc algorithm.
Sourcepub fn new_mpeg2<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_mpeg2<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the Mpeg2 algorithm.
Sourcepub fn new_posix<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_posix<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the Posix algorithm.
Sourcepub fn new_q<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_q<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the Q algorithm.
Sourcepub fn new_xfer<T: Instance>(peri: Peri<'d, T>) -> Self
pub fn new_xfer<T: Instance>(peri: Peri<'d, T>) -> Self
Instantiates a new CRC peripheral for the Xfer algorithm.