pub struct ClockNodeView<'a> { /* private fields */ }Expand description
Specialized view for clock provider nodes.
Implementations§
Source§impl<'a> ClockNodeView<'a>
impl<'a> ClockNodeView<'a>
Sourcepub fn clock_cells(&self) -> u32
pub fn clock_cells(&self) -> u32
Get the value of the #clock-cells property.
Sourcepub fn clock_output_names(&self) -> Vec<String>
pub fn clock_output_names(&self) -> Vec<String>
Get clock output names from the clock-output-names property.
Sourcepub fn output_name(&self, index: usize) -> Option<String>
pub fn output_name(&self, index: usize) -> Option<String>
Get clock output name by index.
Sourcepub fn clock_type(&self) -> ClockType
pub fn clock_type(&self) -> ClockType
Get the clock type (Fixed or Normal).
Methods from Deref<Target = NodeGeneric<'a>>§
pub fn id(&self) -> NodeId
pub fn path(&self) -> String
pub fn regs(&self) -> Vec<RegFixed>
Sourcepub fn interrupt_parent(&self) -> Option<Phandle>
pub fn interrupt_parent(&self) -> Option<Phandle>
Returns the effective interrupt-parent, inheriting from ancestors.
Sourcepub fn interrupts(&self) -> Vec<InterruptRef>
pub fn interrupts(&self) -> Vec<InterruptRef>
Parses the interrupts property into interrupt references.
Trait Implementations§
Source§impl<'a> Clone for ClockNodeView<'a>
impl<'a> Clone for ClockNodeView<'a>
Source§fn clone(&self) -> ClockNodeView<'a>
fn clone(&self) -> ClockNodeView<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Deref for ClockNodeView<'a>
impl<'a> Deref for ClockNodeView<'a>
Source§impl<'a> From<ClockNodeView<'a>> for NodeType<'a>
impl<'a> From<ClockNodeView<'a>> for NodeType<'a>
Source§fn from(v: ClockNodeView<'a>) -> NodeType<'a>
fn from(v: ClockNodeView<'a>) -> NodeType<'a>
Converts to this type from the input type.
Source§impl<'a> TryInto<ClockNodeView<'a>> for NodeType<'a>
impl<'a> TryInto<ClockNodeView<'a>> for NodeType<'a>
impl<'a> Copy for ClockNodeView<'a>
Auto Trait Implementations§
impl<'a> Freeze for ClockNodeView<'a>
impl<'a> RefUnwindSafe for ClockNodeView<'a>
impl<'a> Send for ClockNodeView<'a>
impl<'a> !Sync for ClockNodeView<'a>
impl<'a> Unpin for ClockNodeView<'a>
impl<'a> UnsafeUnpin for ClockNodeView<'a>
impl<'a> UnwindSafe for ClockNodeView<'a>
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