You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.2 KiB
48 lines
1.2 KiB
/*
|
|
* Copyright (c) Hisilicon Technologies Co., Ltd. 2017-2021. All rights reserved.
|
|
* Description: TER IAPI interface
|
|
* Author: Hisilicon
|
|
* Created: 2017-06-30
|
|
*/
|
|
#ifndef __IAPI_TER_H__
|
|
#define __IAPI_TER_H__
|
|
|
|
#include "uapi_frontend.h"
|
|
#include "drv_frontend_struct.h"
|
|
|
|
#ifdef __cplusplus
|
|
#if __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
#endif /* __cplusplus */
|
|
|
|
#define TER_RF_MIN 48000 /* kHz */
|
|
#define TER_RF_MAX 887000 /* kHz */
|
|
#define TER_BW_MIN 1700 /* KHz */
|
|
#define TER_BW_MAX 10000 /* KHz */
|
|
|
|
typedef struct {
|
|
ext_drv_modulation_type modulation;
|
|
ext_drv_frontend_fec_rate fec_rate;
|
|
td_float nordig_p1;
|
|
} ter_nordig_p1;
|
|
|
|
typedef struct {
|
|
ext_drv_frontend_dtmb_qam modulation;
|
|
ext_drv_frontend_dtmb_code_rate fec_rate;
|
|
td_float nordig_p1;
|
|
} ter_nordig_p1_dtmb;
|
|
|
|
td_s32 ter_connect(td_u32 tuner_id, const uapi_frontend_connect_para *connect_para, td_u32 time_out);
|
|
td_s32 ter_connect_t_t2_auto(td_u32 tuner_id, const uapi_frontend_connect_para *connect_para, td_u32 time_out);
|
|
td_s32 ter_get_signal_quality(td_u32 tuner_id, td_double snr, td_double ber, td_u32 *signal_quality);
|
|
|
|
#ifdef __cplusplus
|
|
#if __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* __cplusplus */
|
|
|
|
#endif
|
|
|