mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
add get dcdc routine to axp2101 api
This commit is contained in:
parent
29b524375b
commit
bdd8b727a7
1 changed files with 3 additions and 1 deletions
|
|
@ -213,7 +213,9 @@ impl Axp2101 {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn get_dcdc(&mut self, which: WhichDcDc) -> (f32, bool) { self.dcdc_v_dvm[which as usize] }
|
||||
pub fn get_dcdc(&mut self, which: WhichDcDc) -> Option<(f32, bool)> {
|
||||
if self.dcdc_ena[which as usize] { Some(self.dcdc_v_dvm[which as usize]) } else { None }
|
||||
}
|
||||
|
||||
pub fn set_ldo(
|
||||
&mut self,
|
||||
|
|
|
|||
Loading…
Reference in a new issue