blob: df7e0fe2b373044ab3cb38def9f76bc64e2478ac [file] [log] [blame]
Amy016b7312019-09-16 15:51:28 -07001/*
2 * Copyright (C) 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef ANDROID_HARDWARE_TV_TUNER_V1_0_LNB_H_
18#define ANDROID_HARDWARE_TV_TUNER_V1_0_LNB_H_
19
20#include <android/hardware/tv/tuner/1.0/ILnb.h>
21#include <android/hardware/tv/tuner/1.0/ITuner.h>
22
23using namespace std;
24
25namespace android {
26namespace hardware {
27namespace tv {
28namespace tuner {
29namespace V1_0 {
30namespace implementation {
31
32using ::android::hardware::tv::tuner::V1_0::FrontendLnbPosition;
33using ::android::hardware::tv::tuner::V1_0::FrontendLnbTone;
34using ::android::hardware::tv::tuner::V1_0::FrontendLnbVoltage;
35using ::android::hardware::tv::tuner::V1_0::Result;
36
37class Lnb : public ILnb {
38 public:
39 Lnb();
40
41 virtual Return<Result> setVoltage(FrontendLnbVoltage voltage);
42
43 virtual Return<Result> setTone(FrontendLnbTone tone) override;
44
45 virtual Return<Result> setSatellitePosition(FrontendLnbPosition position) override;
46
47 virtual Return<Result> close() override;
48
49 private:
50 virtual ~Lnb();
51};
52
53} // namespace implementation
54} // namespace V1_0
55} // namespace tuner
56} // namespace tv
57} // namespace hardware
58} // namespace android
59
60#endif // ANDROID_HARDWARE_TV_TUNER_V1_0_LNB_H_