void wizchip_clrinterrupt(intr_kind intr) { uint8_t ir = (uint8_t)intr; uint8_t sir = (uint8_t)((uint16_t)intr >> 8); #if _WIZCHIP_ < 5500 ir |= (1<<4); // IK_WOL #endif #if _WIZCHIP_ == 5200 ir |= (1 << 6); #endif #if _WIZCHIP_ < 5200 sir &= 0x0F; #endif #if _WIZCHIP_ == 5100 ir |= sir; setIR(ir); //A20150601 : For integrating with W5300 #elif _WIZCHIP_ == 5300 setIR( ((((uint16_t)ir) << 8) | (((uint16_t)sir) & 0x00FF)) ); #else setIR(ir); setSIR(sir); #endif }
void RC6_Init(unsigned char map) { if(map < RC6.num_tables) { ir_state = RC6_IDLE; ir_cmd = 0x0000; ir_actcmd = 0x0000; ir_wait = 0; copyMapS((unsigned short*)RC6.table[map].codes); setIR(RC6_Module); cycles = RC6_BITTIME; } }
void wizchip_clrinterrupt(intr_kind intr) { uint8_t ir = (uint8_t)intr; uint8_t sir = (uint8_t)((uint16_t)intr >> 8); #if _WIZCHIP_ < 5500 ir |= (1<<4); // IK_WOL #endif #if _WIZCHIP_ == 5200 ir |= (1 << 6); #endif #if _WIZCHIP_ < 5200 sir &= 0x0F; #endif #if _WIZCHIP_ == 5100 ir |= sir; setIR(ir); #else setIR(ir); setSIR(sir); #endif }
void IRRF_Init(unsigned char map) { if(map < IRRF.num_tables) { ir.state = IRRF_IDLE; ir.cmd = 0x0000; ir.actcmd = 0x0000; ir.general.bit = 0x00; ir.general.wait = 0; copyMapS((unsigned short*)IRRF.table[map].codes); setIR(IRRF_Module); cycles = IRRF_BITTIME; } }
void RC6_Init(unsigned char map) { if(map < RC6.num_tables) { ir.state = RC6_IDLE; ir.cmd = 0x0000; ir.actcmd = 0x0000; ir.general.wait = 0; ir.general.bit = 0; copyMapI((unsigned int*)RC6.table[map].codes); setIR(RC6_Module); cycles = RC6_BITTIME; } }
void REC80_Init(unsigned char map) { if(map < REC80.num_tables) { ir.cmd = 0x00000000; ir.actcmd = 0x00000000; ir.general.bit = 0; ir.general.numbits = 24; ir.general.wait = 0; ir.general.pause = REC80_WAITTIME; ir.state = REC80_IDLE; REC80_LoadMap(map); setIR(REC80_Module); } }
void SIRC_Init(unsigned char map) { if(map < SIRC.num_tables) { ir_cmd = 0x00000000; ir_actcmd = 0x00000000; ir_bit = 0; ir_numbits = 12; ir_wait = 0; ir_pause = SIRC_GTIME; ir_state = SIRC_IDLE; copyMapS((unsigned short*)SIRC.table[map].codes); setIR(SIRC_Module); } }
void NRC17_Init(unsigned char map) { if(map < NRC17.num_tables) { ir_state = NRC17_IDLE; ir_cmd = 0x0000; ir_actcmd = 0x0000; ir_bit = 0x00; ir_numbits = 16; ir_wait = 0; ir_pause = NRC17_BONTIME; copyMapS((unsigned short*)NRC17.table[map].codes); NRC17_LoadMap(map); setIR(NRC17_Module); } }
void initIR(void) { // irStop = select_ir; //make compiler happy for select_ir in mainmenu setIR(defModule); }