blob: 9e892cfd496be21c29d0d553efb1d2ef1f021a22 [file] [log] [blame]
/*
*
* Copyright (c) 2018 Nest Labs, Inc.
* All rights reserved.
*
* 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.
*/
/**
* @file
* Defines platform-specific event types and data for the
* Weave Device Layer on the ESP32.
*/
#ifndef WEAVE_DEVICE_PLATFORM_EVENT_H
#define WEAVE_DEVICE_PLATFORM_EVENT_H
#include <Weave/DeviceLayer/WeaveDeviceEvent.h>
#include <esp_event.h>
namespace nl {
namespace Weave {
namespace DeviceLayer {
namespace DeviceEventType {
/**
* Enumerates platform-specific event types that are visible to the application.
*/
enum
{
kESPSystemEvent = kRange_PublicPlatformSpecific,
};
} // namespace DeviceEventType
/**
* Represents platform-specific event information for the ESP32 platform.
*/
struct WeaveDevicePlatformEvent final
{
union
{
system_event_t ESPSystemEvent;
};
};
} // namespace DeviceLayer
} // namespace Weave
} // namespace nl
#endif // WEAVE_DEVICE_PLATFORM_EVENT_H