Documentation ¶
Index ¶
- func Clear(b uint8, pos uint8) uint8
- func Hi(n uint16) uint8
- func IsSet(b uint8, pos uint8) bool
- func Joinu8(hi uint8, lo uint8) uint16
- func Lo(n uint16) uint8
- func Read(b uint8, pos uint8) uint8
- func RotateLeft(b uint8, pos uint8) uint8
- func RotateRight(b uint8, pos uint8) uint8
- func Set(b uint8, pos uint8) uint8
- func SwapNibbleU16(n uint16) uint16
- func SwapNibbleU8(b uint8) uint8
- func Toggle(b uint8, pos uint8, on bool) uint8
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RotateLeft ¶
RotateLeft rotates bits to the left by pos.
func RotateRight ¶
RotateRight rotates bits to the right by pos.
func SwapNibbleU16 ¶
SwapNibbleU16 swaps low and hi nibbles of uint16.
func SwapNibbleU8 ¶
SwapNibbleU8 swaps low and hi nibbles of uint8.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.