Struct attiny_hal::pac::Peripherals
source · pub struct Peripherals {}
Expand description
All the peripherals.
Fields§
§AC: AC
AC
ADC: ADC
ADC
BOOT_LOAD: BOOT_LOAD
BOOT_LOAD
CPU: CPU
CPU
EEPROM: EEPROM
EEPROM
EXINT: EXINT
EXINT
FUSE: FUSE
FUSE
LOCKBIT: LOCKBIT
LOCKBIT
PORTB: PORTB
PORTB
TC0: TC0
TC0
TC1: TC1
TC1
USI: USI
USI
WDT: WDT
WDT
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