libdvbv5  1.6.3
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 
104 #define DTV_USER_COMMAND_START 256
105 
106 #define DTV_POLARIZATION (DTV_USER_COMMAND_START + 0)
107 #define DTV_VIDEO_PID (DTV_USER_COMMAND_START + 1)
108 #define DTV_AUDIO_PID (DTV_USER_COMMAND_START + 2)
109 #define DTV_SERVICE_ID (DTV_USER_COMMAND_START + 3)
110 #define DTV_CH_NAME (DTV_USER_COMMAND_START + 4)
111 #define DTV_VCHANNEL (DTV_USER_COMMAND_START + 5)
112 #define DTV_SAT_NUMBER (DTV_USER_COMMAND_START + 6)
113 #define DTV_DISEQC_WAIT (DTV_USER_COMMAND_START + 7)
114 #define DTV_DISEQC_LNB (DTV_USER_COMMAND_START + 8)
115 #define DTV_FREQ_BPF (DTV_USER_COMMAND_START + 9)
116 #define DTV_PLS_CODE (DTV_USER_COMMAND_START + 10)
117 #define DTV_PLS_MODE (DTV_USER_COMMAND_START + 11)
118 
119 #define DTV_MAX_USER_COMMAND DTV_PLS_MODE
120 
121 #define DTV_USER_NAME_SIZE (1 + DTV_MAX_USER_COMMAND - DTV_USER_COMMAND_START)
122 
140 };
141 
142 /*
143  * Second set: DTV statistics
144  *
145  * Those properties contain statistics measurements that aren't
146  * either provided by the Kernel via property cmd/value pair,
147  * like status (with has its own ioctl), or that are derivated
148  * measures from two or more Kernel reported stats.
149  */
150 
193 #define DTV_STAT_COMMAND_START 512
194 
195 #define DTV_STATUS (DTV_STAT_COMMAND_START + 0)
196 #define DTV_BER (DTV_STAT_COMMAND_START + 1)
197 #define DTV_PER (DTV_STAT_COMMAND_START + 2)
198 #define DTV_QUALITY (DTV_STAT_COMMAND_START + 3)
199 #define DTV_PRE_BER (DTV_STAT_COMMAND_START + 4)
200 
201 #define DTV_MAX_STAT_COMMAND DTV_PRE_BER
202 
203 #define DTV_STAT_NAME_SIZE (1 + DTV_MAX_STAT_COMMAND - DTV_STAT_COMMAND_START)
204 
205 /* There are currently 8 stats provided on Kernelspace */
206 #define DTV_NUM_KERNEL_STATS 8
207 
208 #define DTV_NUM_STATS_PROPS (DTV_NUM_KERNEL_STATS + DTV_STAT_NAME_SIZE)
209 
232 };
233 
234 #ifndef _DOXYGEN
235 
236 /*
237  * Some tables to translate from value to string
238  *
239  * These tables are raw ways to translate from some DTV values into strings.
240  * Please use the API-provided function dvb_cmd_name() and dvb_dvb_attr_names(),
241  * instead of using the tables directly.
242  */
243 
244 extern const unsigned int sys_dvbt_props[];
245 extern const unsigned int sys_dvbt2_props[];
246 extern const unsigned int sys_isdbt_props[];
247 extern const unsigned int sys_atsc_props[];
248 extern const unsigned int sys_atscmh_props[];
249 extern const unsigned int sys_dvbc_annex_ac_props[];
250 extern const unsigned int sys_dvbc_annex_b_props[];
251 extern const unsigned int sys_dvbs_props[];
252 extern const unsigned int sys_dvbs2_props[];
253 extern const unsigned int sys_turbo_props[];
254 extern const unsigned int sys_isdbs_props[];
255 extern const unsigned int *dvb_v5_delivery_system[];
256 extern const char *dvb_sat_pol_name[6];
257 extern const char *dvb_user_name[DTV_USER_NAME_SIZE + 1];
258 extern const char *dvb_stat_name[DTV_STAT_NAME_SIZE + 1];
259 extern const void *dvb_user_attr_names[];
260 
261 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
262 
263 #endif
#define DTV_USER_NAME_SIZE
Number of user commands.
Definition: dvb-v5-std.h:121
#define DTV_STAT_NAME_SIZE
Number of statistics commands.
Definition: dvb-v5-std.h:203
dvb_sat_polarization
Polarization types for Satellite systems.
Definition: dvb-v5-std.h:134
dvb_quality
Provides an estimation about the user's experience while watching to a given MPEG stream...
Definition: dvb-v5-std.h:227