Exemplo n.º 1
0
DvbTunerTechnicalInfo V4LHelper::GetTechnicalInfo()
{
  DvbTunerTechnicalInfo result;
  memset(&result, 0, sizeof(result));

  if (m_frontendHandle == -1)
    return result;

  fe_status_t status;

  if (ioctl(m_frontendHandle, FE_READ_STATUS, &status) >= 0)
  {
    result.fe_status = (unsigned int) status;
  }

  result.signal = GetSignal();
  result.snr = GetSNR();
  result.ber = GetBER();
  result.ucb = GetUCB();

  return result;

}
Exemplo n.º 2
0
static int dvbfe_read_ber(struct dvb_frontend* fe, u32* ber)
{
	DECLARE_DEV;
	DBG_fCDVBFE("calling GetBER()\n");
	return GetBER(p->context, ber);
}