pub struct Nrf52832DefaultPeripherals<'a> {
pub nrf52: Nrf52DefaultPeripherals<'a>,
pub gpio_port: Port<'a, { crate::gpio::NUM_PINS }>,
}
Expand description
This struct, when initialized, instantiates all peripheral drivers for the nrf52840. If a board wishes to use only a subset of these peripherals, this should not be used or imported, and a modified version should be constructed manually in main.rs.
Fields§
§nrf52: Nrf52DefaultPeripherals<'a>
§gpio_port: Port<'a, { crate::gpio::NUM_PINS }>
Implementations§
Trait Implementations§
source§impl<'a> InterruptService for Nrf52832DefaultPeripherals<'a>
impl<'a> InterruptService for Nrf52832DefaultPeripherals<'a>
source§unsafe fn service_interrupt(&self, interrupt: u32) -> bool
unsafe fn service_interrupt(&self, interrupt: u32) -> bool
Service an interrupt, if supported by this chip. If this interrupt
number is not supported, return false.
Auto Trait Implementations§
impl<'a> !Freeze for Nrf52832DefaultPeripherals<'a>
impl<'a> !RefUnwindSafe for Nrf52832DefaultPeripherals<'a>
impl<'a> !Send for Nrf52832DefaultPeripherals<'a>
impl<'a> !Sync for Nrf52832DefaultPeripherals<'a>
impl<'a> Unpin for Nrf52832DefaultPeripherals<'a>
impl<'a> !UnwindSafe for Nrf52832DefaultPeripherals<'a>
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