Expand description
A crate to help with bit manipulation of integers.
Structs
Like u8_region_mask
, but forces the value into an associated constant.
Like u16_region_mask
, but forces the value into an associated constant.
Like u32_region_mask
, but forces the value into an associated constant.
Two u8
values packed as a u16
.
Functions
Gets the B
bit.
Gets a L
to H
(inclusive) bit region of the value.
Like u8_get_region
but the output is shifted down appropriately.
Generates a bit mask where all bits in the region are 1.
Replaces the B
bit.
Replaces a L
to H
(inclusive) bit region of the value.
Like u8_with_region
but the value is shifted up appropriately.
Gets the B
bit.
Gets a L
to H
(inclusive) bit region of the value.
Like u16_get_region
but the output is shifted down appropriately.
Generates a bit mask where all bits in the region are 1.
Replaces the B
bit.
Replaces a L
to H
(inclusive) bit region of the value.
Like u16_with_region
but the value is shifted up appropriately.
Gets the B
bit.
Gets a L
to H
(inclusive) bit region of the value.
Like u32_get_region
but the output is shifted down appropriately.
Generates a bit mask where all bits in the region are 1.
Replaces the B
bit.
Replaces a L
to H
(inclusive) bit region of the value.
Like u32_with_region
but the value is shifted up appropriately.