Type Alias PSC_USBPDCLK_R

Source
pub type PSC_USBPDCLK_R = FieldReader<PSC_USBPDCLK>;
Expand description

Field PSC_USBPDCLK reader - Pre-scaler division ratio for generating ucpd_clk The bitfield determines the division ratio of a kernel clock pre-scaler producing UCPD peripheral clock (ucpd_clk). It is recommended to use the pre-scaler so as to set the ucpd_clk frequency in the range from 6 to 9 MHz.

Aliased Type§

struct PSC_USBPDCLK_R { /* private fields */ }

Implementations§

Source§

impl PSC_USBPDCLK_R

Source

pub const fn variant(&self) -> Option<PSC_USBPDCLK>

Get enumerated values variant

Source

pub fn is_div1(&self) -> bool

Divide by 1

Source

pub fn is_div2(&self) -> bool

Divide by 2

Source

pub fn is_div4(&self) -> bool

Divide by 4

Source

pub fn is_div8(&self) -> bool

Divide by 8

Source

pub fn is_div16(&self) -> bool

Divide by 16