ElecDesigner
Member level 5
Is there a way in C to move individual binary bits from one int to another. I.E. say bit 3 of int a to bit 7 of int b etc.
It would be handy for mapping enable bits to various pins on a specific port on a micro.
It would be handy for mapping enable bits to various pins on a specific port on a micro.