LINUX DVB API Version 3 - Linux TV.org
LINUX DVB API Version 3 - Linux TV.org
LINUX DVB API Version 3 - Linux TV.org
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
12 <strong>DVB</strong> FRONTEND <strong>API</strong><br />
int close(int fd);<br />
PARAMETERS<br />
ERRORS<br />
int fd File descriptor returned by a previous call to open().<br />
EBADF fd is not a valid open file descriptor.<br />
2.2.3 FE READ STATUS<br />
DESCRIPTION<br />
This ioctl call returns status information about the front-end. This call only<br />
requires read-only access to the device.<br />
SYNOPSIS<br />
int ioctl(int fd, int request = FE READ STATUS,<br />
fe status t *status);<br />
PARAMETERS<br />
int fd File descriptor returned by a previous call to open().<br />
int request Equals FE READ STATUS for this command.<br />
struct fe status t Points to the location where the front-end status word is<br />
*status<br />
to be stored.<br />
ERRORS<br />
EBADF fd is not a valid open file descriptor.<br />
EFAULT status points to invalid address.<br />
2.2.4 FE READ BER<br />
DESCRIPTION<br />
This ioctl call returns the bit error rate for the signal currently received/demodulated<br />
by the front-end. For this command, read-only access to<br />
the device is sufficient.<br />
SYNOPSIS<br />
int ioctl(int fd, int request = FE READ BER, uint32 t<br />
*ber);<br />
PARAMETERS<br />
int fd File descriptor returned by a previous call to open().<br />
int request Equals FE READ BER for this command.<br />
uint32 t *ber The bit error rate is stored into *ber.<br />
ERRORS<br />
EBADF fd is not a valid open file descriptor.<br />
EFAULT ber points to invalid address.<br />
ENOSIGNAL There is no signal, thus no meaningful bit error rate. Also<br />
returned if the front-end is not turned on.<br />
ENOSYS Function not available for this device.<br />
12