30 BITS16(uint16_t init) : val(init) {}
34 val = static_cast<uint16_t>(val | 01 << bit_num);
39 val = static_cast<uint16_t>(val & ~(01 << bit_num));
46 val = static_cast<uint16_t>(val | 01 << bit_num);
48 val = static_cast<uint16_t>(val & ~(01 << bit_num));
52 uint8_t bit_num)
const {
53 return (val >> bit_num) & 01;