blob: 70a8e41b8b9ab27157a0424cbe910b407f817e6c [file] [log] [blame]
Amy Zhangbb94eeb2020-07-09 22:48:04 -07001/*
2 * Copyright 2020 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_1_LNB_H_
18#define ANDROID_HARDWARE_TV_TUNER_V1_1_LNB_H_
19
20#include <android/hardware/tv/tuner/1.0/ILnb.h>
21#include <android/hardware/tv/tuner/1.1/ITuner.h>
22
23using namespace std;
24
25namespace android {
26namespace hardware {
27namespace tv {
28namespace tuner {
29namespace V1_0 {
30namespace implementation {
31
32class Lnb : public ILnb {
33 public:
34 Lnb();
35 Lnb(int id);
36
37 virtual Return<Result> setCallback(const sp<ILnbCallback>& callback) override;
38
39 virtual Return<Result> setVoltage(LnbVoltage voltage) override;
40
41 virtual Return<Result> setTone(LnbTone tone) override;
42
43 virtual Return<Result> setSatellitePosition(LnbPosition position) override;
44
45 virtual Return<Result> sendDiseqcMessage(const hidl_vec<uint8_t>& diseqcMessage) override;
46
47 virtual Return<Result> close() override;
48
49 int getId();
50
51 private:
52 int mId;
53 virtual ~Lnb();
54};
55
56} // namespace implementation
57} // namespace V1_0
58} // namespace tuner
59} // namespace tv
60} // namespace hardware
61} // namespace android
62
63#endif // ANDROID_HARDWARE_TV_TUNER_V1_1_LNB_H_