1 /*
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 
23 using namespace std;
24 
25 namespace android {
26 namespace hardware {
27 namespace tv {
28 namespace tuner {
29 namespace V1_0 {
30 namespace implementation {
31 
32 class 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_
64