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(peri: Peri<'d, CRC0>, config: Config) -> Self
pub fn new_crc16(peri: Peri<'d, CRC0>, config: Config) -> Self
Instantiates a new CRC peripheral driver in 16-bit mode
Sourcepub fn new_algorithm16(peri: Peri<'d, CRC0>, algorithm: Algorithm16) -> Self
pub fn new_algorithm16(peri: Peri<'d, CRC0>, algorithm: Algorithm16) -> Self
Instantiates a new CRC peripheral driver for the given Algorithm16.
Sourcepub fn new_a(peri: Peri<'d, CRC0>) -> Self
pub fn new_a(peri: Peri<'d, CRC0>) -> Self
Instantiates a new CRC peripheral for the A algorithm.
Sourcepub fn new_aug_ccitt(peri: Peri<'d, CRC0>) -> Self
pub fn new_aug_ccitt(peri: Peri<'d, CRC0>) -> Self
Instantiates a new CRC peripheral for the AugCcitt algorithm.
Sourcepub fn new_arc(peri: Peri<'d, CRC0>) -> Self
pub fn new_arc(peri: Peri<'d, CRC0>) -> Self
Instantiates a new CRC peripheral for the Arc algorithm.
Sourcepub fn new_buypass(peri: Peri<'d, CRC0>) -> Self
pub fn new_buypass(peri: Peri<'d, CRC0>) -> Self
Instantiates a new CRC peripheral for the Buypass algorithm.
Sourcepub fn new_ccitt_false(peri: Peri<'d, CRC0>) -> Self
pub fn new_ccitt_false(peri: Peri<'d, CRC0>) -> Self
Instantiates a new CRC peripheral for the CcittFalse algorithm.
Sourcepub fn new_ccitt_zero(peri: Peri<'d, CRC0>) -> Self
pub fn new_ccitt_zero(peri: Peri<'d, CRC0>) -> Self
Instantiates a new CRC peripheral for the CcittZero algorithm.
Sourcepub fn new_cdma_2000(peri: Peri<'d, CRC0>) -> Self
pub fn new_cdma_2000(peri: Peri<'d, CRC0>) -> Self
Instantiates a new CRC peripheral for the Cdma2000 algorithm.
Sourcepub fn new_dds_110(peri: Peri<'d, CRC0>) -> Self
pub fn new_dds_110(peri: Peri<'d, CRC0>) -> Self
Instantiates a new CRC peripheral for the Dds110 algorithm.
Sourcepub fn new_dect_x(peri: Peri<'d, CRC0>) -> Self
pub fn new_dect_x(peri: Peri<'d, CRC0>) -> Self
Instantiates a new CRC peripheral for the DectX algorithm.
Sourcepub fn new_dnp(peri: Peri<'d, CRC0>) -> Self
pub fn new_dnp(peri: Peri<'d, CRC0>) -> Self
Instantiates a new CRC peripheral for the Dnp algorithm.
Sourcepub fn new_en13757(peri: Peri<'d, CRC0>) -> Self
pub fn new_en13757(peri: Peri<'d, CRC0>) -> Self
Instantiates a new CRC peripheral for the En13757 algorithm.
Sourcepub fn new_genibus(peri: Peri<'d, CRC0>) -> Self
pub fn new_genibus(peri: Peri<'d, CRC0>) -> Self
Instantiates a new CRC peripheral for the Genibus algorithm.
Sourcepub fn new_kermit(peri: Peri<'d, CRC0>) -> Self
pub fn new_kermit(peri: Peri<'d, CRC0>) -> Self
Instantiates a new CRC peripheral for the Kermit algorithm.
Sourcepub fn new_maxim(peri: Peri<'d, CRC0>) -> Self
pub fn new_maxim(peri: Peri<'d, CRC0>) -> Self
Instantiates a new CRC peripheral for the Maxim algorithm.
Sourcepub fn new_mcrf4xx(peri: Peri<'d, CRC0>) -> Self
pub fn new_mcrf4xx(peri: Peri<'d, CRC0>) -> Self
Instantiates a new CRC peripheral for the Mcrf4xx algorithm.
Sourcepub fn new_modbus(peri: Peri<'d, CRC0>) -> Self
pub fn new_modbus(peri: Peri<'d, CRC0>) -> Self
Instantiates a new CRC peripheral for the Modbus algorithm.
Sourcepub fn new_riello(peri: Peri<'d, CRC0>) -> Self
pub fn new_riello(peri: Peri<'d, CRC0>) -> Self
Instantiates a new CRC peripheral for the Riello algorithm.
Sourcepub fn new_t10_dif(peri: Peri<'d, CRC0>) -> Self
pub fn new_t10_dif(peri: Peri<'d, CRC0>) -> Self
Instantiates a new CRC peripheral for the T10Dif algorithm.
Sourcepub fn new_teledisk(peri: Peri<'d, CRC0>) -> Self
pub fn new_teledisk(peri: Peri<'d, CRC0>) -> Self
Instantiates a new CRC peripheral for the Teledisk algorithm.
Sourcepub fn new_tms_37157(peri: Peri<'d, CRC0>) -> Self
pub fn new_tms_37157(peri: Peri<'d, CRC0>) -> Self
Instantiates a new CRC peripheral for the Tms37157 algorithm.
Sourcepub fn new_usb(peri: Peri<'d, CRC0>) -> Self
pub fn new_usb(peri: Peri<'d, CRC0>) -> Self
Instantiates a new CRC peripheral for the Usb algorithm.
Sourcepub fn new_x25(peri: Peri<'d, CRC0>) -> Self
pub fn new_x25(peri: Peri<'d, CRC0>) -> Self
Instantiates a new CRC peripheral for the X25 algorithm.
Sourcepub fn new_xmodem(peri: Peri<'d, CRC0>) -> Self
pub fn new_xmodem(peri: Peri<'d, CRC0>) -> 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(peri: Peri<'d, CRC0>, config: Config) -> Self
pub fn new_crc32(peri: Peri<'d, CRC0>, config: Config) -> Self
Instantiates a new CRC peripheral driver in 32-bit mode
Sourcepub fn new_algorithm32(peri: Peri<'d, CRC0>, algorithm: Algorithm32) -> Self
pub fn new_algorithm32(peri: Peri<'d, CRC0>, algorithm: Algorithm32) -> Self
Instantiates a new CRC peripheral driver for the given Algorithm32.
Sourcepub fn new_bzip2(peri: Peri<'d, CRC0>) -> Self
pub fn new_bzip2(peri: Peri<'d, CRC0>) -> Self
Instantiates a new CRC peripheral for the Bzip2 algorithm.
Sourcepub fn new_c(peri: Peri<'d, CRC0>) -> Self
pub fn new_c(peri: Peri<'d, CRC0>) -> Self
Instantiates a new CRC peripheral for the C algorithm.
Sourcepub fn new_d(peri: Peri<'d, CRC0>) -> Self
pub fn new_d(peri: Peri<'d, CRC0>) -> Self
Instantiates a new CRC peripheral for the D algorithm.
Sourcepub fn new_iso_hdlc(peri: Peri<'d, CRC0>) -> Self
pub fn new_iso_hdlc(peri: Peri<'d, CRC0>) -> Self
Instantiates a new CRC peripheral for the IsoHdlc algorithm.
Sourcepub fn new_jam_crc(peri: Peri<'d, CRC0>) -> Self
pub fn new_jam_crc(peri: Peri<'d, CRC0>) -> Self
Instantiates a new CRC peripheral for the JamCrc algorithm.
Sourcepub fn new_mpeg2(peri: Peri<'d, CRC0>) -> Self
pub fn new_mpeg2(peri: Peri<'d, CRC0>) -> Self
Instantiates a new CRC peripheral for the Mpeg2 algorithm.
Sourcepub fn new_posix(peri: Peri<'d, CRC0>) -> Self
pub fn new_posix(peri: Peri<'d, CRC0>) -> Self
Instantiates a new CRC peripheral for the Posix algorithm.
Sourcepub fn new_q(peri: Peri<'d, CRC0>) -> Self
pub fn new_q(peri: Peri<'d, CRC0>) -> Self
Instantiates a new CRC peripheral for the Q algorithm.
Sourcepub fn new_xfer(peri: Peri<'d, CRC0>) -> Self
pub fn new_xfer(peri: Peri<'d, CRC0>) -> Self
Instantiates a new CRC peripheral for the Xfer algorithm.