Struct esp32_hal::CpuControl
source · [−]pub struct CpuControl { /* private fields */ }
Expand description
Control CPU Cores
Implementations
sourceimpl CpuControl
impl CpuControl
pub fn new(cpu_control: CpuControl) -> CpuControl
sourcepub fn unpark_core(&mut self, core: Cpu)
pub fn unpark_core(&mut self, core: Cpu)
Unpark the given core
sourcepub fn start_app_core<'a, 'b>(
&mut self,
entry: &'a mut (dyn FnMut() + 'a)
) -> Result<AppCoreGuard<'b>, Error>where
'a: 'b,
pub fn start_app_core<'a, 'b>(
&mut self,
entry: &'a mut (dyn FnMut() + 'a)
) -> Result<AppCoreGuard<'b>, Error>where
'a: 'b,
Start the APP (second) core
The second core will start running the closure entry
.
Auto Trait Implementations
impl RefUnwindSafe for CpuControl
impl Send for CpuControl
impl Sync for CpuControl
impl Unpin for CpuControl
impl UnwindSafe for CpuControl
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more