Struct microbit::Board[][src]

pub struct Board {
Show 38 fields pub pins: Pins, pub display_pins: DisplayPins, pub buttons: Buttons, pub speaker_pin: P0_00<Disconnected>, pub i2c_internal: I2CInternalPins, pub i2c_external: I2CExternalPins, pub uart: UartPins, pub CBP: CBP, pub CPUID: CPUID, pub DCB: DCB, pub DWT: DWT, pub FPB: FPB, pub FPU: FPU, pub ITM: ITM, pub MPU: MPU, pub NVIC: NVIC, pub SCB: SCB, pub SYST: SYST, pub TPIU: TPIU, pub CLOCK: CLOCK, pub FICR: FICR, pub GPIOTE: GPIOTE, pub PWM0: PWM0, pub PWM1: PWM1, pub PWM2: PWM2, pub PWM3: PWM3, pub RADIO: RADIO, pub RNG: RNG, pub RTC0: RTC0, pub TIMER0: TIMER0, pub TIMER1: TIMER1, pub TIMER2: TIMER2, pub TIMER3: TIMER3, pub TIMER4: TIMER4, pub TWIM0: TWIM0, pub TWIS0: TWIS0, pub UARTE0: UARTE0, pub UARTE1: UARTE1,
}
Expand description

Provides access to the micrbobit

Fields

pins: Pins

GPIO pins that are not otherwise used

display_pins: DisplayPins

display pins

buttons: Buttons

buttons

speaker_pin: P0_00<Disconnected>

speaker

i2c_internal: I2CInternalPins

I2C internal bus pins

i2c_external: I2CExternalPins

I2C external bus pins

uart: UartPins

UART to debugger 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

FPU: FPU

Core peripheral: Floating Point 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

CLOCK: CLOCK

nRF52 peripheral: CLOCK

FICR: FICR

nRF52 peripheral: FICR

GPIOTE: GPIOTE

nRF52 peripheral: GPIOTE

PWM0: PWM0

nRF52 peripheral: PWM0

PWM1: PWM1

nRF52 peripheral: PWM1

PWM2: PWM2

nRF52 peripheral: PWM2

PWM3: PWM3

nRF52 peripheral: PWM3

RADIO: RADIO

nRF52 peripheral: RADIO

RNG: RNG

nRF52 peripheral: RNG

RTC0: RTC0

nRF52 peripheral: RTC0

TIMER0: TIMER0

nRF52 peripheral: TIMER0

TIMER1: TIMER1

nRF52 peripheral: TIMER1

TIMER2: TIMER2

nRF52 peripheral: TIMER2

TIMER3: TIMER3

nRF52 peripheral: TIMER3

TIMER4: TIMER4

nRF52 peripheral: TIMER4

TWIM0: TWIM0

nRF52 peripheral: TWIM0

TWIS0: TWIS0

nRF52 peripheral: TWIS0

UARTE0: UARTE0

nRF52 peripheral: UARTE0

UARTE1: UARTE1

nRF52 peripheral: UARTE1

Implementations

Take the peripherals safely

This method will return an instance of the board the first time it is called. It will return only None on subsequent calls.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Casts the value.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Casts the value.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Casts the value.

Should always be Self

Casts the value.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Casts the value.

Casts the value.