-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdvb.h
More file actions
30 lines (18 loc) · 760 Bytes
/
Copy pathdvb.h
File metadata and controls
30 lines (18 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once
#include <linux/dvb/frontend.h>
#include <linux/dvb/version.h>
#include "cardinfo.h"
#define ADAPTER_PATH "/dev/dvb"
// Check for DVB API version >= 5
#if DVB_API_VERSION < 5
#error "Local DVB API version is less than 5, this program requires version >= 5."
#endif
int countCards(); // Estimate number of available cards
void getCardInfo(int cardIdx, cardInfo* ci); // Get & Fill card info
int getApiVer();
void parseStatus(fe_status_t fest, capInfo_t st[]);
void parseCaps(fe_caps_t caps, capInfo_t cpi[]);
void parseOFDM(struct dvb_ofdm_parameters *ofdm, ofdmInfo_t *ofdmInfo);
void parseCodeRate(fe_code_rate_t coderate, char crInfo[]);
void parseModulation(fe_modulation_t modulation, char modInfo[]);
// TODO Parse QPSK, VSB, QAM