* @author Jan Hauer <hauer@tkn.tu-berlin.de>
* ========================================================================
*/
+
#include "TKN154_MAC.h"
generic configuration RadioClientC()
{
provides
{
+ interface RadioOff;
interface RadioRx;
interface RadioTx;
- interface RadioOff;
+ interface SlottedCsmaCa;
+ interface UnslottedCsmaCa;
interface Resource as Token;
interface ResourceRequested as TokenRequested;
interface ResourceTransfer;
CLIENT = unique(IEEE802154_RADIO_RESOURCE),
};
- components FrameDispatchP;
- RadioRx = FrameDispatchP.RadioRx[CLIENT];
- RadioTx = FrameDispatchP.RadioTx[CLIENT];
- RadioOff = FrameDispatchP.RadioOff[CLIENT];
- Token = FrameDispatchP.Token[CLIENT];
- IsResourceRequested = FrameDispatchP.IsResourceRequested;
- TokenRequested = FrameDispatchP.TokenRequested[CLIENT];
+ components RadioControlP;
+ RadioRx = RadioControlP.RadioRx[CLIENT];
+ RadioTx = RadioControlP.RadioTx[CLIENT];
+ RadioOff = RadioControlP.RadioOff[CLIENT];
+ SlottedCsmaCa = RadioControlP.SlottedCsmaCa[CLIENT];
+ UnslottedCsmaCa = RadioControlP.UnslottedCsmaCa[CLIENT];
+ Token = RadioControlP.Token[CLIENT];
+ IsResourceRequested = RadioControlP.IsResourceRequested;
+ TokenRequested = RadioControlP.TokenRequested[CLIENT];
components new TransferClientP(CLIENT);
ResourceTransfer = TransferClientP;
ResourceTransferred = TransferClientP;
TransferTo = TransferClientP;
TransferFrom = TransferClientP;
- TransferClientP.ResourceTransferControl -> FrameDispatchP;
- TransferClientP.Leds -> FrameDispatchP;
+ TransferClientP.ResourceTransferControl -> RadioControlP;
+ TransferClientP.Leds -> RadioControlP;
}