/**
 * Enable a PID to be filtered. Disable the consideration of a position of the internal table.
 *
 * \param id          index of the internal table
 * \param pid        PID to be filtered
 * \param onoff     activate de-activate the given table index
 */
int ITE9133_pid_filter(uint8_t id, uint16_t pid, uint8_t onoff)
{
    if(onoff)
    {
        Demodulator_addPidToFilter (&Global_demod,  id,  pid);
    }

    return 1;
}
Beispiel #2
0
static DWORD DRV_AddPID(
	void	*handle,
	BYTE	ucSlaveDemod,
	DWORD	index,
	Pid		pid)
{
	DWORD dwError = Error_NO_ERROR;

    PDEVICE_CONTEXT pdc = (PDEVICE_CONTEXT)handle;
          
    dwError = Demodulator_addPidToFilter ((Demodulator*) &pdc->Demodulator, ucSlaveDemod,index, pid);

	return dwError;
}