pub struct ClockRef {
pub name: Option<String>,
pub phandle: Phandle,
pub cells: u32,
pub specifier: Vec<u32>,
}Expand description
Clock reference, used to parse clocks property.
According to the device tree specification, the clocks property format is:
clocks = <&clock_provider specifier [specifier ...]> [<&clock_provider2 ...>]
Each clock reference consists of a phandle and several specifier cells,
the number of specifiers is determined by the target clock provider’s #clock-cells property.
Fields§
§name: Option<String>Clock name, from clock-names property
phandle: PhandlePhandle of the clock provider
cells: u32#clock-cells value of the provider
specifier: Vec<u32>Clock selector (specifier), usually the first value is used to select clock output Length is determined by provider’s #clock-cells
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClockRef
impl RefUnwindSafe for ClockRef
impl Send for ClockRef
impl Sync for ClockRef
impl Unpin for ClockRef
impl UnsafeUnpin for ClockRef
impl UnwindSafe for ClockRef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more