blob: f509b6378df6e6c6ba413b05bb5480299bc9c007 [file] [log] [blame]
/**
*
* Copyright (c) 2020 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.
*/
#pragma once
#include <app/util/af-types.h>
#include <app/util/basic-types.h>
typedef struct
{
EmberEUI64 ieeeAddress;
chip::NodeId nodeId;
uint16_t zoneType;
uint16_t zoneStatus;
uint8_t zoneState;
chip::EndpointId endpoint;
uint8_t zoneId;
} IasZoneDevice;
extern IasZoneDevice emberAfIasZoneClientKnownServers[];
#define NO_INDEX 0xFF
#define UNKNOWN_ENDPOINT 0
#define UNKNOWN_ZONE_ID 0xFF
void emAfClearServers(void);
void emberAfPluginIasZoneClientZdoCallback(EmberNodeId emberNodeId, EmberApsFrame * apsFrame, uint8_t * message, uint16_t length);
void emberAfPluginIasZoneClientWriteAttributesResponseCallback(chip::ClusterId clusterId, uint8_t * buffer, uint16_t bufLen);
void emberAfPluginIasZoneClientReadAttributesResponseCallback(chip::ClusterId clusterId, uint8_t * buffer, uint16_t bufLen);