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 --- .../Components/MAC_PHY/MAC_HWI/include/machwiMem.h | 82 ++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWI/include/machwiMem.h (limited to 'digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWI/include/machwiMem.h') diff --git a/digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWI/include/machwiMem.h b/digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWI/include/machwiMem.h new file mode 100644 index 00000000..37d519ab --- /dev/null +++ b/digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWI/include/machwiMem.h @@ -0,0 +1,82 @@ +/****************************************************************************** + \file machwiMem.h + + \brief MACHWI variable's memory description. + + \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: + 03/11/07 A. Mandychev - Created. +******************************************************************************/ + +#ifndef _MACHWIMEM_H +#define _MACHWIMEM_H + +/****************************************************************************** + Includes section +******************************************************************************/ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +/****************************************************************************** + Define(s) section +******************************************************************************/ + +/****************************************************************************** + Types section +******************************************************************************/ +typedef struct +{ + union + { + MachwiAssociateState_t assoc; +#ifdef _MAC_DISASSOCIATE_ + MachwiDisassociateState_t disassoc; +#endif // _MAC_DISASSOCIATE_ + MachwiScanState_t scan; +#ifdef _FFD_ + MachwiStartState_t start; +#endif // _FFD_ + } state; + MachwiState_t managerState; // For the manager needs. + MachwiPollHandlerState_t pollState; // For the poll handler needs. + void *machwiReq; // Used by all modules which need to save requests' parameters. + Timer_t comAppTimer; // Used by all modules except machwiTransactionQueue. + QueueDescriptor_t reqQueueDescr; + bool txCoordRealigCmd; // For the start handler needs. + MAC_DisassociateInd_t disassociateInd; // For the disassociate handler needs. + MachwiHwdReqDescr_t machwdReq; +#ifdef _FFD_ + QueueDescriptor_t transactionQueueDescr; // For the transaction queue needs - transaction queue descriptor. + Timer_t transTimer; // For the transaction queue needs - transaction queue timer. + MachwiTransactionHandlerState_t transactionHandlerState; // For the transaction handler needs. + uint8_t activatedTransactionsCounter; + MachwiTransaction_t *currentTransaction; +#endif //_FFD_ + bool switchIsLocked; // For the switching Rx Control needs. + void (*sendSwitchConfirm)(void); + uint8_t nextChannel; // For the scan handler needs. + uint8_t postponedAction; // MAC postponed actions bit field. +#ifdef _MAC_BAN_NODE_ + MAC_BanTable_t banTable; +#endif /* _MAC_BAN_NODE_ */ +} MachwiMem_t; + +#endif /* _MACHWIMEM_H */ + +// eof machwiMem.h -- cgit v1.2.3