From a54ad9edce697133a024aff096e50f7e4f389d5b Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Sun, 18 Mar 2012 12:22:02 +0100 Subject: digital/beacon: import Zigbit stack (bitcloud) & avr sources --- .../HAL/drivers/include/isdImageStorage.h | 89 ++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 digital/beacon/src/Bitcloud_stack/Components/HAL/drivers/include/isdImageStorage.h (limited to 'digital/beacon/src/Bitcloud_stack/Components/HAL/drivers/include/isdImageStorage.h') diff --git a/digital/beacon/src/Bitcloud_stack/Components/HAL/drivers/include/isdImageStorage.h b/digital/beacon/src/Bitcloud_stack/Components/HAL/drivers/include/isdImageStorage.h new file mode 100644 index 00000000..c5631189 --- /dev/null +++ b/digital/beacon/src/Bitcloud_stack/Components/HAL/drivers/include/isdImageStorage.h @@ -0,0 +1,89 @@ +/**************************************************************************//** +\file isdImageStorage.h + +\brief The public API of image storage driver. + +\author + Atmel Corporation: http://www.atmel.com \n + Support email: avr@atmel.com + + Copyright (c) 2008-2011, Atmel Corporation. All rights reserved. + Licensed under Atmel's Limited License Agreement (BitCloudTM). + +\internal + History: + 25.05.11 A. Khromykh - Created +*******************************************************************************/ + +#ifndef _ISDIMAGESTORAGE_H +#define _ISDIMAGESTORAGE_H + +/****************************************************************************** + Includes section +******************************************************************************/ +#include +#include + +/****************************************************************************** + Define(s) section +******************************************************************************/ + +/****************************************************************************** + Types section +******************************************************************************/ +/** \brief Status which is returned by driver */ +typedef enum +{ + ISD_SUCCESS, + ISD_HARDWARE_FAULT, + ISD_COMMUNICATION_LOST +} ISD_Status_t; + +typedef void (* IsdOpenCb_t)(ISD_Status_t); +typedef void (* IsdQueryNextImageCb_t)(ZCL_OtauQueryNextImageResp_t *); +typedef void (* IsdImageBlockCb_t)(ZCL_OtauImageBlockResp_t *); +typedef void (* IsdUpgradeEndCb_t)(ZCL_OtauUpgradeEndResp_t *); + +/****************************************************************************** + Prototypes section +******************************************************************************/ +/**************************************************************************//** +\brief Open image storage driver + +\param[in] cb - callback about driver actions +******************************************************************************/ +void ISD_Open(IsdOpenCb_t cb); + +/**************************************************************************//** +\brief Close image storage driver +******************************************************************************/ +void ISD_Close(void); + +/**************************************************************************//** +\brief Send query next image request to storage system + +\param[in] addressing - pointer to structure that include client network information; \n +\param[in] data - data payload; \n +\param[in] cd - callback about response receiving from storage system. +******************************************************************************/ +void ISD_QueryNextImageReq(ZCL_Addressing_t *addressing, ZCL_OtauQueryNextImageReq_t *data, IsdQueryNextImageCb_t cb); + +/**************************************************************************//** +\brief Send image block request to storage system + +\param[in] addressing - pointer to structure that include client network information; \n +\param[in] data - data payload; \n +\param[in] cd - callback about response receiving from storage system. +******************************************************************************/ +void ISD_ImageBlockReq(ZCL_Addressing_t *addressing, ZCL_OtauImageBlockReq_t *data, IsdImageBlockCb_t cb); + +/**************************************************************************//** +\brief Send upgrade end request to storage system + +\param[in] addressing - pointer to structure that include client network information; \n +\param[in] data - data payload; \n +\param[in] cd - callback about response receiving from storage system. +******************************************************************************/ +void ISD_UpgradeEndReq(ZCL_Addressing_t *addressing, ZCL_OtauUpgradeEndReq_t *data, IsdUpgradeEndCb_t cb); + +#endif /* _ISDIMAGESTORAGE_H */ -- cgit v1.2.3