summaryrefslogtreecommitdiffhomepage
path: root/digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWD_PHY/include/machwdEd.h
diff options
context:
space:
mode:
Diffstat (limited to 'digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWD_PHY/include/machwdEd.h')
-rw-r--r--digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWD_PHY/include/machwdEd.h61
1 files changed, 61 insertions, 0 deletions
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 <machwdService.h>
+
+/******************************************************************************
+ 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