#[repr(transparent)]pub struct Ssc0(pub u32);Expand description
TSI SSC Register 0
Tuple Fields§
§0: u32Implementations§
Source§impl Ssc0
impl Ssc0
Sourcepub const fn ssc_prescale_num(&self) -> u16
pub const fn ssc_prescale_num(&self) -> u16
Full 12-bit numeric divider: main_clock/(N+1). The listed powers of two are examples, not the complete legal range.
Sourcepub const fn set_ssc_prescale_num(&mut self, val: u16)
pub const fn set_ssc_prescale_num(&mut self, val: u16)
Full 12-bit numeric divider: main_clock/(N+1). The listed powers of two are examples, not the complete legal range.
Sourcepub const fn base_nocharge_num(&self) -> u8
pub const fn base_nocharge_num(&self) -> u8
BASE_NOCHARGE_NUM. Encodings: 0: The SSC output bit 1’s basic period will be 1 clock cycle of system clock; 1: The SSC output bit 1’s basic period will be 2 clock cycles of system clock; 2: The SSC output bit 1’s basic period will be 3 clock cycles of system clock; 3: The SSC output bit 1’s basic period will be 4 clock cycles of system clock; 4: The SSC output bit 1’s basic period will be 5 clock cycles of system clock; 5: The SSC output bit 1’s basic period will be 6 clock cycles of system clock; 6: The SSC output bit 1’s basic period will be 7 clock cycles of system clock; 7: The SSC output bit 1’s basic period will be 8 clock cycles of system clock; 8: The SSC output bit 1’s basic period will be 9 clock cycles of system clock; 9: The SSC output bit 1’s basic period will be 10 clock cycles of system clock; 10: The SSC output bit 1’s basic period will be 11 clock cycles of system clock; 11: The SSC output bit 1’s basic period will be 12 clock cycles of system clock; 12: The SSC output bit 1’s basic period will be 13 clock cycles of system clock; 13: The SSC output bit 1’s basic period will be 14 clock cycles of system clock; 14: The SSC output bit 1’s basic period will be 15 clock cycles of system clock; 15: The SSC output bit 1’s basic period will be 16 clock cycles of system clock
Sourcepub const fn set_base_nocharge_num(&mut self, val: u8)
pub const fn set_base_nocharge_num(&mut self, val: u8)
BASE_NOCHARGE_NUM. Encodings: 0: The SSC output bit 1’s basic period will be 1 clock cycle of system clock; 1: The SSC output bit 1’s basic period will be 2 clock cycles of system clock; 2: The SSC output bit 1’s basic period will be 3 clock cycles of system clock; 3: The SSC output bit 1’s basic period will be 4 clock cycles of system clock; 4: The SSC output bit 1’s basic period will be 5 clock cycles of system clock; 5: The SSC output bit 1’s basic period will be 6 clock cycles of system clock; 6: The SSC output bit 1’s basic period will be 7 clock cycles of system clock; 7: The SSC output bit 1’s basic period will be 8 clock cycles of system clock; 8: The SSC output bit 1’s basic period will be 9 clock cycles of system clock; 9: The SSC output bit 1’s basic period will be 10 clock cycles of system clock; 10: The SSC output bit 1’s basic period will be 11 clock cycles of system clock; 11: The SSC output bit 1’s basic period will be 12 clock cycles of system clock; 12: The SSC output bit 1’s basic period will be 13 clock cycles of system clock; 13: The SSC output bit 1’s basic period will be 14 clock cycles of system clock; 14: The SSC output bit 1’s basic period will be 15 clock cycles of system clock; 15: The SSC output bit 1’s basic period will be 16 clock cycles of system clock
Sourcepub const fn charge_num(&self) -> u8
pub const fn charge_num(&self) -> u8
CHARGE_NUM. Encodings: 0: The SSC output bit 0’s period will be 1 clock cycle of system clock; 1: The SSC output bit 0’s period will be 2 clock cycles of system clock; 2: The SSC output bit 0’s period will be 3 clock cycles of system clock; 3: The SSC output bit 0’s period will be 4 clock cycles of system clock; 4: The SSC output bit 0’s period will be 5 clock cycles of system clock; 5: The SSC output bit 0’s period will be 6 clock cycles of system clock; 6: The SSC output bit 0’s period will be 7 clock cycles of system clock; 7: The SSC output bit 0’s period will be 8 clock cycles of system clock; 8: The SSC output bit 0’s period will be 9 clock cycles of system clock; 9: The SSC output bit 0’s period will be 10 clock cycles of system clock; 10: The SSC output bit 0’s period will be 11 clock cycles of system clock; 11: The SSC output bit 0’s period will be 12 clock cycles of system clock; 12: The SSC output bit 0’s period will be 13 clock cycles of system clock; 13: The SSC output bit 0’s period will be 14 clock cycles of system clock; 14: The SSC output bit 0’s period will be 15 clock cycles of system clock; 15: The SSC output bit 0’s period will be 16 clock cycles of system clock
Sourcepub const fn set_charge_num(&mut self, val: u8)
pub const fn set_charge_num(&mut self, val: u8)
CHARGE_NUM. Encodings: 0: The SSC output bit 0’s period will be 1 clock cycle of system clock; 1: The SSC output bit 0’s period will be 2 clock cycles of system clock; 2: The SSC output bit 0’s period will be 3 clock cycles of system clock; 3: The SSC output bit 0’s period will be 4 clock cycles of system clock; 4: The SSC output bit 0’s period will be 5 clock cycles of system clock; 5: The SSC output bit 0’s period will be 6 clock cycles of system clock; 6: The SSC output bit 0’s period will be 7 clock cycles of system clock; 7: The SSC output bit 0’s period will be 8 clock cycles of system clock; 8: The SSC output bit 0’s period will be 9 clock cycles of system clock; 9: The SSC output bit 0’s period will be 10 clock cycles of system clock; 10: The SSC output bit 0’s period will be 11 clock cycles of system clock; 11: The SSC output bit 0’s period will be 12 clock cycles of system clock; 12: The SSC output bit 0’s period will be 13 clock cycles of system clock; 13: The SSC output bit 0’s period will be 14 clock cycles of system clock; 14: The SSC output bit 0’s period will be 15 clock cycles of system clock; 15: The SSC output bit 0’s period will be 16 clock cycles of system clock
Sourcepub const fn ssc_control_reverse(&self) -> bool
pub const fn ssc_control_reverse(&self) -> bool
SSC_CONTROL_REVERSE. Encodings: 0: Keep the polarity of the SSC output bit; 1: Reverse the polarity of the SSC output bit
Sourcepub const fn set_ssc_control_reverse(&mut self, val: bool)
pub const fn set_ssc_control_reverse(&mut self, val: bool)
SSC_CONTROL_REVERSE. Encodings: 0: Keep the polarity of the SSC output bit; 1: Reverse the polarity of the SSC output bit
Sourcepub const fn ssc_mode(&self) -> Ssc0SscMode
pub const fn ssc_mode(&self) -> Ssc0SscMode
SSC_MODE. Encodings: 0: Using PRBS method generating SSC output bit; 1: Using up-down counter generating SSC output bit; 2: SSC function is disabled; 3: NC
Sourcepub const fn set_ssc_mode(&mut self, val: Ssc0SscMode)
pub const fn set_ssc_mode(&mut self, val: Ssc0SscMode)
SSC_MODE. Encodings: 0: Using PRBS method generating SSC output bit; 1: Using up-down counter generating SSC output bit; 2: SSC function is disabled; 3: NC
Sourcepub const fn prbs_outsel(&self) -> u8
pub const fn prbs_outsel(&self) -> u8
Primitive polynomial order 2..15 in PRBS mode; 0 and 1 are NC.
Sourcepub const fn set_prbs_outsel(&mut self, val: u8)
pub const fn set_prbs_outsel(&mut self, val: u8)
Primitive polynomial order 2..15 in PRBS mode; 0 and 1 are NC.