Struct power_system::application::Application
source · pub struct Application {
adc: ADC<'static, ADC1>,
uart: Uart<'static, UART1>,
onboard_led: OnboardLed,
battery_measurement_pin: BatteryMeasurementPin,
}
Fields§
§adc: ADC<'static, ADC1>
§uart: Uart<'static, UART1>
§onboard_led: OnboardLed
§battery_measurement_pin: BatteryMeasurementPin
Implementations§
source§impl Application
impl Application
sourcepub fn init(peripherals: Peripherals) -> Self
pub fn init(peripherals: Peripherals) -> Self
Initialises all the peripherals which the Application
will use.
sourcepub fn run(self, executor: &'static mut Executor) -> !
pub fn run(self, executor: &'static mut Executor) -> !
Runs the application by spawning each of the Application
’s tasks
Auto Trait Implementations§
impl RefUnwindSafe for Application
impl Send for Application
impl Sync for Application
impl Unpin for Application
impl !UnwindSafe for Application
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
const: unstable§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more