亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? lnb.c

?? 機(jī)頂盒Hamaro解調(diào)器驅(qū)動(dòng)。包含自動(dòng)搜臺(tái)
?? C
?? 第 1 頁 / 共 3 頁
字號(hào):
            else
            {
                result_frequency =
                        (int)tuning->tune.nim_satellite_tune.frequency -
                        (int)lnb_parameters.lnb_a;
                tone_enable = FALSE;
            }
            break;

        /* For an orbital position LNB, the resulting frequency is just the
           difference between the transponder frequency and the LNB frequency
           for the matching orbital position.  The 22 KHz signalling is set on
           if the requested orbital position specifies it, set off otherwise. */
        case LNB_ORBITAL_POSITION:
            if ( tuning->tune.nim_satellite_tune.orbital_position ==
                    lnb_parameters.orbital_position_a )
            {
                result_frequency =
                        (int)tuning->tune.nim_satellite_tune.frequency -
                        (int)lnb_parameters.lnb_a;
                if ( lnb_parameters.orbital_22khz_a )
                {
                    tone_enable = TRUE;
                }
                else
                {
                    tone_enable = FALSE;
                }
            }
            else if ( tuning->tune.nim_satellite_tune.orbital_position ==
                    lnb_parameters.orbital_position_b )
            {
                result_frequency =
                        (int)tuning->tune.nim_satellite_tune.frequency -
                        (int)lnb_parameters.lnb_b;
                if ( lnb_parameters.orbital_22khz_b )
                {
                    tone_enable = TRUE;
                }
                else
                {
                    tone_enable = FALSE;
                }
            }
            else
            {
                result_frequency =
                        (int)tuning->tune.nim_satellite_tune.frequency -
                        (int)lnb_parameters.lnb_c;
                if ( lnb_parameters.orbital_22khz_c )
                {
                    tone_enable = TRUE;
                }
                else
                {
                    tone_enable = FALSE;
                }
            }
            break;

        /* For a manual LNB, the resulting frequency is just the input
           frequency. */
        case LNB_MANUAL:
            result_frequency = (int)tuning->tune.nim_satellite_tune.frequency;
            break;

        /* For a frequency stacking LNB such as Dish Network's DishPro LNB,
           both left and right polarizations are available on the same 
           cable without signalling. One polarization occupies part of the
           bandwidth and the other occupies a different region of the 
           spectrum. In this case, there are 2 effective LNB frequencies
           with the choice of LNB being made depending upon the polarization
           of the transponder to be tuned. */
        case LNB_FREQUENCY_STACK:
            if((tuning->tune.nim_satellite_tune.polarisation == M_HORIZONTAL) ||
               (tuning->tune.nim_satellite_tune.polarisation == M_RIGHT))
            {
                result_frequency =
                        (int)tuning->tune.nim_satellite_tune.frequency -
                        (int)lnb_parameters.lnb_a;
                tone_enable = FALSE;
            }
            else
            {
                result_frequency =
                        (int)tuning->tune.nim_satellite_tune.frequency -
                        (int)lnb_parameters.lnb_b;
                tone_enable = FALSE;
            }
            break;
      
        default:
            #if RTOS != NOOS
                error_log( ERROR_WARNING | RC_SDM_BADVAL );
            #endif /* RTOS != NOOS */
            break;
    }

    /* Set the appropriate LNB settings if not a manually controlled LNB. */
    if ( lnb_parameters.type != LNB_MANUAL )
    {
        cnxt_lnb_set_polarization( pNIM,
                tuning->tune.nim_satellite_tune.polarisation);
        cnxt_lnb_set_tone_enable( pNIM, tone_enable );
    }

    /* In case the result frequency comes
       out negative, put it back positive. */
    if ( result_frequency < 0 )
    {
        result_frequency = -result_frequency;
    }

	 /* Multiply to convert KHz to Hz */
    result_frequency *= 1000;

    *freq = (u_int32)result_frequency;

    return DEMOD_SUCCESS;
}

/*****************************************************************************/
/*  FUNCTION:    cnxt_lnb_init                                               */
/*                                                                           */
/*  PARAMETERS:  pNIM - pointer to the Hamaro driver NIM structure for the    */
/*                   NIM the LNB code is being initialized for.              */
/*                                                                           */
/*  DESCRIPTION: This function initializes LNB signalling for the NIM.       */
/*                                                                           */
/*  RETURNS:     DEMOD_SUCCESS - the function completed successfully.        */
/*               DEMOD_ERROR - there was an error in a low level driver      */
/*                   function.                                               */
/*                                                                           */
/*  CONTEXT:     Must be called from a non-interrupt context.                */
/*                                                                           */
/*****************************************************************************/
DEMOD_STATUS cnxt_lnb_init( NIM *pNIM )
{
    /* Set the PIO that controls the direction of the 22KHz signal for output
       as the initial setting.  Any DiSEqC input will need to change it. */
    #if PIO_LNB_22KHZ_DIRECTION != GPIO_INVALID
        /*
         * !!! HACK ALERT !!!
         * WARNING!!!!! Hack required to keep from setting this PIO on a
         * Bronco1. When Bronco1 boards disappear, so should this hack. (PIO
         * setting should become conditional only upon value of
         * PIO_LNB_22KHZ_DIRECTION != GPIO_INVALID.)
         * !!! HACK ALERT !!!
         */
        #if I2C_CONFIG_EEPROM_ADDR != NOT_PRESENT
        {
            extern int ConfigurationValid;
            extern CONFIG_TABLE config_table;

            if ( ConfigurationValid &&
                    ( config_table.board_type != 0x00 ||
                        ((config_table.board_type == 0x00) &&
                         (config_table.board_rev != 0x01)) ) )
            {
                cnxt_gpio_set_output_level( PIO_LNB_22KHZ_DIRECTION, TRUE );
            }      
        }
        #endif
        /*
         * !!! HACK ALERT !!!
         * !!! HACK ALERT !!!
         */
    #endif

    /* Set up directional control for the PIO controlling LNB enable. */
    #if (INTERNAL_DEMOD == INTERNAL_COBRA_LIKE)
        /* No direction control necessary. */
    #else
        /* Hamaro GPIO4 is the enable for the external LNB signal generator;
           set as an output. */
        if ( RegisterWrite( pNIM, CX24130_GPIO4DIR, 1 ) != True )
        {
           #if RTOS != NOOS
           {
                int api_error;
                trace_new( TL_ERROR,
                        "Hamaro demod failed to set direction of LNB signal enable"
                        " (GPIO4).\n" );
                trace_new( TL_ERROR, "File: %s, line: %d\n",
                        API_GetErrorFilename(pNIM),
                        API_GetErrorLineNumber(pNIM) );
                api_error = API_GetLastError( pNIM );
                trace_new( TL_ERROR, "Error %d, %s\n", api_error,
                        API_GetErrorMessage(pNIM, (APIERRNO)api_error) );
            }
            #endif /* RTOS != NOOS */
            return DEMOD_ERROR;
        }
    #endif
    
    #if (LNBH21PD_ENABLED == TRUE)
        write_lnb21( 0x00 );
    #endif

    /* Actually enable LNB output unless initialization with output disabled is
       requested. */
    #ifndef LNB_INITIALLY_DISABLED
        cnxt_lnb_set_output_enable( pNIM, TRUE );
    #endif

    return DEMOD_SUCCESS;
}

DEMOD_STATUS cnxt_lnb_set_output_enable( NIM *pNIM, bool enable )
{
    /* Set up the LNB enable signal.  It is different for internal/external. */
    #if (INTERNAL_DEMOD == INTERNAL_COBRA_LIKE)
        #if (LNBH21PD_ENABLED == TRUE)
        {
            u_int8 bData;
            read_lnb21( &bData );
            bData &= ~0x04;
            if (enable) bData |= 0x04 ;
            write_lnb21( bData );
        }
        #else
           /* LNB enable signal is driven from the PIO expander; set to 1 to
              enable, 0 to disable. */
           cnxt_gpio_set_output_level( PIO_LNB_ENABLE, enable );
        #endif
        lnb_state.enabled = enable;
    #else
        /* Hamaro GPIO4 is the enable for the external LNB signal generator;
           set to 1 to enable, 0 to disable. */
        if ( RegisterWrite( pNIM, CX24130_GPIO4VAL, enable ) == True )
        {
            lnb_state.enabled = enable;
        }
        else
        {
            #if RTOS != NOOS
            {
                int api_error;
                trace_new( TL_ERROR,
                        "Hamaro demod failed to write to LNB signal enable"
                        " (GPIO4).\n" );
                trace_new( TL_ERROR, "File: %s, line: %d\n",
                        API_GetErrorFilename(pNIM),
                        API_GetErrorLineNumber(pNIM) );
                api_error = API_GetLastError( pNIM );
                trace_new( TL_ERROR, "Error %d, %s\n", api_error,
                        API_GetErrorMessage(pNIM, (APIERRNO)api_error) );
            }
            #endif /* RTOS != NOOS */
            return DEMOD_ERROR;
        }
    #endif
    return DEMOD_SUCCESS;
}

DEMOD_STATUS cnxt_lnb_get_output_enable( NIM *pNIM, bool *enable )
{
    *enable = lnb_state.enabled;
    return DEMOD_SUCCESS;
}

DEMOD_STATUS cnxt_lnb_set_polarization( NIM *pNIM,
        NIM_SATELLITE_POLARISATION polarization)
{

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲三级电影网站| 欧美一区二区精品| 亚洲图片你懂的| 97精品久久久午夜一区二区三区 | 国产精品伊人色| 国产丝袜欧美中文另类| 国产成人av影院| 亚洲欧美怡红院| 欧美色图12p| 久热成人在线视频| 国产三级一区二区三区| jvid福利写真一区二区三区| 亚洲女人****多毛耸耸8| 欧美在线999| 日本美女视频一区二区| 久久久91精品国产一区二区三区| 成人一区二区三区中文字幕| 一区二区三区电影在线播| 4438亚洲最大| 国产成a人亚洲| 亚洲国产精品久久人人爱蜜臀| 欧美一区二区三区在线视频| 国产精品亚洲人在线观看| 亚洲猫色日本管| 欧美一级黄色片| eeuss影院一区二区三区| 亚欧色一区w666天堂| 精品成人在线观看| 色久优优欧美色久优优| 久久精品久久99精品久久| 中文无字幕一区二区三区| 欧美视频一区二区三区四区| 国产一区二区三区久久久| 亚洲男人的天堂在线aⅴ视频| 欧美一区二区三区公司| 成人开心网精品视频| 热久久久久久久| 亚洲图片另类小说| 久久综合一区二区| 欧美日韩在线亚洲一区蜜芽| 欧美日韩综合在线| 成人久久视频在线观看| 久久国产福利国产秒拍| 亚洲欧美另类图片小说| 精品精品国产高清a毛片牛牛 | 色视频一区二区| 国产一区二区三区四区五区入口 | 亚洲一区二区三区三| 久久精品免视看| 91精品国产一区二区| 一本色道久久综合亚洲91| 国产精品一卡二卡| 日韩一区精品字幕| 亚洲制服丝袜一区| 国产精品色哟哟| 精品久久久久久无| 日韩一区二区三区观看| 欧美自拍偷拍一区| 99久久99久久精品免费观看| 国产mv日韩mv欧美| 狠狠色2019综合网| 日韩电影在线观看一区| 亚洲国产wwwccc36天堂| 亚洲你懂的在线视频| 中文字幕亚洲一区二区va在线| 欧美精品一区二区三区蜜臀| 日韩一级高清毛片| 欧美三级午夜理伦三级中视频| av电影天堂一区二区在线观看| 国产精品99久久久久久有的能看| 日韩影视精彩在线| 丝袜美腿亚洲综合| 亚洲午夜精品在线| 亚洲一区二区三区视频在线播放 | 中文字幕免费一区| 国产色一区二区| 国产精品视频yy9299一区| 欧美国产日本视频| 国产午夜精品一区二区三区四区| 欧美精品一区二区三区在线| 精品福利一区二区三区免费视频| 欧美精品一区二区三区蜜桃视频| 精品福利一区二区三区| 日韩精品专区在线影院重磅| 欧美tickling网站挠脚心| 91精品国产一区二区三区蜜臀| 日韩欧美电影一区| 久久亚洲精华国产精华液 | 色婷婷av一区二区三区之一色屋| 日本精品裸体写真集在线观看| 91丨九色丨蝌蚪丨老版| 在线区一区二视频| 欧美日韩国产高清一区二区三区| 欧美久久久影院| 日韩精品中文字幕在线一区| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 一级日本不卡的影视| 一区二区久久久| 日本va欧美va精品发布| 国产一区二区毛片| av电影天堂一区二区在线| 欧美三级视频在线播放| 91精品国产色综合久久ai换脸| 精品区一区二区| 国产精品高清亚洲| 亚洲大片免费看| 韩国午夜理伦三级不卡影院| k8久久久一区二区三区| 欧美顶级少妇做爰| 国产亚洲精品中文字幕| 亚洲人成网站精品片在线观看| 亚洲成人综合网站| 国产乱妇无码大片在线观看| 色噜噜夜夜夜综合网| 91精品国产91热久久久做人人 | 久久久精品免费网站| 成人欧美一区二区三区白人| 午夜成人免费电影| 国产一区二区成人久久免费影院 | 首页综合国产亚洲丝袜| 国产在线精品视频| 色综合久久天天| 精品福利在线导航| 一区二区三区在线视频观看58 | 久久久久久久久久久黄色| 亚洲手机成人高清视频| 精品影视av免费| 色av成人天堂桃色av| 久久久91精品国产一区二区三区| 一区二区高清视频在线观看| 丰满少妇在线播放bd日韩电影| 欧美日韩中文一区| 国产视频一区在线播放| 天天综合色天天| 色呦呦国产精品| 久久综合狠狠综合久久激情 | 色综合天天视频在线观看 | 欧美日韩一区中文字幕| 国产精品天干天干在线综合| 久久99蜜桃精品| 精品视频资源站| 综合久久国产九一剧情麻豆| 国模套图日韩精品一区二区| 在线视频欧美精品| 国产精品高潮呻吟| 国产91精品一区二区麻豆亚洲| 日韩午夜激情视频| 亚洲一区二区三区精品在线| 99免费精品视频| 国产日产亚洲精品系列| 精一区二区三区| 日韩午夜小视频| 日韩高清一级片| 欧美男生操女生| 亚洲丰满少妇videoshd| 91成人网在线| 亚洲一区影音先锋| 色哟哟一区二区三区| 亚洲天堂福利av| 波多野结衣亚洲| 国产精品免费视频一区| 国产成a人亚洲精| 欧美激情综合网| 成人午夜电影网站| 欧美激情中文字幕一区二区| 丰满亚洲少妇av| 欧美国产丝袜视频| 国产一区二区伦理| 国产亚洲欧美日韩日本| 国产在线播精品第三| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 国产91丝袜在线18| 国产色产综合色产在线视频 | 色综合久久久久网| 亚洲人吸女人奶水| 日本韩国一区二区三区视频| 一区二区三区在线观看动漫| 欧美亚洲动漫制服丝袜| 午夜av区久久| 精品少妇一区二区三区日产乱码| 精品一区二区三区在线播放视频| 日韩美女视频在线| 国产高清在线观看免费不卡| 国产精品视频在线看| 99久久精品情趣| 亚洲图片自拍偷拍| 欧美一区二区三区在线| 精品一区二区日韩| 日本一区二区动态图| 一本大道av一区二区在线播放| 一区二区三区视频在线观看| 欧美剧情片在线观看| 精品综合免费视频观看| 中文av一区特黄| 欧美性一二三区| 久久99国产精品麻豆| 欧美国产丝袜视频| 欧美酷刑日本凌虐凌虐| 国产精品一区二区在线播放 | 日韩高清在线一区|