Exemple #1
0
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;
	}
}
Exemple #2
0
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;
	}
}
Exemple #3
0
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);
	}
}
Exemple #4
0
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);
	}
}