summaryrefslogtreecommitdiffhomepage
path: root/digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWD_PHY/include/machwdSetTrx.h
diff options
context:
space:
mode:
authorFlorent Duchon2012-12-26 17:36:00 +0100
committerFlorent Duchon2013-02-13 21:21:12 +0100
commitb24866225a6301d3a663f874725e83c012dc25d3 (patch)
treeca527a2aab9abcdfbaf244c53ca63f0c531892b0 /digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWD_PHY/include/machwdSetTrx.h
parent2ba279f4eb2f23fa08a7c13465d16ae6ba5d0f96 (diff)
digital/beacon: add bitcloud stack into common directory digital/zigbit
Diffstat (limited to 'digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWD_PHY/include/machwdSetTrx.h')
-rw-r--r--digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWD_PHY/include/machwdSetTrx.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWD_PHY/include/machwdSetTrx.h b/digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWD_PHY/include/machwdSetTrx.h
new file mode 100644
index 00000000..7c0ac92c
--- /dev/null
+++ b/digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWD_PHY/include/machwdSetTrx.h
@@ -0,0 +1,65 @@
+/**************************************************************************//**
+ \file machwdSetTrx.h
+
+ \brief MACHWD transcivier control 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:
+ 26/09/07 A. Mandychev - Created.
+******************************************************************************/
+
+#ifndef _MACHWDSETTRX_H
+#define _MACHWDSETTRX_H
+
+/******************************************************************************
+ Includes section
+******************************************************************************/
+#include <types.h>
+#include <machwdService.h>
+
+/******************************************************************************
+ Define(s) section
+******************************************************************************/
+
+/******************************************************************************
+ Types section
+******************************************************************************/
+//! Set of commands to control radio transcivier.
+typedef enum
+{
+ MACHWD_TX_ON_CMD,
+ MACHWD_RX_ON_CMD,
+ MACHWD_TRX_OFF_CMD,
+} MACHWD_TrxCmd_t;
+
+//! Set TRX state request structure.
+typedef struct
+{
+ //! Service field - for internal needs.
+ MACHWD_Service_t service;
+ //! Command to chnage the trancivier current state.
+ MACHWD_TrxCmd_t trxCmd;
+ // MACHWD set trx state confirm callback function's pointer.
+ void (*MACHWD_SetTrxStateConf)(void);
+} MACHWD_SetTrxStateReq_t;
+
+/******************************************************************************
+ Prototypes section
+******************************************************************************/
+/**************************************************************************//**
+ \brief Set trx state.
+ \param reqParams - MACHWD set trx state request structure pointer.
+ \return none.
+******************************************************************************/
+void MACHWD_SetTrxStateReq(MACHWD_SetTrxStateReq_t *reqParams);
+
+#endif /* _MACHWDSETTRX_H */
+
+// eof machwdSetTrx.h