Struct atmega_hal::Peripherals
source · pub struct Peripherals {}
Expand description
All the peripherals.
Fields§
§AC: AC
AC
ADC: ADC
ADC
CPU: CPU
CPU
EEPROM: EEPROM
EEPROM
EXINT: EXINT
EXINT
FUSE: FUSE
FUSE
LOCKBIT: LOCKBIT
LOCKBIT
PORTB: PORTB
PORTB
PORTC: PORTC
PORTC
PORTD: PORTD
PORTD
SPI: SPI
SPI
TC0: TC0
TC0
TC1: TC1
TC1
TC2: TC2
TC2
TWI: TWI
TWI
USART0: USART0
USART0
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