Struct kubos_system::UBootVars [−][src]
A convenience wrapper for fetching UBoot variables used by KubOS
Methods
impl UBootVars
[src]
[−]
impl UBootVars
pub fn new() -> Self
[src]
[−]
pub fn new() -> Self
Default constructor that fetches UBoot vars using /usr/sbin/fw_printenv
pub fn new_from_path(path: &str) -> Self
[src]
[−]
pub fn new_from_path(path: &str) -> Self
Constructor that fetches UBoot vars with a custom path to fw_printenv
pub fn get_u32(&self, name: &str) -> Option<u32>
[src]
[−]
pub fn get_u32(&self, name: &str) -> Option<u32>
Returns the value of a UBoot variable encoded as a u32
pub fn get_str(&self, name: &str) -> Option<String>
[src]
[−]
pub fn get_str(&self, name: &str) -> Option<String>
Returns the value of a UBoot variable encoded as a String
pub fn get_bool(&self, name: &str) -> Option<bool>
[src]
[−]
pub fn get_bool(&self, name: &str) -> Option<bool>
Returns the value of a UBoot variable encoded as a bool