| /* |
| * |
| * Copyright (c) 2021 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 |
| |
| // Prevent multiple inclusion |
| #pragma once |
| |
| #include "enums.h" |
| #include <app/util/basic-types.h> |
| #include <stdint.h> |
| |
| // Struct for ApplicationLauncherApp |
| typedef struct _ApplicationLauncherApp |
| { |
| uint16_t catalogVendorId; |
| uint8_t * applicationId; |
| } EmberAfApplicationLauncherApp; |
| |
| // Struct for AudioOutputInfo |
| typedef struct _AudioOutputInfo |
| { |
| uint8_t index; |
| uint8_t outputType; |
| uint8_t * name; |
| } EmberAfAudioOutputInfo; |
| |
| // Struct for BasicCommissioningInfoType |
| typedef struct _BasicCommissioningInfoType |
| { |
| uint32_t FailSafeExpiryLengthMs; |
| } EmberAfBasicCommissioningInfoType; |
| |
| // Struct for BlockThreshold |
| typedef struct _BlockThreshold |
| { |
| uint8_t blockThreshold; |
| uint8_t priceControl; |
| uint32_t blockPeriodStartTime; |
| uint32_t blockPeriodDurationMinutes; |
| uint8_t fuelType; |
| uint32_t standingCharge; |
| } EmberAfBlockThreshold; |
| |
| // Struct for BlockThresholdSubPayload |
| typedef struct _BlockThresholdSubPayload |
| { |
| uint8_t tierNumberOfBlockThresholds; |
| uint8_t * blockThreshold; |
| } EmberAfBlockThresholdSubPayload; |
| |
| // Struct for ChatParticipant |
| typedef struct _ChatParticipant |
| { |
| uint16_t uid; |
| uint8_t * nickname; |
| } EmberAfChatParticipant; |
| |
| // Struct for ChatRoom |
| typedef struct _ChatRoom |
| { |
| uint16_t cid; |
| uint8_t * name; |
| } EmberAfChatRoom; |
| |
| // Struct for ConfigureReportingRecord |
| typedef struct _ConfigureReportingRecord |
| { |
| uint8_t direction; |
| chip::AttributeId attributeId; |
| uint8_t attributeType; |
| uint16_t minimumReportingInterval; |
| uint16_t maximumReportingInterval; |
| uint8_t * reportableChangeLocation; |
| uint16_t timeoutPeriod; |
| } EmberAfConfigureReportingRecord; |
| |
| // Struct for ConfigureReportingStatusRecord |
| typedef struct _ConfigureReportingStatusRecord |
| { |
| uint8_t status; |
| uint8_t direction; |
| chip::AttributeId attributeId; |
| } EmberAfConfigureReportingStatusRecord; |
| |
| // Struct for ContentLaunchAdditionalInfo |
| typedef struct _ContentLaunchAdditionalInfo |
| { |
| uint8_t * name; |
| uint8_t * value; |
| } EmberAfContentLaunchAdditionalInfo; |
| |
| // Struct for ContentLaunchBrandingInformation |
| typedef struct _ContentLaunchBrandingInformation |
| { |
| uint8_t * providerName; |
| uint8_t background; |
| uint8_t logo; |
| uint8_t progressBar; |
| uint8_t splash; |
| uint8_t waterMark; |
| } EmberAfContentLaunchBrandingInformation; |
| |
| // Struct for ContentLaunchDimension |
| typedef struct _ContentLaunchDimension |
| { |
| uint8_t * width; |
| uint8_t * height; |
| uint8_t metric; |
| } EmberAfContentLaunchDimension; |
| |
| // Struct for ContentLaunchParamater |
| typedef struct _ContentLaunchParamater |
| { |
| uint8_t Type; |
| uint8_t * Value; |
| /* TYPE WARNING: array array defaults to */ uint8_t * ExternalIDList; |
| } EmberAfContentLaunchParamater; |
| |
| // Struct for ContentLaunchStyleInformation |
| typedef struct _ContentLaunchStyleInformation |
| { |
| uint8_t * imageUrl; |
| uint8_t * color; |
| uint8_t size; |
| } EmberAfContentLaunchStyleInformation; |
| |
| // Struct for DebtPayload |
| typedef struct _DebtPayload |
| { |
| uint32_t collectionTime; |
| uint32_t amountCollected; |
| uint8_t debtType; |
| uint32_t outstandingDebt; |
| } EmberAfDebtPayload; |
| |
| // Struct for DeviceInformationRecord |
| typedef struct _DeviceInformationRecord |
| { |
| uint64_t ieeeAddress; |
| chip::EndpointId endpointId; |
| uint16_t profileId; |
| uint16_t deviceId; |
| uint8_t version; |
| uint8_t groupIdCount; |
| uint8_t sort; |
| } EmberAfDeviceInformationRecord; |
| |
| // Struct for DeviceType |
| typedef struct _DeviceType |
| { |
| chip::DeviceTypeId type; |
| uint16_t revision; |
| } EmberAfDeviceType; |
| |
| // Struct for DiscoverAttributesInfoRecord |
| typedef struct _DiscoverAttributesInfoRecord |
| { |
| chip::AttributeId attributeId; |
| uint8_t attributeType; |
| } EmberAfDiscoverAttributesInfoRecord; |
| |
| // Struct for EndpointInformationRecord |
| typedef struct _EndpointInformationRecord |
| { |
| uint16_t networkAddress; |
| chip::EndpointId endpointId; |
| uint16_t profileId; |
| uint16_t deviceId; |
| uint8_t version; |
| } EmberAfEndpointInformationRecord; |
| |
| // Void typedef for EmberAfEphemeralData which is empty. |
| // this will result in all the references to the data being as uint8_t* |
| typedef uint8_t EmberAfEphemeralData; |
| |
| // Struct for EventConfigurationPayload |
| typedef struct _EventConfigurationPayload |
| { |
| uint16_t eventId; |
| uint8_t eventConfiguration; |
| } EmberAfEventConfigurationPayload; |
| |
| // Struct for EventLogPayload |
| typedef struct _EventLogPayload |
| { |
| uint8_t logId; |
| uint16_t eventId; |
| uint32_t eventTime; |
| uint8_t * eventData; |
| } EmberAfEventLogPayload; |
| |
| // Struct for ExtendedDiscoverAttributesInfoRecord |
| typedef struct _ExtendedDiscoverAttributesInfoRecord |
| { |
| chip::AttributeId attributeId; |
| uint8_t attributeType; |
| uint8_t attributeAccessControl; |
| } EmberAfExtendedDiscoverAttributesInfoRecord; |
| |
| // Struct for FabricDescriptor |
| typedef struct _FabricDescriptor |
| { |
| chip::FabricId FabricId; |
| uint16_t VendorId; |
| uint8_t * Label; |
| chip::NodeId NodeId; |
| } EmberAfFabricDescriptor; |
| |
| // Struct for GpPairingConfigurationGroupList |
| typedef struct _GpPairingConfigurationGroupList |
| { |
| uint16_t SinkGroup; |
| uint16_t Alias; |
| } EmberAfGpPairingConfigurationGroupList; |
| |
| // Struct for GpTranslationTableUpdateTranslation |
| typedef struct _GpTranslationTableUpdateTranslation |
| { |
| uint8_t index; |
| uint8_t gpdCommandId; |
| chip::EndpointId endpoint; |
| uint16_t profile; |
| uint16_t cluster; |
| uint8_t zigbeeCommandId; |
| uint8_t * zigbeeCommandPayload; |
| uint8_t * additionalInfoBlock; |
| } EmberAfGpTranslationTableUpdateTranslation; |
| |
| // Struct for GroupInformationRecord |
| typedef struct _GroupInformationRecord |
| { |
| chip::GroupId groupId; |
| uint8_t groupType; |
| } EmberAfGroupInformationRecord; |
| |
| // Struct for GroupKey |
| typedef struct _GroupKey |
| { |
| uint16_t VendorId; |
| uint16_t GroupKeyIndex; |
| uint8_t * GroupKeyRoot; |
| uint64_t GroupKeyEpochStartTime; |
| uint8_t GroupKeySecurityPolicy; |
| } EmberAfGroupKey; |
| |
| // Struct for GroupState |
| typedef struct _GroupState |
| { |
| uint16_t VendorId; |
| uint16_t VendorGroupId; |
| uint16_t GroupKeySetIndex; |
| } EmberAfGroupState; |
| |
| // Struct for IasAceZoneStatusResult |
| typedef struct _IasAceZoneStatusResult |
| { |
| uint8_t zoneId; |
| uint16_t zoneStatus; |
| } EmberAfIasAceZoneStatusResult; |
| |
| // Void typedef for EmberAfIdentity which is empty. |
| // this will result in all the references to the data being as uint8_t* |
| typedef uint8_t EmberAfIdentity; |
| |
| // Struct for MediaInputInfo |
| typedef struct _MediaInputInfo |
| { |
| uint8_t index; |
| uint8_t inputType; |
| uint8_t * name; |
| uint8_t * description; |
| } EmberAfMediaInputInfo; |
| |
| // Struct for MediaPlaybackPosition |
| typedef struct _MediaPlaybackPosition |
| { |
| uint64_t updatedAt; |
| uint64_t position; |
| } EmberAfMediaPlaybackPosition; |
| |
| // Struct for NavigateTargetTargetInfo |
| typedef struct _NavigateTargetTargetInfo |
| { |
| uint8_t identifier; |
| uint8_t * name; |
| } EmberAfNavigateTargetTargetInfo; |
| |
| // Struct for NeighborInfo |
| typedef struct _NeighborInfo |
| { |
| uint64_t neighbor; |
| int16_t x; |
| int16_t y; |
| int16_t z; |
| int8_t rssi; |
| uint8_t numberRssiMeasurements; |
| } EmberAfNeighborInfo; |
| |
| // Struct for NodeInformation |
| typedef struct _NodeInformation |
| { |
| uint16_t uid; |
| uint16_t address; |
| chip::EndpointId endpoint; |
| uint8_t * nickname; |
| } EmberAfNodeInformation; |
| |
| // Struct for Notification |
| typedef struct _Notification |
| { |
| uint16_t contentId; |
| uint8_t statusFeedback; |
| } EmberAfNotification; |
| |
| // Struct for PowerProfileRecord |
| typedef struct _PowerProfileRecord |
| { |
| uint8_t powerProfileId; |
| uint8_t energyPhaseId; |
| uint8_t powerProfileRemoteControl; |
| uint8_t powerProfileState; |
| } EmberAfPowerProfileRecord; |
| |
| // Struct for PriceMatrixSubPayload |
| typedef struct _PriceMatrixSubPayload |
| { |
| uint8_t tierBlockId; |
| uint32_t price; |
| } EmberAfPriceMatrixSubPayload; |
| |
| // Struct for Protocol |
| typedef struct _Protocol |
| { |
| uint16_t manufacturerCode; |
| uint8_t protocolId; |
| } EmberAfProtocol; |
| |
| // Struct for ReadAttributeStatusRecord |
| typedef struct _ReadAttributeStatusRecord |
| { |
| chip::AttributeId attributeId; |
| uint8_t status; |
| uint8_t attributeType; |
| uint8_t * attributeLocation; |
| } EmberAfReadAttributeStatusRecord; |
| |
| // Struct for ReadReportingConfigurationAttributeRecord |
| typedef struct _ReadReportingConfigurationAttributeRecord |
| { |
| uint8_t direction; |
| chip::AttributeId attributeId; |
| } EmberAfReadReportingConfigurationAttributeRecord; |
| |
| // Struct for ReadReportingConfigurationRecord |
| typedef struct _ReadReportingConfigurationRecord |
| { |
| uint8_t status; |
| uint8_t direction; |
| chip::AttributeId attributeId; |
| uint8_t attributeType; |
| uint16_t minimumReportingInterval; |
| uint16_t maximumReportingInterval; |
| uint8_t * reportableChangeLocation; |
| uint16_t timeoutPeriod; |
| } EmberAfReadReportingConfigurationRecord; |
| |
| // Struct for ReadStructuredAttributeRecord |
| typedef struct _ReadStructuredAttributeRecord |
| { |
| chip::AttributeId attributeId; |
| uint8_t indicator; |
| uint16_t indicies; |
| } EmberAfReadStructuredAttributeRecord; |
| |
| // Struct for ReportAttributeRecord |
| typedef struct _ReportAttributeRecord |
| { |
| chip::AttributeId attributeId; |
| uint8_t attributeType; |
| uint8_t * attributeLocation; |
| } EmberAfReportAttributeRecord; |
| |
| // Struct for SceneExtensionAttributeInfo |
| typedef struct _SceneExtensionAttributeInfo |
| { |
| uint8_t attributeType; |
| uint8_t * attributeLocation; |
| } EmberAfSceneExtensionAttributeInfo; |
| |
| // Struct for SceneExtensionFieldSet |
| typedef struct _SceneExtensionFieldSet |
| { |
| chip::ClusterId clusterId; |
| uint8_t length; |
| uint8_t value; |
| } EmberAfSceneExtensionFieldSet; |
| |
| // Struct for ScheduleEntry |
| typedef struct _ScheduleEntry |
| { |
| uint16_t startTime; |
| uint8_t activePriceTierOrFriendlyCreditEnable; |
| } EmberAfScheduleEntry; |
| |
| // Struct for ScheduleEntryAuxilliaryLoadSwitchTimes |
| typedef struct _ScheduleEntryAuxilliaryLoadSwitchTimes |
| { |
| uint16_t startTime; |
| uint8_t auxiliaryLoadSwitchState; |
| } EmberAfScheduleEntryAuxilliaryLoadSwitchTimes; |
| |
| // Struct for ScheduleEntryFriendlyCreditSwitchTimes |
| typedef struct _ScheduleEntryFriendlyCreditSwitchTimes |
| { |
| uint16_t startTime; |
| uint8_t friendlyCreditEnable; |
| } EmberAfScheduleEntryFriendlyCreditSwitchTimes; |
| |
| // Struct for ScheduleEntryRateSwitchTimes |
| typedef struct _ScheduleEntryRateSwitchTimes |
| { |
| uint16_t startTime; |
| uint8_t priceTier; |
| } EmberAfScheduleEntryRateSwitchTimes; |
| |
| // Struct for ScheduledPhase |
| typedef struct _ScheduledPhase |
| { |
| uint8_t energyPhaseId; |
| uint16_t scheduledTime; |
| } EmberAfScheduledPhase; |
| |
| // Struct for SeasonEntry |
| typedef struct _SeasonEntry |
| { |
| uint32_t seasonStartDate; |
| uint8_t weekIdRef; |
| } EmberAfSeasonEntry; |
| |
| // Void typedef for EmberAfSignature which is empty. |
| // this will result in all the references to the data being as uint8_t* |
| typedef uint8_t EmberAfSignature; |
| |
| // Void typedef for EmberAfSmac which is empty. |
| // this will result in all the references to the data being as uint8_t* |
| typedef uint8_t EmberAfSmac; |
| |
| // Struct for SnapshotResponsePayload |
| typedef struct _SnapshotResponsePayload |
| { |
| uint8_t snapshotScheduleId; |
| uint8_t snapshotScheduleConfirmation; |
| } EmberAfSnapshotResponsePayload; |
| |
| // Struct for SnapshotSchedulePayload |
| typedef struct _SnapshotSchedulePayload |
| { |
| uint8_t snapshotScheduleId; |
| uint32_t snapshotStartTime; |
| uint32_t snapshotSchedule; |
| uint8_t snapshotPayloadType; |
| uint32_t snapshotCause; |
| } EmberAfSnapshotSchedulePayload; |
| |
| // Struct for SpecialDay |
| typedef struct _SpecialDay |
| { |
| uint32_t specialDayDate; |
| uint8_t dayIdRef; |
| } EmberAfSpecialDay; |
| |
| // Struct for ThreadInterfaceScanResult |
| typedef struct _ThreadInterfaceScanResult |
| { |
| uint8_t * DiscoveryResponse; |
| } EmberAfThreadInterfaceScanResult; |
| |
| // Struct for TierLabelsPayload |
| typedef struct _TierLabelsPayload |
| { |
| uint8_t tierId; |
| uint8_t * tierLabel; |
| } EmberAfTierLabelsPayload; |
| |
| // Struct for TopUpPayload |
| typedef struct _TopUpPayload |
| { |
| uint8_t * topUpCode; |
| int32_t topUpAmount; |
| uint32_t topUpTime; |
| } EmberAfTopUpPayload; |
| |
| // Struct for TransferredPhase |
| typedef struct _TransferredPhase |
| { |
| uint8_t energyPhaseId; |
| uint8_t macroPhaseId; |
| uint16_t expectedDuration; |
| uint16_t peakPower; |
| uint16_t energy; |
| uint16_t maxActivationDelay; |
| } EmberAfTransferredPhase; |
| |
| // Struct for TvChannelInfo |
| typedef struct _TvChannelInfo |
| { |
| uint16_t majorNumber; |
| uint16_t minorNumber; |
| uint8_t * name; |
| uint8_t * callSign; |
| uint8_t * affiliateCallSign; |
| } EmberAfTvChannelInfo; |
| |
| // Struct for TvChannelLineupInfo |
| typedef struct _TvChannelLineupInfo |
| { |
| uint8_t * operatorName; |
| uint8_t * lineupName; |
| uint8_t * postalCode; |
| uint8_t lineupInfoType; |
| } EmberAfTvChannelLineupInfo; |
| |
| // Struct for WiFiInterfaceScanResult |
| typedef struct _WiFiInterfaceScanResult |
| { |
| uint8_t Security; |
| uint8_t * SSID; |
| uint8_t * BSSID; |
| uint8_t Channel; |
| uint32_t FrequencyBand; |
| } EmberAfWiFiInterfaceScanResult; |
| |
| // Struct for WriteAttributeRecord |
| typedef struct _WriteAttributeRecord |
| { |
| chip::AttributeId attributeId; |
| uint8_t attributeType; |
| uint8_t * attributeLocation; |
| } EmberAfWriteAttributeRecord; |
| |
| // Struct for WriteAttributeStatusRecord |
| typedef struct _WriteAttributeStatusRecord |
| { |
| uint8_t status; |
| chip::AttributeId attributeId; |
| } EmberAfWriteAttributeStatusRecord; |
| |
| // Struct for WriteStructuredAttributeRecord |
| typedef struct _WriteStructuredAttributeRecord |
| { |
| chip::AttributeId attributeId; |
| uint8_t indicator; |
| uint16_t indicies; |
| uint8_t attributeType; |
| uint8_t * attributeLocation; |
| } EmberAfWriteStructuredAttributeRecord; |
| |
| // Struct for WriteStructuredAttributeStatusRecord |
| typedef struct _WriteStructuredAttributeStatusRecord |
| { |
| uint8_t status; |
| chip::AttributeId attributeId; |
| uint8_t indicator; |
| uint16_t indicies; |
| } EmberAfWriteStructuredAttributeStatusRecord; |
| |
| // Struct for WwahBeaconSurvey |
| typedef struct _WwahBeaconSurvey |
| { |
| uint16_t deviceShort; |
| uint8_t rssi; |
| uint8_t classificationMask; |
| } EmberAfWwahBeaconSurvey; |
| |
| // Struct for WwahClusterStatusToUseTC |
| typedef struct _WwahClusterStatusToUseTC |
| { |
| chip::ClusterId clusterId; |
| uint8_t status; |
| } EmberAfWwahClusterStatusToUseTC; |