blob: c14bbd8735c2c95d9caeb65c3cd69b407e89b5e5 [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
Amyb4b68012019-10-15 17:38:19 -070032using ::android::hardware::tv::tuner::V1_0::ILnbCallback;
33using ::android::hardware::tv::tuner::V1_0::LnbPosition;
34using ::android::hardware::tv::tuner::V1_0::LnbTone;
35using ::android::hardware::tv::tuner::V1_0::LnbVoltage;
Amy016b7312019-09-16 15:51:28 -070036using ::android::hardware::tv::tuner::V1_0::Result;
37
38class Lnb : public ILnb {
39 public:
40 Lnb();
shubangfd882512020-04-22 14:59:03 -070041 Lnb(int id);
Amy016b7312019-09-16 15:51:28 -070042
Amyb4b68012019-10-15 17:38:19 -070043 virtual Return<Result> setCallback(const sp<ILnbCallback>& callback) override;
Amy016b7312019-09-16 15:51:28 -070044
Amyb4b68012019-10-15 17:38:19 -070045 virtual Return<Result> setVoltage(LnbVoltage voltage) override;
Amy016b7312019-09-16 15:51:28 -070046
Amyb4b68012019-10-15 17:38:19 -070047 virtual Return<Result> setTone(LnbTone tone) override;
48
49 virtual Return<Result> setSatellitePosition(LnbPosition position) override;
Amy016b7312019-09-16 15:51:28 -070050
Amy42a5b4b2019-10-03 16:49:48 -070051 virtual Return<Result> sendDiseqcMessage(const hidl_vec<uint8_t>& diseqcMessage) override;
52
Amy016b7312019-09-16 15:51:28 -070053 virtual Return<Result> close() override;
54
shubangfd882512020-04-22 14:59:03 -070055 int getId();
56
Amy016b7312019-09-16 15:51:28 -070057 private:
shubangfd882512020-04-22 14:59:03 -070058 int mId;
Amy016b7312019-09-16 15:51:28 -070059 virtual ~Lnb();
Kensuke Miyagiafe17c52021-12-16 01:06:15 -080060 sp<ILnbCallback> mCallback;
Amy016b7312019-09-16 15:51:28 -070061};
62
63} // namespace implementation
64} // namespace V1_0
65} // namespace tuner
66} // namespace tv
67} // namespace hardware
68} // namespace android
69
shubangfd882512020-04-22 14:59:03 -070070#endif // ANDROID_HARDWARE_TV_TUNER_V1_0_LNB_H_