khronosfws/openmax_al/src/gst_adaptation/xaradioitfadaptation.h
changeset 42 1fa3fb47b1e3
parent 32 94fc26b6e006
child 47 c2e43643db4c
equal deleted inserted replaced
32:94fc26b6e006 42:1fa3fb47b1e3
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef XARADIOITFFADAPTATION_H
       
    19 #define XARADIOITFFADAPTATION_H
       
    20 
       
    21 #include "xaadaptationgst.h"
       
    22 #include "xadebug.h"
       
    23 
       
    24 /* MACROS */
       
    25 #define RADIO_DEFAULT_STEREO_MODE XA_STEREOMODE_AUTO
       
    26 #define RADIO_NUM_OF_PRESETS 10
       
    27 
       
    28 extern const char* RadioPresetDefaultName;
       
    29 
       
    30 /* FUNCTIONS */
       
    31 XAresult XARadioItfAdapt_SetFreqRange(XAAdaptationGstCtx *bCtx, XAuint8 range);
       
    32 
       
    33 XAresult XARadioItfAdapt_GetFreqRange(XAAdaptationGstCtx *bCtx,
       
    34                                       XAuint8 * pFreqRange);
       
    35 
       
    36 XAresult XARadioItfAdapt_IsFreqRangeSupported(XAAdaptationGstCtx *bCtx,
       
    37                                              XAuint8 range,
       
    38                                              XAboolean * pSupported);
       
    39 
       
    40 XAresult XARadioItfAdapt_GetFreqRangeProperties(XAAdaptationGstCtx *bCtx,
       
    41                                                XAuint8 range,
       
    42                                                XAuint32 * pMinFreq,
       
    43                                                XAuint32 * pMaxFreq,
       
    44                                                XAuint32 * pFreqInterval);
       
    45 
       
    46 XAresult XARadioItfAdapt_SetFrequency(XAAdaptationGstCtx *bCtx, XAuint32 freq);
       
    47 
       
    48 XAresult XARadioItfAdapt_GetFrequency(XAAdaptationGstCtx *bCtx,
       
    49                                       XAuint32 * pFrequency);
       
    50 
       
    51 XAresult XARadioItfAdapt_CancelSetFrequency(XAAdaptationGstCtx *bCtx);
       
    52 
       
    53 XAresult XARadioItfAdapt_SetSquelch(XAAdaptationGstCtx *bCtx, XAboolean squelch);
       
    54 
       
    55 XAresult XARadioItfAdapt_SetStereoMode(XAAdaptationGstCtx *bCtx, XAuint32 mode);
       
    56 
       
    57 XAresult XARadioItfAdapt_GetSignalStrength(XAAdaptationGstCtx *bCtx, XAuint32 * pStrength);
       
    58 
       
    59 XAresult XARadioItfAdapt_Seek(XAAdaptationGstCtx *bCtx, XAboolean upwards);
       
    60 
       
    61 XAresult XARadioItfAdapt_StopSeeking(XAAdaptationGstCtx *bCtx);
       
    62 
       
    63 void XARadioItfAdapt_Free(XAAdaptationBaseCtx *bCtx);
       
    64 
       
    65 #endif /* XARADIOITFADAPTATION_H */