if got an ir receiver with rc5 code and this code is 14 bit long when i receive it, but i want to extract only the last 6 bits from it.
Whats the best data type to save the 0 and 1 of the signal and how do i extract a certain part of the data?

Greetings Franz