khronosfws/openmax_al/src/adaptation/xaradioitfadaptation.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 16 Apr 2010 15:29:42 +0300
changeset 12 5a06f39ad45b
permissions -rw-r--r--
Revision: 201011 Kit: 201015

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
*
*/

#ifndef XARADIOITFFADAPTATION_H
#define XARADIOITFFADAPTATION_H

#include "XAAdaptationContextBase.h"
#include "XADebug.h"

/* MACROS */
#define RADIO_DEFAULT_STEREO_MODE XA_STEREOMODE_AUTO
#define RADIO_NUM_OF_PRESETS 10

extern const char* RadioPresetDefaultName;

/* FUNCTIONS */
XAresult XARadioItfAdapt_SetFreqRange(XAAdaptationBaseCtx *bCtx, XAuint8 range);

XAresult XARadioItfAdapt_GetFreqRange(XAAdaptationBaseCtx *bCtx,
                                      XAuint8 * pFreqRange);

XAresult XARadioItfAdapt_IsFreqRangeSupported(XAAdaptationBaseCtx *bCtx,
                                             XAuint8 range,
                                             XAboolean * pSupported);

XAresult XARadioItfAdapt_GetFreqRangeProperties(XAAdaptationBaseCtx *bCtx,
                                               XAuint8 range,
                                               XAuint32 * pMinFreq,
                                               XAuint32 * pMaxFreq,
                                               XAuint32 * pFreqInterval);

XAresult XARadioItfAdapt_SetFrequency(XAAdaptationBaseCtx *bCtx, XAuint32 freq);

XAresult XARadioItfAdapt_GetFrequency(XAAdaptationBaseCtx *bCtx,
                                      XAuint32 * pFrequency);

XAresult XARadioItfAdapt_CancelSetFrequency(XAAdaptationBaseCtx *bCtx);

XAresult XARadioItfAdapt_SetSquelch(XAAdaptationBaseCtx *bCtx, XAboolean squelch);

XAresult XARadioItfAdapt_SetStereoMode(XAAdaptationBaseCtx *bCtx, XAuint32 mode);

XAresult XARadioItfAdapt_GetSignalStrength(XAAdaptationBaseCtx *bCtx, XAuint32 * pStrength);

XAresult XARadioItfAdapt_Seek(XAAdaptationBaseCtx *bCtx, XAboolean upwards);

XAresult XARadioItfAdapt_StopSeeking(XAAdaptationBaseCtx *bCtx);

void XARadioItfAdapt_Free(XAAdaptationBaseCtx *bCtx);

#endif /* XARADIOITFADAPTATION_H */