Enum kernel::tbfheader::TbfHeader[][src]

pub(crate) enum TbfHeader {
    TbfHeaderV1(&'static TbfHeaderV1),
    TbfHeaderV2(TbfHeaderV2),
    Padding(&'static TbfHeaderV2Base),
}

Type that represents the fields of the Tock Binary Format header.

This specifies the locations of the different code and memory sections in the tock binary, as well as other information about the application. The kernel can also use this header to keep persistent state about the application.

Variants

Methods

impl TbfHeader
[src]

Return whether this is an app or just padding between apps.

Return whether the application is enabled or not. Disabled applications are not started by the kernel.

Get the total size in flash of this app or padding.

Add up all of the relevant fields in header version 1, or just used the app provided value in version 2 to get the total amount of RAM that is needed for this app.

Get the number of bytes from the start of the app's region in flash that is for kernel use only. The app cannot write this region.

Get the offset from the beginning of the app's flash region where the app should start executing.

Get the name of the app.

Get the number of flash regions this app has specified in its header.

Get the offset and size of a given flash region.

Trait Implementations

impl Debug for TbfHeader
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for TbfHeader

impl Sync for TbfHeader