pub enum Bank {
Active,
Inactive,
}
Expand description
Flash banks identified by which one we boot from.
Memory layout:
[ Active bank | Inactive bank ]
^ ^ ^
0x0000_0000 flash_size/2 flash_size
Variants
Active
Bank that is mapped to 0x0000_0000
Active bank occupies first half of the flash memory.
Inactive
Bank that is not mapped to 0x0000_0000
Inactive bank occupies second half of the flash memory.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Bank
impl UnwindSafe for Bank
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Casts the value.
OverflowingCasts the value.
Casts the value.
Casts the value.
Casts the value.
UnwrappedCasts the value.
Casts the value.
WrappingCasts the value.