00001 /* 00002 * hdhomerun_types.h 00003 * 00004 * Copyright © 2008-2009 Silicondust USA Inc. <www.silicondust.com>. 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 3 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library. If not, see <http://www.gnu.org/licenses/>. 00018 * 00019 * As a special exception to the GNU Lesser General Public License, 00020 * you may link, statically or dynamically, an application with a 00021 * publicly distributed version of the Library to produce an 00022 * executable file containing portions of the Library, and 00023 * distribute that executable file under terms of your choice, 00024 * without any of the additional requirements listed in clause 4 of 00025 * the GNU Lesser General Public License. 00026 * 00027 * By "a publicly distributed version of the Library", we mean 00028 * either the unmodified Library as distributed by Silicondust, or a 00029 * modified version of the Library that is distributed under the 00030 * conditions defined in the GNU Lesser General Public License. 00031 */ 00032 00033 #define HDHOMERUN_STATUS_COLOR_NEUTRAL 0xFFFFFFFF 00034 #define HDHOMERUN_STATUS_COLOR_RED 0xFFFF0000 00035 #define HDHOMERUN_STATUS_COLOR_YELLOW 0xFFFFFF00 00036 #define HDHOMERUN_STATUS_COLOR_GREEN 0xFF00C000 00037 00038 struct hdhomerun_device_t; 00039 struct hdhomerun_device_allocation_t; 00040 00041 struct hdhomerun_tuner_status_t { 00042 char channel[32]; 00043 char lock_str[32]; 00044 bool_t signal_present; 00045 bool_t lock_supported; 00046 bool_t lock_unsupported; 00047 unsigned int signal_strength; 00048 unsigned int signal_to_noise_quality; 00049 unsigned int symbol_error_quality; 00050 uint32_t raw_bits_per_second; 00051 uint32_t packets_per_second; 00052 }; 00053 00054 struct hdhomerun_channelscan_program_t { 00055 char program_str[64]; 00056 uint16_t program_number; 00057 uint16_t virtual_major; 00058 uint16_t virtual_minor; 00059 uint16_t type; 00060 char name[32]; 00061 }; 00062 00063 #define HDHOMERUN_CHANNELSCAN_MAX_PROGRAM_COUNT 64 00064 00065 struct hdhomerun_channelscan_result_t { 00066 char channel_str[64]; 00067 uint32_t channelmap; 00068 uint32_t frequency; 00069 struct hdhomerun_tuner_status_t status; 00070 int program_count; 00071 struct hdhomerun_channelscan_program_t programs[HDHOMERUN_CHANNELSCAN_MAX_PROGRAM_COUNT]; 00072 bool_t transport_stream_id_detected; 00073 uint16_t transport_stream_id; 00074 }; 00075 00076 struct hdhomerun_plotsample_t { 00077 int16_t real; 00078 int16_t imag; 00079 };
1.5.5