pub struct Peripherals {}Expand description
All the peripherals.
Fields§
§AC: ACAC
ADC: ADCADC
BOOT_LOAD: BOOT_LOADBOOT_LOAD
CPU: CPUCPU
EEPROM: EEPROMEEPROM
EXINT: EXINTEXINT
FUSE: FUSEFUSE
LOCKBIT: LOCKBITLOCKBIT
PORTB: PORTBPORTB
TC0: TC0TC0
TC1: TC1TC1
USI: USIUSI
WDT: WDTWDT
Implementations§
Source§impl Peripherals
impl Peripherals
Sourcepub fn take() -> Option<Peripherals>
pub fn take() -> Option<Peripherals>
Returns all the peripherals once.
Sourcepub unsafe fn steal() -> Peripherals
pub unsafe fn steal() -> Peripherals
Unchecked version of Peripherals::take.
§Safety
Each of the returned peripherals must be used at most once.
Auto Trait Implementations§
impl Freeze for Peripherals
impl RefUnwindSafe for Peripherals
impl Send for Peripherals
impl !Sync for Peripherals
impl Unpin for Peripherals
impl UnwindSafe for Peripherals
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