pub struct Nrf52840DefaultPeripherals<'a> {
pub nrf52: Nrf52DefaultPeripherals<'a>,
pub ieee802154_radio: Radio<'a>,
pub usbd: Usbd<'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>
§ieee802154_radio: Radio<'a>
§usbd: Usbd<'a>
§gpio_port: Port<'a, { crate::gpio::NUM_PINS }>
Implementations§
Trait Implementations§
Source§impl InterruptService for Nrf52840DefaultPeripherals<'_>
impl InterruptService for Nrf52840DefaultPeripherals<'_>
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 Nrf52840DefaultPeripherals<'a>
impl<'a> !RefUnwindSafe for Nrf52840DefaultPeripherals<'a>
impl<'a> !Send for Nrf52840DefaultPeripherals<'a>
impl<'a> !Sync for Nrf52840DefaultPeripherals<'a>
impl<'a> Unpin for Nrf52840DefaultPeripherals<'a>
impl<'a> !UnwindSafe for Nrf52840DefaultPeripherals<'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