#[repr(transparent)]pub struct Mode(pub u32);Expand description
CRC mode register
Tuple Fields§
§0: u32Implementations§
Source§impl Mode
impl Mode
Sourcepub const fn crc_poly(&self) -> u8
pub const fn crc_poly(&self) -> u8
CRC polynomial: 1X = CRC-32 polynomial 01 = CRC-16 polynomial 00 = CRC-CCITT polynomial
Sourcepub const fn set_crc_poly(&mut self, val: u8)
pub const fn set_crc_poly(&mut self, val: u8)
CRC polynomial: 1X = CRC-32 polynomial 01 = CRC-16 polynomial 00 = CRC-CCITT polynomial
Sourcepub const fn bit_rvs_wr(&self) -> bool
pub const fn bit_rvs_wr(&self) -> bool
Data bit order: 1 = Bit order reverse for CRC_WR_DATA (per byte) 0 = No bit order reverse for CRC_WR_DATA (per byte)
Sourcepub const fn set_bit_rvs_wr(&mut self, val: bool)
pub const fn set_bit_rvs_wr(&mut self, val: bool)
Data bit order: 1 = Bit order reverse for CRC_WR_DATA (per byte) 0 = No bit order reverse for CRC_WR_DATA (per byte)
Sourcepub const fn cmpl_wr(&self) -> bool
pub const fn cmpl_wr(&self) -> bool
Data complement: 1 = 1’s complement for CRC_WR_DATA 0 = No 1’s complement for CRC_WR_DATA
Sourcepub const fn set_cmpl_wr(&mut self, val: bool)
pub const fn set_cmpl_wr(&mut self, val: bool)
Data complement: 1 = 1’s complement for CRC_WR_DATA 0 = No 1’s complement for CRC_WR_DATA
Sourcepub const fn bit_rvs_sum(&self) -> bool
pub const fn bit_rvs_sum(&self) -> bool
CRC sum bit order: 1 = Bit order reverse for CRC_SUM 0 = No bit order reverse for CRC_SUM
Sourcepub const fn set_bit_rvs_sum(&mut self, val: bool)
pub const fn set_bit_rvs_sum(&mut self, val: bool)
CRC sum bit order: 1 = Bit order reverse for CRC_SUM 0 = No bit order reverse for CRC_SUM
Sourcepub const fn cmpl_sum(&self) -> bool
pub const fn cmpl_sum(&self) -> bool
CRC sum complement: 1 = 1’s complement for CRC_SUM 0 = No 1’s complement for CRC_SUM
Sourcepub const fn set_cmpl_sum(&mut self, val: bool)
pub const fn set_cmpl_sum(&mut self, val: bool)
CRC sum complement: 1 = 1’s complement for CRC_SUM 0 = No 1’s complement for CRC_SUM