Interface: tos.interfaces.PacketAcknowledgements
interface PacketAcknowledgements
This interface allows a component to enable or disable acknowledgments
on a per-packet basis.
- Author:
-
Jonathan Hui
-
Philip Levis
-
Joe Polastre
- Date:
-
June 21 2006
Commands
command error_t noAck(message_t *msg)
command error_t requestAck(message_t *msg)
command bool wasAcked(message_t *msg)
Commands - Details
noAck
command error_t noAck(message_t *msg)
- Parameters:
-
msg
- - A message which should not be acknowledged when transmitted.
- Returns:
-
SUCCESS if acknowledgements are disabled, EBUSY
if the communication layer cannot disable them at this time, FAIL
if it cannot support unacknowledged communication.
requestAck
command error_t requestAck(message_t *msg)
- Parameters:
-
msg
- - A message which should be acknowledged when transmitted.
- Returns:
-
SUCCESS if acknowledgements are enabled, EBUSY
if the communication layer cannot enable them at this time, FAIL
if it does not support them.
wasAcked
command bool wasAcked(message_t *msg)
- Parameters:
-
msg
- - A transmitted message.
- Returns:
-
Whether the packet was acknowledged.