- enum {
- 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 new TransferClientP(CLIENT);
- ResourceTransfer = TransferClientP;
- ResourceTransferred = TransferClientP;
- TransferTo = TransferClientP;
- TransferFrom = TransferClientP;
- TransferClientP.ResourceTransferControl -> FrameDispatchP;
- TransferClientP.Leds -> FrameDispatchP;
+ components RadioControlP;
+ RadioRx = RadioControlP.RadioRx[clientID];
+ RadioTx = RadioControlP.RadioTx[clientID];
+ RadioOff = RadioControlP.RadioOff[clientID];
+ SlottedCsmaCa = RadioControlP.SlottedCsmaCa[clientID];
+ UnslottedCsmaCa = RadioControlP.UnslottedCsmaCa[clientID];
+ RadioToken = RadioControlP.TransferableResource[clientID];
+ RadioTokenRequested = RadioControlP.ResourceRequested[clientID];