X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Frf2xx%2Flayers%2FPacketLinkLayerP.nc;h=9418770d33d7799f0ed53b6f23296aadf59daf08;hb=fb06e38f2c4372980a983a3d79f584221d475a36;hp=a54e135fa09d247b9a68715c5d12bc2e6f6657fc;hpb=a3ebb402bf00465e45f4420fb0c472e03432cca9;p=tinyos-2.x.git diff --git a/tos/chips/rf2xx/layers/PacketLinkLayerP.nc b/tos/chips/rf2xx/layers/PacketLinkLayerP.nc index a54e135f..9418770d 100644 --- a/tos/chips/rf2xx/layers/PacketLinkLayerP.nc +++ b/tos/chips/rf2xx/layers/PacketLinkLayerP.nc @@ -69,7 +69,7 @@ module PacketLinkLayerP { interface Send as SubSend; interface PacketAcknowledgements; interface Timer as DelayTimer; - interface PacketData; + interface PacketData as PacketLinkMetadata; } } @@ -99,7 +99,7 @@ implementation { * the message */ command void PacketLink.setRetries(message_t *msg, uint16_t maxRetries) { - (call PacketData.getData(msg))->maxRetries = maxRetries; + (call PacketLinkMetadata.get(msg))->maxRetries = maxRetries; } /** @@ -108,21 +108,21 @@ implementation { * @param retryDelay the delay betweeen retry attempts, in milliseconds */ command void PacketLink.setRetryDelay(message_t *msg, uint16_t retryDelay) { - (call PacketData.getData(msg))->retryDelay = retryDelay; + (call PacketLinkMetadata.get(msg))->retryDelay = retryDelay; } /** * @return the maximum number of retry attempts for this message */ command uint16_t PacketLink.getRetries(message_t *msg) { - return (call PacketData.getData(msg))->maxRetries; + return (call PacketLinkMetadata.get(msg))->maxRetries; } /** * @return the delay between retry attempts in ms for this message */ command uint16_t PacketLink.getRetryDelay(message_t *msg) { - return (call PacketData.getData(msg))->retryDelay; + return (call PacketLinkMetadata.get(msg))->retryDelay; } /** @@ -132,8 +132,8 @@ implementation { return call PacketAcknowledgements.wasAcked(msg); } - async event void PacketData.clear(packet_link_metadata_t* data) { - data->maxRetries = 0; + async event void PacketLinkMetadata.clear(message_t* msg) { + (call PacketLinkMetadata.get(msg))->maxRetries = 0; } /***************** Send Commands ***************/