Ich hatte mal Code von Bascom nach WinAVR übertragen. https://www.roboternetz.de/phpBB2/viewtopic.php?t=20209

Bei den einfachen WINAVR-Bitoperationen hatte ich hiermit noch kein Problem:
Zitat Zitat von Bascom
Command_rc5.7 = Ir_data_tmp.5
Zitat Zitat von WINAVR
Command_rc5 |= ( (Ir_data_tmp & (1<<5)) <<2 );
Nur wie übertragt man folgendes nach C?
Zitat Zitat von Bascom
Command_rc5.6 = Not Ir_data_tmp.6
Ich habe nur den Workaround gefunden:
Zitat Zitat von WINAVR
if ((Ir_data_tmp & (1<<6))==0) Command_rc5 |= (1<<6);