void REC80_Stop(void) { if(ir.actcmd != 0x00000000) { waitend: if(ir.state != REC80_IDLE) goto waitend; } ir.actcmd = 0x00000000; stopIR(); }
void SIRC_Stop(void) { if(ir_actcmd != 0x00000000) { waitend: if(ir_state != SIRC_IDLE) goto waitend; } ir_actcmd = 0x0000; stopIR(); }
void RC5_Stop(void) { if((ir_actcmd != 0x0000) && (ir_actcmd != 0x1000)) { waitend: if(ir_state != RC5_IDLE) goto waitend; } ir_toggle++; ir_actcmd = 0x0000; stopIR(); }
void RC6_Stop(void) { if(ir.actcmd != 0x00000000) { waitend: if(ir.state != RC6_IDLE) goto waitend; } ir.toggle++; ir.actcmd = 0x0000; stopIR(); }
void NRC17_Stop(void) { if(ir_actcmd != 0x0000) { retry: if(ir_state == NRC17_IDLE) { ir_cmd = ir_startstop; ir_state++; } else goto retry; waitend: if(ir_state != NRC17_IDLE) goto waitend; } ir_actcmd = 0x0000; stopIR(); }