Macro mos_hardware::lowbyte
source · [−]macro_rules! lowbyte {
($word:expr) => { ... };
}Expand description
Get low byte from a 16-bit integer using pointer arithmetic
Example:
let word = 0xABCD;
assert_eq!(highbyte!(word), 0xAB);
assert_eq!(lowbyte!(word), 0xCD);