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 --- .../MAC_HWI/include/machwiTransactionHandler.h | 85 ++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 digital/beacon/src/Bitcloud_stack/Components/MAC_PHY/MAC_HWI/include/machwiTransactionHandler.h (limited to 'digital/beacon/src/Bitcloud_stack/Components/MAC_PHY/MAC_HWI/include/machwiTransactionHandler.h') diff --git a/digital/beacon/src/Bitcloud_stack/Components/MAC_PHY/MAC_HWI/include/machwiTransactionHandler.h b/digital/beacon/src/Bitcloud_stack/Components/MAC_PHY/MAC_HWI/include/machwiTransactionHandler.h new file mode 100644 index 00000000..cd5d31a8 --- /dev/null +++ b/digital/beacon/src/Bitcloud_stack/Components/MAC_PHY/MAC_HWI/include/machwiTransactionHandler.h @@ -0,0 +1,85 @@ +/****************************************************************************** + \file machwiTransactionHandler.h + + \brief machwiTransactionHandler header file. + + \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: + 28/06/07 ALuzhetsky - Created. +******************************************************************************/ + +#ifndef _MACHWITRANSACTIONHANDLER_H +#define _MACHWITRANSACTIONHANDLER_H +#ifdef _FFD_ + +/****************************************************************************** + Includes section. +******************************************************************************/ +#include +#include + +/****************************************************************************** + Types section +******************************************************************************/ +typedef enum +{ + MACHWI_IDLE_TRANSACTION_HANDLER_STATE, + MACHWI_BUSY_ASSOCIATE_TRANSACTION_HANDLER_STATE, +#ifdef _MAC_DISASSOCIATE_ + + MACHWI_BUSY_DISASSOCIATE_TRANSACTION_HANDLER_STATE, +#endif //_MAC_DISASSOCIATE_ + + MACHWI_BUSY_DATA_TRANSACTION_HANDLER_STATE, +#ifdef _PENDING_EMPTY_DATA_FRAME_ + MACHWI_BUSY_EMPTY_DATA_HANDLER_STATE, +#endif // _PENDING_EMPTY_DATA_FRAME_ +} MachwiTransactionHandlerState_t; + +/****************************************************************************** + Prototypes section. +******************************************************************************/ + +/****************************************************************************** + Indicates, that transaction event happened (it was requested or just expired). + Parameters: + transaction - transaction descriptor. + event - type of the event (MAC_TRANSACTION_EXPIRED_EVENT or + MAC_TRANSACTION_READY_EVENT). + Returns: + true - activate the kicked transaction, false - otherwise. +******************************************************************************/ +bool machwiSendTransactionEvent(MachwiTransaction_t *transaction, MachwiTransactionEvent_t event); + + +/****************************************************************************** + Resets transaction handler. + Parameters: + none. + Returns: + none. +******************************************************************************/ +void machwiResetTransactionHandler(void); + +#ifdef _PENDING_EMPTY_DATA_FRAME_ +/****************************************************************************** + Sends an empty data frame in reply to the data request. + Parameters: + frameDescr - data request frame description. + Returns: + none. +******************************************************************************/ +void replyWithEmptyDataFrame(MAC_FrameDescr_t *frameDescr); +#endif // _PENDING_EMPTY_DATA_FRAME_ + +#endif //_FFD_ +#endif //_MACHWITRANSACTIONHANDLER_H + +// eof machwiTransactionHandler.h -- cgit v1.2.3