#pragma once #include namespace weee::core { union DCR { struct { unsigned e : 1; unsigned r : 1; unsigned i : 1; unsigned d : 1; unsigned le0 : 2; unsigned le1 : 2; unsigned fmt : 2; unsigned : 6; }; ircolib::u16 raw; }; struct video_interface { void write(ircolib::u32, ircolib::u16); private: DCR dcr{}; }; } // namespace weee::core