Enum kernel::process::TbfHeader [] [src]

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]

[src]

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

[src]

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

[src]

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

[src]

Return whether we want the kernel to do PIC fixup for this app. If we ever add more than one kernel PIC fixup method this would have to get extended to support that.

[src]

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.

[src]

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.

[src]

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

[src]

Get the name of the app.

[src]

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

[src]

Get the offset and size of a given flash region.

Trait Implementations

impl Debug for TbfHeader
[src]

[src]

Formats the value using the given formatter. Read more