Struct thingy_91_nrf9160_bsp::Board[][src]

pub struct Board {
Show fields pub pins: Pins, pub cdc_uart: Uarte<UARTE0_NS>, pub leds: Leds<PWM0_NS>, pub buttons: Buttons, 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_NS: CLOCK_NS, pub DPPIC_NS: DPPIC_NS, pub EGU0_NS: EGU0_NS, pub EGU1_NS: EGU1_NS, pub EGU2_NS: EGU2_NS, pub EGU3_NS: EGU3_NS, pub EGU4_NS: EGU4_NS, pub EGU5_NS: EGU5_NS, pub FPU_NS: FPU_NS, pub GPIOTE1_NS: GPIOTE1_NS, pub I2S_NS: I2S_NS, pub IPC_NS: IPC_NS, pub KMU_NS: KMU_NS, pub NVMC_NS: NVMC_NS, pub PDM_NS: PDM_NS, pub POWER_NS: POWER_NS, pub PWM1_NS: PWM1_NS, pub PWM2_NS: PWM2_NS, pub PWM3_NS: PWM3_NS, pub REGULATORS_NS: REGULATORS_NS, pub RTC0_NS: RTC0_NS, pub RTC1_NS: RTC1_NS, pub SAADC_NS: SAADC_NS, pub SPIM0_NS: SPIM0_NS, pub SPIM1_NS: SPIM1_NS, pub SPIM2_NS: SPIM2_NS, pub SPIM3_NS: SPIM3_NS, pub SPIS0_NS: SPIS0_NS, pub SPIS1_NS: SPIS1_NS, pub SPIS2_NS: SPIS2_NS, pub SPIS3_NS: SPIS3_NS, pub TIMER0_NS: TIMER0_NS, pub TIMER1_NS: TIMER1_NS, pub TIMER2_NS: TIMER2_NS, pub TWIM0_NS: TWIM0_NS, pub TWIM1_NS: TWIM1_NS, pub TWIM2_NS: TWIM2_NS, pub TWIM3_NS: TWIM3_NS, pub TWIS0_NS: TWIS0_NS, pub TWIS1_NS: TWIS1_NS, pub TWIS2_NS: TWIS2_NS, pub TWIS3_NS: TWIS3_NS, pub UARTE1_NS: UARTE1_NS, pub UARTE2_NS: UARTE2_NS, pub UARTE3_NS: UARTE3_NS, pub VMC_NS: VMC_NS, pub WDT_NS: WDT_NS,
}
Expand description

Provides access to all features of the Thingy:91 board

Fields

pins: Pins

The nRF9160’s pins which are not otherwise occupied on the Thingy:91

cdc_uart: Uarte<UARTE0_NS>

The Thingy:91 UART which is wired to the virtual USB CDC port

leds: Leds<PWM0_NS>

The LEDs on the Thingy:91 board

buttons: Buttons

The buttons on the Thingy:91 board

CBP: CBP

Cortex-M33 Core peripheral: Cache and branch predictor maintenance operations

CPUID: CPUID

Cortex-M33 Core peripheral: CPUID

DCB: DCB

Cortex-M33 Core peripheral: Debug Control Block

DWT: DWT

Cortex-M33 Core peripheral: Data Watchpoint and Trace unit

FPB: FPB

Cortex-M33 Core peripheral: Flash Patch and Breakpoint unit

FPU: FPU

Cortex-M33 Core peripheral: Floating Point Unit

ITM: ITM

Cortex-M33 Core peripheral: Instrumentation Trace Macrocell

MPU: MPU

Cortex-M33 Core peripheral: Memory Protection Unit

NVIC: NVIC

Cortex-M33 Core peripheral: Nested Vector Interrupt Controller

SCB: SCB

Cortex-M33 Core peripheral: System Control Block

SYST: SYST

Cortex-M33 Core peripheral: SysTick Timer

TPIU: TPIU

Cortex-M33 Core peripheral: Trace Port Interface Unit

CLOCK_NS: CLOCK_NS

nRF9160 Non-secure peripheral: Clock management 0

DPPIC_NS: DPPIC_NS

nRF9160 Non-secure peripheral: Distributed Programmable Peripheral Interconnect Controller 0

EGU0_NS: EGU0_NS

nRF9160 Non-secure peripheral: Event Generator Unit 0

EGU1_NS: EGU1_NS

nRF9160 Non-secure peripheral: Event Generator Unit 1

EGU2_NS: EGU2_NS

nRF9160 Non-secure peripheral: Event Generator Unit 2

EGU3_NS: EGU3_NS

nRF9160 Non-secure peripheral: Event Generator Unit 3

EGU4_NS: EGU4_NS

nRF9160 Non-secure peripheral: Event Generator Unit 3

EGU5_NS: EGU5_NS

nRF9160 Non-secure peripheral: Event Generator Unit 5

FPU_NS: FPU_NS

nRF9160 Non-secure peripheral: FPU 0

GPIOTE1_NS: GPIOTE1_NS

nRF9160 Non-secure peripheral: GPIO Tasks and Events 1

I2S_NS: I2S_NS

nRF9160 Non-secure peripheral: Inter-IC Sound 0

IPC_NS: IPC_NS

nRF9160 Non-secure peripheral: Inter Processor Communication 0

KMU_NS: KMU_NS

nRF9160 Non-secure peripheral: Key management unit 0

NVMC_NS: NVMC_NS

nRF9160 Non-secure peripheral: Non-volatile memory controller 0

PDM_NS: PDM_NS

nRF9160 Non-secure peripheral: Pulse Density Modulation (Digital Microphone) Interface 0

POWER_NS: POWER_NS

nRF9160 Non-secure peripheral: Power control 0

PWM1_NS: PWM1_NS

nRF9160 Non-secure peripheral: Pulse width modulation unit 1

PWM2_NS: PWM2_NS

nRF9160 Non-secure peripheral: Pulse width modulation unit 2

PWM3_NS: PWM3_NS

nRF9160 Non-secure peripheral: Pulse width modulation unit 3

REGULATORS_NS: REGULATORS_NS

nRF9160 Non-secure peripheral: Voltage regulators control 0

RTC0_NS: RTC0_NS

nRF9160 Non-secure peripheral: Real-time counter 0

RTC1_NS: RTC1_NS

nRF9160 Non-secure peripheral: Real-time counter 1

SAADC_NS: SAADC_NS

nRF9160 Non-secure peripheral: Analog to Digital Converter 0

SPIM0_NS: SPIM0_NS

nRF9160 Non-secure peripheral: Serial Peripheral Interface Master with EasyDMA 0

SPIM1_NS: SPIM1_NS

nRF9160 Non-secure peripheral: Serial Peripheral Interface Master with EasyDMA 1

SPIM2_NS: SPIM2_NS

nRF9160 Non-secure peripheral: Serial Peripheral Interface Master with EasyDMA 2

SPIM3_NS: SPIM3_NS

nRF9160 Non-secure peripheral: Serial Peripheral Interface Master with EasyDMA 3

SPIS0_NS: SPIS0_NS

nRF9160 Non-secure peripheral: SPI Slave 0

SPIS1_NS: SPIS1_NS

nRF9160 Non-secure peripheral: SPI Slave 1

SPIS2_NS: SPIS2_NS

nRF9160 Non-secure peripheral: SPI Slave 2

SPIS3_NS: SPIS3_NS

nRF9160 Non-secure peripheral: SPI Slave 3

TIMER0_NS: TIMER0_NS

nRF9160 Non-secure peripheral: Timer/Counter 0

TIMER1_NS: TIMER1_NS

nRF9160 Non-secure peripheral: Timer/Counter 1

TIMER2_NS: TIMER2_NS

nRF9160 Non-secure peripheral: Timer/Counter 2

TWIM0_NS: TWIM0_NS

nRF9160 Non-secure peripheral: I2C compatible Two-Wire Master Interface with EasyDMA 0

TWIM1_NS: TWIM1_NS

nRF9160 Non-secure peripheral: I2C compatible Two-Wire Master Interface with EasyDMA 1

TWIM2_NS: TWIM2_NS

nRF9160 Non-secure peripheral: I2C compatible Two-Wire Master Interface with EasyDMA 2

TWIM3_NS: TWIM3_NS

nRF9160 Non-secure peripheral: I2C compatible Two-Wire Master Interface with EasyDMA 3

TWIS0_NS: TWIS0_NS

nRF9160 Non-secure peripheral: I2C compatible Two-Wire Slave Interface with EasyDMA 0

TWIS1_NS: TWIS1_NS

nRF9160 Non-secure peripheral: I2C compatible Two-Wire Slave Interface with EasyDMA 1

TWIS2_NS: TWIS2_NS

nRF9160 Non-secure peripheral: I2C compatible Two-Wire Slave Interface with EasyDMA 2

TWIS3_NS: TWIS3_NS

nRF9160 Non-secure peripheral: I2C compatible Two-Wire Slave Interface with EasyDMA 3

UARTE1_NS: UARTE1_NS

nRF9160 Non-secure peripheral: UART with EasyDMA 1

UARTE2_NS: UARTE2_NS

nRF9160 Non-secure peripheral: UART with EasyDMA 2

UARTE3_NS: UARTE3_NS

nRF9160 Non-secure peripheral: UART with EasyDMA 3

VMC_NS: VMC_NS

nRF9160 Non-secure peripheral: Volatile Memory controller 0

WDT_NS: WDT_NS

nRF9160 Non-secure peripheral: Watchdog Timer 0

Implementations

impl Board[src]

pub fn take() -> Option<Self>[src]

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.

pub unsafe fn steal() -> Self[src]

Steal the peripherals

This method produces an instance of the board, regardless of whether another instance was create previously.

Safety

This method can be used to create multiple instances of the board. Those instances can interfere with each other, causing all kinds of unexpected behavior and circumventing safety guarantees in many ways.

Always use Board::take, unless you really know what you’re doing.

Auto Trait Implementations

impl Send for Board

impl !Sync for Board

impl Unpin for Board

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.