/* * section and descriptor parser * * Copyright (C) 2005 Kenneth Aafloy (kenneth@linuxtv.org) * Copyright (C) 2005 Andrew de Quincey (adq_dvb@lidskialf.net) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #ifndef _UCSI_DVB_CABLE_DELIVERY_DESCRIPTOR #define _UCSI_DVB_CABLE_DELIVERY_DESCRIPTOR 1 #ifdef __cplusplus extern "C" { #endif #include #include /** * dvb_cable_delivery_descriptor structure. */ struct dvb_cable_delivery_descriptor { struct descriptor d; uint32_t frequency; // BCD, units 100Hz EBIT2(uint16_t reserved : 12; , uint16_t fec_outer : 4; ); uint8_t modulation; EBIT2(uint32_t symbol_rate : 28; , // BCD, units 100Hz uint32_t fec_inner : 4; ); } __ucsi_packed; /** * Process a dvb_cable_delivery_descriptor. * * @param d Generic descriptor pointer. * @return dvb_cable_delivery_descriptor pointer, or NULL on error. */ static inline struct dvb_cable_delivery_descriptor* dvb_cable_delivery_descriptor_codec(struct descriptor* d) { if (d->len != (sizeof(struct dvb_cable_delivery_descriptor) - 2)) return NULL; bswap32((uint8_t*) d + 2); bswap16((uint8_t*) d + 6); bswap32((uint8_t*) d + 9); return (struct dvb_cable_delivery_descriptor*) d; } #ifdef __cplusplus } #endif #endif n>
/udelay.c?h=master&id=35755c86f661f8af41911331567e7fd4520cdfe7&follow=1'>[lcd4linux @ 2002-08-17 14:14:21 by reinelt]
AgeCommit message (Expand)AuthorFilesLines
2010-04-29update scan file for de-PrimacomChristoph Pfister1-0/+5
2010-04-29update scan file for dk-AllChristoph Pfister1-5/+11
2010-04-29update scan file for fi-TurkuChristoph Pfister1-1/+7
2010-04-29update scan file for uk-AberdareChristoph Pfister1-10/+15
2010-04-29update scan file for fr-NantesChristoph Pfister1-6/+6
reinelt3-67/+101
2002-08-17[lcd4linux @ 2002-08-17 13:10:22 by reinelt]reinelt9-182/+765
2002-08-17[lcd4linux @ 2002-08-17 12:54:08 by reinelt]reinelt1-7/+23
2002-04-30[lcd4linux @ 2002-04-30 07:20:15 by reinelt]reinelt2-173/+129
2002-04-29[lcd4linux @ 2002-04-29 11:00:25 by reinelt]reinelt14-2339/+5100
2001-09-14[lcd4linux @ 2001-09-14 05:57:06 by reinelt]reinelt1-1/+5
2001-09-13[lcd4linux @ 2001-09-13 07:40:57 by reinelt]reinelt1-0/+6
2001-09-12[lcd4linux @ 2001-09-12 06:17:22 by reinelt]reinelt2-1/+8
2001-09-12[lcd4linux @ 2001-09-12 05:58:16 by reinelt]reinelt3-9/+27
2001-09-12[lcd4linux @ 2001-09-12 05:37:22 by reinelt]reinelt4-23/+99
2001-09-11[lcd4linux @ 2001-09-11 06:43:43 by reinelt]reinelt1-1/+10