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 "XAAdaptationContextBase.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(XAAdaptationBaseCtx *bCtx, XAuint8 range); |
|
32 |
|
33 XAresult XARadioItfAdapt_GetFreqRange(XAAdaptationBaseCtx *bCtx, |
|
34 XAuint8 * pFreqRange); |
|
35 |
|
36 XAresult XARadioItfAdapt_IsFreqRangeSupported(XAAdaptationBaseCtx *bCtx, |
|
37 XAuint8 range, |
|
38 XAboolean * pSupported); |
|
39 |
|
40 XAresult XARadioItfAdapt_GetFreqRangeProperties(XAAdaptationBaseCtx *bCtx, |
|
41 XAuint8 range, |
|
42 XAuint32 * pMinFreq, |
|
43 XAuint32 * pMaxFreq, |
|
44 XAuint32 * pFreqInterval); |
|
45 |
|
46 XAresult XARadioItfAdapt_SetFrequency(XAAdaptationBaseCtx *bCtx, XAuint32 freq); |
|
47 |
|
48 XAresult XARadioItfAdapt_GetFrequency(XAAdaptationBaseCtx *bCtx, |
|
49 XAuint32 * pFrequency); |
|
50 |
|
51 XAresult XARadioItfAdapt_CancelSetFrequency(XAAdaptationBaseCtx *bCtx); |
|
52 |
|
53 XAresult XARadioItfAdapt_SetSquelch(XAAdaptationBaseCtx *bCtx, XAboolean squelch); |
|
54 |
|
55 XAresult XARadioItfAdapt_SetStereoMode(XAAdaptationBaseCtx *bCtx, XAuint32 mode); |
|
56 |
|
57 XAresult XARadioItfAdapt_GetSignalStrength(XAAdaptationBaseCtx *bCtx, XAuint32 * pStrength); |
|
58 |
|
59 XAresult XARadioItfAdapt_Seek(XAAdaptationBaseCtx *bCtx, XAboolean upwards); |
|
60 |
|
61 XAresult XARadioItfAdapt_StopSeeking(XAAdaptationBaseCtx *bCtx); |
|
62 |
|
63 void XARadioItfAdapt_Free(XAAdaptationBaseCtx *bCtx); |
|
64 |
|
65 #endif /* XARADIOITFADAPTATION_H */ |
|