Exemplo n.º 1
0
void dtvd_tuner_cn_com_measure_time_set( void )
{
    DTVD_DEBUG_MSG_ENTER( 0, 0, 0 );

    tdtvd_tuner_cn.measure_time = tdtvd_tuner_nonvola.cn_cycle;

    DTVD_DEBUG_MSG_EXIT();
    return;
}
Exemplo n.º 2
0
void dtvd_tuner_cn_mtx_001_msg_core_stop( void )
{
    DTVD_DEBUG_MSG_ENTER( 0, 0, 0 );

    dtvd_tuner_cn_inevt_core_stop();

    DTVD_DEBUG_MSG_EXIT();
    return;
}
Exemplo n.º 3
0
void dtvd_tuner_core_mtx_013_msg_cn_stop_omt( void )
{
    DTVD_DEBUG_MSG_ENTER( 0, 0, 0 );

    dtvd_tuner_core_inevt_agc_stop_omt();

    DTVD_DEBUG_MSG_EXIT();
    return;
}
Exemplo n.º 4
0
void dtvd_tuner_tmcc_mtx_001_msg_tuner_end( void )
{
    DTVD_DEBUG_MSG_ENTER( 0, 0, 0 );

    dtvd_tuner_tmcc_com_set_status( D_DTVD_TUNER_TMCC_000 );

    DTVD_DEBUG_MSG_EXIT();
    return;
}
Exemplo n.º 5
0
signed int dtvd_tuner_autoeco_init( void )
{
    DTVD_DEBUG_MSG_ENTER( 0, 0, 0 );

    tdtvd_tuner_autoeco.status = D_DTVD_TUNER_AUTOECO_000;

    DTVD_DEBUG_MSG_EXIT();
    return D_DTVD_TUNER_OK;
}
Exemplo n.º 6
0
void dtvd_tuner_core_mtx_008_msg_agc_stop( void )
{
    DTVD_DEBUG_MSG_ENTER( 0, 0, 0 );

    dtvd_tuner_core_inevt_tuner_stop();

    DTVD_DEBUG_MSG_EXIT();
    return;
}
Exemplo n.º 7
0
signed int dtvd_tuner_cn_init( void )
{
    DTVD_DEBUG_MSG_ENTER( 0, 0, 0 );

    tdtvd_tuner_cn.status = D_DTVD_TUNER_CN_000;
    tdtvd_tuner_cn.seq_id = 0;

    DTVD_DEBUG_MSG_EXIT();
    return D_DTVD_TUNER_OK;
}
Exemplo n.º 8
0
void dtvd_tuner_cn_com_watch_timer_start( void )
{
    DTVD_DEBUG_MSG_ENTER( 0, 0, 0 );

    dtvd_tuner_timer_start( D_DTVD_TUNER_TIMER_WATCH_CN,
                            tdtvd_tuner_cn.cycle_time );

    DTVD_DEBUG_MSG_EXIT();
    return;
}
Exemplo n.º 9
0
void dtvd_tuner_agc_mtx_007_msg_core_start_omt( void )
{
    DTVD_DEBUG_MSG_ENTER( 0, 0, 0 );

    dtvd_tuner_agc_inevt_core_start_omt( D_DTVD_TUNER_OK );

    DTVD_DEBUG_MSG_EXIT();

    return;
}
Exemplo n.º 10
0
void dtvd_tuner_cn_mtx_001_msg_core_start_omt( void )
{
    signed int ret;
    DTVD_TUNER_INEVT_CN_CORE_START_OMT_t *data;

    DTVD_DEBUG_MSG_ENTER( 0, 0, 0 );

    data = &tdtvd_tuner_msg.buff.in_cn_core_start_omt;

    ret = dtvd_tuner_cn_com_symcount_read();

    if( ret != D_DTVD_TUNER_OK )
    {
        DTVD_DEBUG_MSG_ENTER( 1, 0, 0 );

        dtvd_tuner_cn_inevt_core_start_omt( D_DTVD_TUNER_NG );

        DTVD_DEBUG_MSG_EXIT();
        return;
    }

    dtvd_tuner_cn_com_symcount_chg_timer( data->carrier );

    ret = dtvd_tuner_cn_com_symcount_set( data->carrier );

    if( ret != D_DTVD_TUNER_OK )
    {
        DTVD_DEBUG_MSG_ENTER( 2, 0, 0 );

        dtvd_tuner_cn_inevt_core_start_omt( D_DTVD_TUNER_NG );

        DTVD_DEBUG_MSG_EXIT();
        return;
    }

    dtvd_tuner_cn_inevt_core_start_omt( D_DTVD_TUNER_OK );

    dtvd_tuner_cn_com_set_status( D_DTVD_TUNER_CN_005 );

    DTVD_DEBUG_MSG_EXIT();
    return;
}
Exemplo n.º 11
0
void dtvd_tuner_autoeco_mtx_002_msg_core_stop( void )
{
    DTVD_DEBUG_MSG_ENTER( 0, 0, 0 );

    tdtvd_tuner_autoeco.autoeco_flg = D_DTVD_TUNER_OFF;

    dtvd_tuner_autoeco_com_set_status( D_DTVD_TUNER_AUTOECO_001 );

    DTVD_DEBUG_MSG_EXIT();
    return;
}
Exemplo n.º 12
0
void dtvd_tuner_core_mtx_013_agc_start_omt( void )
{
    DTVD_DEBUG_MSG_ENTER( 0, 0, 0 );

    dtvd_tuner_core_set_result( D_DTVD_TUNER_NG );

    dtvd_tuner_core_wakeup( D_DTVD_TUNER_WAKEUP_AGC_START_OMT );

    DTVD_DEBUG_MSG_EXIT();
    return;
}
Exemplo n.º 13
0
signed int dtvd_tuner_cn_get_state( void )
{
    signed int state;

    DTVD_DEBUG_MSG_ENTER( 0, 0, 0 );

    state = tdtvd_tuner_cn.status;

    DTVD_DEBUG_MSG_EXIT();
    return state;
}
Exemplo n.º 14
0
void dtvd_tuner_ber_mtx_001_msg_core_end( void )
{
    DTVD_DEBUG_MSG_ENTER( 0, 0, 0 );

    dtvd_tuner_ber_inevt_core_end();

    dtvd_tuner_ber_com_set_status( D_DTVD_TUNER_BER_000 );

    DTVD_DEBUG_MSG_EXIT();
    return;
}
Exemplo n.º 15
0
void dtvd_tuner_core_mtx_013_cnr_stop_omt( void )
{
    DTVD_DEBUG_MSG_ENTER( 0, 0, 0 );

    dtvd_tuner_core_set_result( D_DTVD_TUNER_NG );

    dtvd_tuner_core_wakeup( D_DTVD_TUNER_WAKEUP_CNR_STOP_OMT );

    DTVD_DEBUG_MSG_EXIT();
    return;
}
Exemplo n.º 16
0
void dtvd_tuner_core_mtx_013_ber_get_omt( void )
{
    DTVD_DEBUG_MSG_ENTER( 0, 0, 0 );

    dtvd_tuner_core_set_result( D_DTVD_TUNER_NG );

    dtvd_tuner_core_wakeup( D_DTVD_TUNER_WAKEUP_BER_GET_OMT );

    DTVD_DEBUG_MSG_EXIT();
    return;
}
Exemplo n.º 17
0
void dtvd_tuner_tmcc_mtx_001_msg_tuner_infoget( void )
{
    DTVD_DEBUG_MSG_ENTER( 0, 0, 0 );

    dtvd_tuner_tmcc_com_get_timer_start();

    dtvd_tuner_tmcc_com_set_status( D_DTVD_TUNER_TMCC_002 );

    DTVD_DEBUG_MSG_EXIT();
    return;
}
Exemplo n.º 18
0
void dtvd_tuner_core_mtx_008_msg_ber_stop_omt( void )
{
    DTVD_DEBUG_MSG_ENTER( 0, 0, 0 );

    dtvd_tuner_core_inevt_autoeco_stop_omt();

    dtvd_tuner_core_inevt_cn_stop_omt();

    DTVD_DEBUG_MSG_EXIT();
    return;
}
Exemplo n.º 19
0
void dtvd_tuner_ber_mtx_001_msg_core_stop_omt( void )
{
    DTVD_DEBUG_MSG_ENTER( 0, 0, 0 );

    tdtvd_tuner_monitor.rx.ber.state = D_DTVD_TUNER_MEASURE_STATE_OFF;

    dtvd_tuner_ber_inevt_core_stop_omt( D_DTVD_TUNER_OK );

    DTVD_DEBUG_MSG_EXIT();
    return;
}
Exemplo n.º 20
0
void dtvd_tuner_cn_com_set_status
(
    signed int next_state                               
)
{
    DTVD_DEBUG_MSG_ENTER( next_state, 0, 0 );

    tdtvd_tuner_cn.status = next_state;

    DTVD_DEBUG_MSG_EXIT();
    return;
}
Exemplo n.º 21
0
void dtvd_tuner_agc_mtx_007_msg_core_measure_stop_omt( void )
{

    DTVD_DEBUG_MSG_ENTER( 0, 0, 0 );

    dtvd_tuner_agc_inevt_core_measure_stop_omt( D_DTVD_TUNER_OK );

    dtvd_tuner_agc_com_set_status( D_DTVD_TUNER_AGC_008 );

    DTVD_DEBUG_MSG_EXIT();

    return;
}
Exemplo n.º 22
0
void dtvd_tuner_core_mtx_008_msg_tuner_deverr( void )
{
    DTVD_DEBUG_MSG_ENTER( 0, 0, 0 );

    dtvd_tuner_core_set_result( D_DTVD_TUNER_NG );

    dtvd_tuner_core_wakeup( D_DTVD_TUNER_WAKEUP_STOP );

    dtvd_tuner_core_com_set_status( D_DTVD_TUNER_CORE_002 );

    DTVD_DEBUG_MSG_EXIT();
    return;
}
Exemplo n.º 23
0
void dtvd_tuner_core_mtx_013_stop_omt( void )
{
    DTVD_DEBUG_MSG_ENTER( 0, 0, 0 );

    dtvd_tuner_core_set_result( D_DTVD_TUNER_OK );

    dtvd_tuner_core_wakeup( D_DTVD_TUNER_WAKEUP_STOP_OMT );

    dtvd_tuner_core_com_set_status( D_DTVD_TUNER_CORE_002 );

    DTVD_DEBUG_MSG_EXIT();
    return;
}
Exemplo n.º 24
0
void dtvd_tuner_cn_mtx_001_msg_core_end( void )
{
    DTVD_DEBUG_MSG_ENTER( 0, 0, 0 );

    tdtvd_tuner_monitor.rx.cna.state = D_DTVD_TUNER_MEASURE_STATE_OFF;

    dtvd_tuner_cn_inevt_core_end();

    dtvd_tuner_cn_com_set_status( D_DTVD_TUNER_CN_000 );

    DTVD_DEBUG_MSG_EXIT();
    return;
}
Exemplo n.º 25
0
void dtvd_tuner_autoeco_mtx_003_msg_core_stop_omt( void )
{

    DTVD_DEBUG_MSG_ENTER( 0, 0, 0 );

    dtvd_tuner_timer_stop( D_DTVD_TUNER_TIMER_WATCH_AUTOECO_OMT );

    tdtvd_tuner_autoeco.autoeco_flg = D_DTVD_TUNER_OFF;

    dtvd_tuner_autoeco_com_set_status( D_DTVD_TUNER_AUTOECO_001 );

    DTVD_DEBUG_MSG_EXIT();
    return;
}
Exemplo n.º 26
0
void dtvd_tuner_agc_mtx_007_msg_core_stop_omt( void )
{
    DTVD_DEBUG_MSG_ENTER( 0, 0, 0 );

    tdtvd_tuner_monitor.rx.agc.state = D_DTVD_TUNER_MEASURE_STATE_OFF;

    dtvd_tuner_agc_inevt_core_stop_omt( D_DTVD_TUNER_OK );

    dtvd_tuner_agc_com_set_status( D_DTVD_TUNER_AGC_001 );

    DTVD_DEBUG_MSG_EXIT();

    return;
}
Exemplo n.º 27
0
void dtvd_tuner_cn_com_average( void )
{
    unsigned int   data;
    unsigned int   new_data;
    unsigned int   old_data;
    unsigned int   old_ave_data;
    unsigned int   ext;
    unsigned int   up;
    unsigned int   low;

    DTVD_DEBUG_MSG_ENTER( 0, 0, 0 );

    ext = tdtvd_tuner_cn.cn_new.ext;
    up = tdtvd_tuner_cn.cn_new.up;
    low = tdtvd_tuner_cn.cn_new.low;

    new_data = ( ( ( ext << 16 ) |                       
                 ( up << 8 ) ) |                         
                 ( low ) );                              

    ext = tdtvd_tuner_cn.cn_old.ext;
    up = tdtvd_tuner_cn.cn_old.up;
    low = tdtvd_tuner_cn.cn_old.low;

    old_data = ( ( ( ext << 16 ) |                       
                 ( up << 8 ) ) |                         
                 ( low ) );                              

    ext = tdtvd_tuner_cn.cn_old_ave.ext;
    up = tdtvd_tuner_cn.cn_old_ave.up;
    low = tdtvd_tuner_cn.cn_old_ave.low;

    old_ave_data = ( ( ( ext << 16 ) |                   
                     ( up << 8 ) ) |                     
                     ( low ) );                          

    data = ( ( tdtvd_tuner_cn.alpha * old_data ) +                   
             ( tdtvd_tuner_cn.beta * new_data ) +                    
             ( tdtvd_tuner_cn.gamma * old_ave_data ) ) /10;          

    tdtvd_tuner_cn.cn_old_ave.ext = ( unsigned char)( ( data & 0x00ff0000 ) >> 16 );

    tdtvd_tuner_cn.cn_old_ave.up = ( unsigned char)( ( data & 0x0000ff00 ) >> 8 );

    tdtvd_tuner_cn.cn_old_ave.low = ( unsigned char)( ( data & 0x000000ff ) );

    DTVD_DEBUG_MSG_EXIT();
    return;
}
Exemplo n.º 28
0
void dtvd_tuner_tuner_inevt_tmcc_stop( void )
{
    DTVD_TUNER_INEVT_TMCC_TUNER_STOP_t data;
    unsigned int length = sizeof(DTVD_TUNER_INEVT_TMCC_TUNER_STOP_t);

    DTVD_DEBUG_MSG_ENTER( 0, 0, 0 );

    dtvd_tuner_memset( &data, 0x00, length, length );

    dtvd_tuner_main_inevt_send_msg( D_DTVD_TUNER_INEVT_TMCC_TUNER_STOP,
                                    D_DTVD_TUNER_CTL_WATCH_TMCC,
                                    D_DTVD_TUNER_CTL_TUNER,
                                    &data, length );
    DTVD_DEBUG_MSG_EXIT();
    return;
}
Exemplo n.º 29
0
void dtvd_tuner_tuner_inevt_core_end( void )
{
    DTVD_TUNER_INEVT_CORE_TUNER_END_t data;
    unsigned int length = sizeof(DTVD_TUNER_INEVT_CORE_TUNER_END_t);

    DTVD_DEBUG_MSG_ENTER( 0, 0, 0 );

    dtvd_tuner_memset( &data, 0x00, length, length );

    dtvd_tuner_main_inevt_send_msg( D_DTVD_TUNER_INEVT_CORE_TUNER_END,
                                    D_DTVD_TUNER_CTL_CORE,
                                    D_DTVD_TUNER_CTL_TUNER,
                                    &data, length );
    DTVD_DEBUG_MSG_EXIT();
    return;
}
Exemplo n.º 30
0
void dtvd_tuner_tuner_inevt_state_tuner_init( void )
{
    DTVD_TUNER_INEVT_STATE_TUNER_INIT_t data;
    unsigned int length = sizeof(DTVD_TUNER_INEVT_STATE_TUNER_INIT_t);

    DTVD_DEBUG_MSG_ENTER( 0, 0, 0 );

    dtvd_tuner_memset( &data, 0x00, length, length );

    dtvd_tuner_main_inevt_send_msg( D_DTVD_TUNER_INEVT_STATE_TUNER_INIT,
                                    D_DTVD_TUNER_CTL_WATCH_STATE,
                                    D_DTVD_TUNER_CTL_TUNER,
                                    &data, length );
    DTVD_DEBUG_MSG_EXIT();
    return;
}