1 //******************************************************************
3 // Copyright 2015 Intel Mobile Communications GmbH All Rights Reserved.
5 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
7 // Licensed under the Apache License, Version 2.0 (the "License");
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
11 // http://www.apache.org/licenses/LICENSE-2.0
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an "AS IS" BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
19 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
21 #include "plugintranslatortypes.h"
26 * This file contains the interface for the ZigBee Radio.
30 * Initializes the specified ZigBee radio at location comPort.
32 * @param[in] comPort The location the ZigBee radio is located at.
34 * @param[out] plugin A pointer to the plugin that has been started.
36 * @param[in] newResourceCB A function pointer to the callback that will be
37 * invoked when a ZigBee cluster is found that matches
38 * a valid OIC resource.
40 OCStackResult ZigbeeInit(const char * comPort, PIPlugin_Zigbee ** plugin,
41 PINewResourceFound newResourceCB);
44 * Initiates the discovery operation associated with this ZigBee radio.
46 * @param[in] plugin A pointer to the current ZigBee radio context.
48 OCStackResult ZigbeeDiscover(PIPlugin_Zigbee * plugin);
51 * De-Initializes the specified ZigBee radio.
53 * @param[in] plugin A pointer to the current ZigBee radio context.
55 OCStackResult ZigbeeStop(PIPlugin_Zigbee * plugin);
58 * Called from upper layer. Gives cycles for internal operation.
60 * @param[in] plugin A pointer to the current ZigBee radio context.
62 OCStackResult ZigbeeProcess(PIPlugin_Zigbee * plugin);