From b24866225a6301d3a663f874725e83c012dc25d3 Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Wed, 26 Dec 2012 17:36:00 +0100 Subject: digital/beacon: add bitcloud stack into common directory digital/zigbit --- .../MAC_PHY/MAC_HWD_PHY/include/machwdEd.h | 61 ++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWD_PHY/include/machwdEd.h (limited to 'digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWD_PHY/include/machwdEd.h') diff --git a/digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWD_PHY/include/machwdEd.h b/digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWD_PHY/include/machwdEd.h new file mode 100644 index 00000000..9cd339f7 --- /dev/null +++ b/digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWD_PHY/include/machwdEd.h @@ -0,0 +1,61 @@ +/**************************************************************************//** + \file machwdEd.h + + \brief MACHWD energy detection types and function prototypes. + + \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: + 24/05/07 A. Mandychev - Created. +******************************************************************************/ + +#ifndef _MACHWDED_H +#define _MACHWDED_H + +/****************************************************************************** + Includes section +******************************************************************************/ +#include + +/****************************************************************************** + Define(s) section +******************************************************************************/ + +/****************************************************************************** + Types section +******************************************************************************/ +//! MACHWD energy detection confirm structure. +typedef struct +{ + PHY_EnergyLevel_t energyLevel; +} MACHWD_EdConf_t; + +//! MACHWD energy detection request structure. +typedef struct +{ + MACHWD_Service_t service; + // Callback pointer. + void (*MACHWD_EdConf)(MACHWD_EdConf_t *confParams); + // Confirm parameters. + MACHWD_EdConf_t confirm; +} MACHWD_EdReq_t; + +/****************************************************************************** + Prototypes section +******************************************************************************/ +/**************************************************************************//** + \brief Detects energy level on channel. + \param reqParams - MACHWD energy detection request structure pointer. + \return none. +******************************************************************************/ +void MACHWD_EdReq(MACHWD_EdReq_t *reqParams); + +#endif /* _MACHWDED_H */ + +// eof machwdEd.h -- cgit v1.2.3