PreviousNext
amIRecipientOfFRC
Help > OS functions > Networking > amIRecipientOfFRC

Function

 

Evaluate whether the FRC command is intended for given Node

Purpose

 

Enable FRC response for requested Nodes only

Syntax

 

bit amIRecipientOfFRC()

Parameters

 

 –

Return value

 

     0        FRC is not intended for given Node

     1        FRC is intended for given Node (for selective as well as non-selective FRC)

Output values

 

 –

Preconditions

 

For IQMESH Nodes only.

Remarks

 

amIRecipientOfFRC must be called after FRC command receipt but before bufferRF is affected later on either by OS or by the user.

Side effects

 

 –

See also

 

Example

 

// In Custom DPA handler

...
case DpaEvent_FrcValue:
  // Called to get FRC value
  switch (_PCMD)
  {
    // This example is sensitive to the bit FRCommand 0x40
    case FRC_USER_BIT_FROM + 0:
      // bit.1 is set only when button is pressed
      if (amIRecipientOfFRC())
        if (buttonPressed)
          responseFRCvalue.1 = 1;
      break;
...