pub struct ClockRef {
pub name: Option<String>,
pub phandle: Phandle,
pub cells: u32,
pub specifier: Vec<u32>,
}Expand description
时钟引用,用于解析 clocks 属性
根据设备树规范,clocks 属性格式为:
clocks = <&clock_provider specifier [specifier ...]> [<&clock_provider2 ...>]
每个时钟引用由一个 phandle 和若干个 specifier cells 组成,
specifier 的数量由目标 clock provider 的 #clock-cells 属性决定。
Fields§
§name: Option<String>时钟的名称,来自 clock-names 属性
phandle: Phandle时钟提供者的 phandle
cells: u32provider 的 #clock-cells 值
specifier: Vec<u32>时钟选择器(specifier),通常第一个值用于选择时钟输出 长度由 provider 的 #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 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