| /* |
| * |
| * Copyright (c) 2022 Project CHIP Authors |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| // THIS FILE IS GENERATED BY ZAP |
| #pragma once |
| |
| #include <clusters/shared/Enums.h> |
| #include <cstdint> |
| |
| namespace chip { |
| namespace app { |
| namespace Clusters { |
| namespace MediaPlayback { |
| |
| // Enum for CharacteristicEnum |
| enum class CharacteristicEnum : uint8_t |
| { |
| kForcedSubtitles = 0x00, |
| kDescribesVideo = 0x01, |
| kEasyToRead = 0x02, |
| kFrameBased = 0x03, |
| kMainProgram = 0x04, |
| kOriginalContent = 0x05, |
| kVoiceOverTranslation = 0x06, |
| kCaption = 0x07, |
| kSubtitle = 0x08, |
| kAlternate = 0x09, |
| kSupplementary = 0x0A, |
| kCommentary = 0x0B, |
| kDubbedTranslation = 0x0C, |
| kDescription = 0x0D, |
| kMetadata = 0x0E, |
| kEnhancedAudioIntelligibility = 0x0F, |
| kEmergency = 0x10, |
| kKaraoke = 0x11, |
| // All received enum values that are not listed above will be mapped |
| // to kUnknownEnumValue. This is a helper enum value that should only |
| // be used by code to process how it handles receiving and unknown |
| // enum value. This specific should never be transmitted. |
| kUnknownEnumValue = 18, |
| }; |
| |
| // Enum for PlaybackStateEnum |
| enum class PlaybackStateEnum : uint8_t |
| { |
| kPlaying = 0x00, |
| kPaused = 0x01, |
| kNotPlaying = 0x02, |
| kBuffering = 0x03, |
| // All received enum values that are not listed above will be mapped |
| // to kUnknownEnumValue. This is a helper enum value that should only |
| // be used by code to process how it handles receiving and unknown |
| // enum value. This specific should never be transmitted. |
| kUnknownEnumValue = 4, |
| }; |
| |
| // Enum for StatusEnum |
| enum class StatusEnum : uint8_t |
| { |
| kSuccess = 0x00, |
| kInvalidStateForCommand = 0x01, |
| kNotAllowed = 0x02, |
| kNotActive = 0x03, |
| kSpeedOutOfRange = 0x04, |
| kSeekOutOfRange = 0x05, |
| // All received enum values that are not listed above will be mapped |
| // to kUnknownEnumValue. This is a helper enum value that should only |
| // be used by code to process how it handles receiving and unknown |
| // enum value. This specific should never be transmitted. |
| kUnknownEnumValue = 6, |
| }; |
| |
| // Bitmap for Feature |
| enum class Feature : uint32_t |
| { |
| kAdvancedSeek = 0x1, |
| kVariableSpeed = 0x2, |
| kTextTracks = 0x4, |
| kAudioTracks = 0x8, |
| kAudioAdvance = 0x10, |
| }; |
| } // namespace MediaPlayback |
| } // namespace Clusters |
| } // namespace app |
| } // namespace chip |