pub struct App {
pub args: AppArgs,
pub name: Ident,
pub inits: Inits,
pub idles: Idles,
pub late_resources: Map<LateResource>,
pub resources: Map<Resource>,
pub hardware_tasks: Map<HardwareTask>,
pub software_tasks: Map<SoftwareTask>,
pub extern_interrupts: ExternInterrupts,
/* private fields */
}
Expand description
The #[app]
attribute
Fields§
§args: AppArgs
The arguments to the #[app]
attribute
name: Ident
The name of the const
item on which the #[app]
attribute has been placed
inits: Inits
Per-core #[init]
functions
idles: Idles
Per-core #[idle]
functions
late_resources: Map<LateResource>
Late (runtime initialized) resources
resources: Map<Resource>
Early (compile time initialized) resources
hardware_tasks: Map<HardwareTask>
Hardware tasks: #[task(binds = ..)]
s
software_tasks: Map<SoftwareTask>
Software tasks: #[task]
extern_interrupts: ExternInterrupts
Interrupts used to dispatch software tasks
Implementations§
Source§impl App
impl App
Sourcepub fn uses_schedule(&self, core: u8) -> bool
pub fn uses_schedule(&self, core: u8) -> bool
Whether this core
uses the schedule
API
Sourcepub fn resource(&self, name: &Ident) -> Option<(&LateResource, Option<&Expr>)>
pub fn resource(&self, name: &Ident) -> Option<(&LateResource, Option<&Expr>)>
Returns information about the resource that matches name
Sourcepub fn resources<'a>(
&'a self,
analysis: &'a Analysis,
) -> impl Iterator<Item = (&'a Ident, &'a LateResource, Option<&'a Expr>, &'a Location)>
pub fn resources<'a>( &'a self, analysis: &'a Analysis, ) -> impl Iterator<Item = (&'a Ident, &'a LateResource, Option<&'a Expr>, &'a Location)>
Returns an iterator over all live resources
Trait Implementations§
Auto Trait Implementations§
impl Freeze for App
impl RefUnwindSafe for App
impl !Send for App
impl !Sync for App
impl Unpin for App
impl UnwindSafe for App
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