libdvbv5  1.10.1
Library to work with Digital TV devices on Linux
dvb-v5-std.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2011-2014 - Mauro Carvalho Chehab
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation version 2
7  * of the License.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  * Or, point your browser to http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
18  *
19  * Per-delivery system properties defined at libdvbv5 scope, following
20  * the same model as defined at the Linux DVB media specs:
21  * http://linuxtv.org/downloads/v4l-dvb-apis/FE_GET_SET_PROPERTY.html
22  */
23 #ifndef _DVB_V5_STD_H
24 #define _DVB_V5_STD_H
25 
26 #include <stddef.h>
27 #include "dvb-frontend.h"
28 
40 /*
41  * User DTV codes, for internal usage. There are two sets of
42  * properties. One for DTV properties and another one for statistics
43  */
44 
45 /*
46  * First set: DTV properties that don't belong to Kernelspace
47  *
48  * Those properties contain data that comes from the MPEG-TS
49  * tables, like audio/video/other PIDs, and satellite config
50  */
51 
108 #define DTV_USER_COMMAND_START 256
109 
110 #define DTV_POLARIZATION (DTV_USER_COMMAND_START + 0)
111 #define DTV_VIDEO_PID (DTV_USER_COMMAND_START + 1)
112 #define DTV_AUDIO_PID (DTV_USER_COMMAND_START + 2)
113 #define DTV_SERVICE_ID (DTV_USER_COMMAND_START + 3)
114 #define DTV_CH_NAME (DTV_USER_COMMAND_START + 4)
115 #define DTV_VCHANNEL (DTV_USER_COMMAND_START + 5)
116 #define DTV_SAT_NUMBER (DTV_USER_COMMAND_START + 6)
117 #define DTV_DISEQC_WAIT (DTV_USER_COMMAND_START + 7)
118 #define DTV_DISEQC_LNB (DTV_USER_COMMAND_START + 8)
119 #define DTV_FREQ_BPF (DTV_USER_COMMAND_START + 9)
120 #define DTV_PLS_CODE (DTV_USER_COMMAND_START + 10)
121 #define DTV_PLS_MODE (DTV_USER_COMMAND_START + 11)
122 #define DTV_COUNTRY_CODE (DTV_USER_COMMAND_START + 12)
123 
124 #define DTV_MAX_USER_COMMAND DTV_COUNTRY_CODE
125 
126 #define DTV_USER_NAME_SIZE (1 + DTV_MAX_USER_COMMAND - DTV_USER_COMMAND_START)
127 
145 };
146 
147 /*
148  * Second set: DTV statistics
149  *
150  * Those properties contain statistics measurements that aren't
151  * either provided by the Kernel via property cmd/value pair,
152  * like status (with has its own ioctl), or that are derivated
153  * measures from two or more Kernel reported stats.
154  */
155 
198 #define DTV_STAT_COMMAND_START 512
199 
200 #define DTV_STATUS (DTV_STAT_COMMAND_START + 0)
201 #define DTV_BER (DTV_STAT_COMMAND_START + 1)
202 #define DTV_PER (DTV_STAT_COMMAND_START + 2)
203 #define DTV_QUALITY (DTV_STAT_COMMAND_START + 3)
204 #define DTV_PRE_BER (DTV_STAT_COMMAND_START + 4)
205 
206 #define DTV_MAX_STAT_COMMAND DTV_PRE_BER
207 
208 #define DTV_STAT_NAME_SIZE (1 + DTV_MAX_STAT_COMMAND - DTV_STAT_COMMAND_START)
209 
210 /* There are currently 8 stats provided on Kernelspace */
211 #define DTV_NUM_KERNEL_STATS 8
212 
213 #define DTV_NUM_STATS_PROPS (DTV_NUM_KERNEL_STATS + DTV_STAT_NAME_SIZE)
214 
237 };
238 
239 #ifndef _DOXYGEN
240 
241 /*
242  * Some tables to translate from value to string
243  *
244  * These tables are raw ways to translate from some DTV values into strings.
245  * Please use the API-provided function dvb_cmd_name() and dvb_dvb_attr_names(),
246  * instead of using the tables directly.
247  */
248 
249 extern const unsigned int sys_dvbt_props[];
250 extern const unsigned int sys_dvbt2_props[];
251 extern const unsigned int sys_isdbt_props[];
252 extern const unsigned int sys_atsc_props[];
253 extern const unsigned int sys_atscmh_props[];
254 extern const unsigned int sys_dvbc_annex_ac_props[];
255 extern const unsigned int sys_dvbc_annex_b_props[];
256 extern const unsigned int sys_dvbs_props[];
257 extern const unsigned int sys_dvbs2_props[];
258 extern const unsigned int sys_turbo_props[];
259 extern const unsigned int sys_isdbs_props[];
260 extern const unsigned int *dvb_v5_delivery_system[];
261 extern const char *dvb_sat_pol_name[6];
262 extern const char *dvb_user_name[DTV_USER_NAME_SIZE + 1];
263 extern const char *dvb_stat_name[DTV_STAT_NAME_SIZE + 1];
264 extern const void *dvb_user_attr_names[];
265 
266 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
267 
268 #endif
#define DTV_USER_NAME_SIZE
Number of user commands.
Definition: dvb-v5-std.h:126
#define DTV_STAT_NAME_SIZE
Number of statistics commands.
Definition: dvb-v5-std.h:208
dvb_sat_polarization
Polarization types for Satellite systems.
Definition: dvb-v5-std.h:139
dvb_quality
Provides an estimation about the user&#39;s experience while watching to a given MPEG stream...
Definition: dvb-v5-std.h:232