Apps     Components     Interfaces     All Files     Source Tree     source: tos.interfaces.CommControl.nc

Interface: CommControl

This interface defines commands for controlling aspects of the communication layer.
Author: Matt Welsh

Components providing this interface:
apps.Bombilla.AMPromiscuous
apps.Bombilla.GenericCommPromiscuous
tos.system.AMPromiscuous
tos.system.GenericCommPromiscuous

Components requiring this interface:
tos.lib.Route.MultiHopEngineM

Commands

Commands - Details

setCRCCheck

result_t setCRCCheck(bool value)

Set the value of the CRC check flag. If set to 'true', received packets with a CRC field other than '1' are dropped.
Returns: SUCCESS if the CRC check value could be set; FAIL otherwise (for example, if CRC check is not implemented).

setPromiscuous

result_t setPromiscuous(bool value)

Set the value of the promiscuous mode flag. If set to 'true', all received packets are passed to the receiver. If set to 'false', only packets destined for this node (or sent to the broadcast address) are passed up.
Returns: SUCCESS if the promiscuous flag could be set; FAIL otherwise (for example, if promiscuous mode is not implemented).