Пример #1
0
    unsigned short data() const
    {
        unsigned short val = 0;

        if (is_lsb()) {
            val += (m_lsb & 0x7f);
            if (is_msb())
                val += (m_msb & 0x7f) << 7;
        }
        else if (is_msb())
            val += (m_msb & 0x7f);

        return val;
    }
Пример #2
0
	bool is_14bit() const
		{ return is_msb() && is_lsb(); }
Пример #3
0
	bool is_any() const
		{ return is_msb() || is_lsb(); }