pub struct Board {
Show 40 fields pub pins: Pins, pub CBP: CBP, pub CPUID: CPUID, pub DCB: DCB, pub DWT: DWT, pub FPB: FPB, pub ITM: ITM, pub MPU: MPU, pub NVIC: NVIC, pub SCB: SCB, pub SYST: SYST, pub TPIU: TPIU, pub BUSCTRL: BUSCTRL, pub DMA: DMA, pub I2C0: I2C0, pub I2C1: I2C1, pub IO_QSPI: IO_QSPI, pub PIO0: PIO0, pub PIO1: PIO1, pub PPB: PPB, pub PSM: PSM, pub PWM: PWM, pub RESETS: RESETS, pub ROSC: ROSC, pub RTC: RTC, pub SPI0: SPI0, pub SPI1: SPI1, pub SYSCFG: SYSCFG, pub SYSINFO: SYSINFO, pub TBMAN: TBMAN, pub UART0: UART0, pub UART1: UART1, pub USBCTRL_DPRAM: USBCTRL_DPRAM, pub USBCTRL_REGS: USBCTRL_REGS, pub VREG_AND_CHIP_RESET: VREG_AND_CHIP_RESET, pub XIP_CTRL: XIP_CTRL, pub XIP_SSI: XIP_SSI, pub clocks: ClocksManager, pub adc: Adc, pub timer: Timer,
}
Expand description

Provides access to board peripherals on stamp-carrier

Fields§

§pins: Pins§CBP: CBP

Core peripheral: Cache and branch predictor maintenance operations

§CPUID: CPUID

Core peripheral: CPUID

§DCB: DCB

Core peripheral: Debug Control Block

§DWT: DWT

Core peripheral: Data Watchpoint and Trace unit

§FPB: FPB

Core peripheral: Flash Patch and Breakpoint unit

§ITM: ITM

Core peripheral: Instrumentation Trace Macrocell

§MPU: MPU

Core peripheral: Memory Protection Unit

§NVIC: NVIC

Core peripheral: Nested Vector Interrupt Controller

§SCB: SCB

Core peripheral: System Control Block

§SYST: SYST

Core peripheral: SysTick Timer

§TPIU: TPIU

Core peripheral: Trace Port Interface Unit

§BUSCTRL: BUSCTRL§DMA: DMA§I2C0: I2C0§I2C1: I2C1§IO_QSPI: IO_QSPI§PIO0: PIO0§PIO1: PIO1§PPB: PPB§PSM: PSM§PWM: PWM§RESETS: RESETS§ROSC: ROSC§RTC: RTC§SPI0: SPI0§SPI1: SPI1§SYSCFG: SYSCFG§SYSINFO: SYSINFO§TBMAN: TBMAN§UART0: UART0§UART1: UART1§USBCTRL_DPRAM: USBCTRL_DPRAM§USBCTRL_REGS: USBCTRL_REGS§VREG_AND_CHIP_RESET: VREG_AND_CHIP_RESET§XIP_CTRL: XIP_CTRL§XIP_SSI: XIP_SSI§clocks: ClocksManager§adc: Adc§timer: Timer

Implementations§

source§

impl Board

source

pub fn take() -> Option<Self>

source

pub fn new(p: Peripherals, cp: CorePeripherals) -> Self

Auto Trait Implementations§

§

impl RefUnwindSafe for Board

§

impl Send for Board

§

impl !Sync for Board

§

impl Unpin for Board

§

impl UnwindSafe for Board

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.