PreviousNext
Acknowledged broadcast - bits
Help > Peripherals > FRC > Embedded FRC Commands > Acknowledged broadcast - bits

FRC_AcknowledgedBroadcastBits = 0x02

 

This command except for collecting bits allows executing DPA Request stored at FRC user data after the FRC result is sent back [sync]. When the Send Selective request is used, then the DPA Request is executed at selected Nodes only.

 

Input FCR user data has the following content. Please note that DPA does not check the correct content or length of FRC user data (except maximum FRC user data length of 30 bytes).

 

0

1

2

3 … 4

5 … length - 1

Length

PNUM

PCMD

HWPID

PData

 

Length              Total length of FRC user data containing the DPA Request.

PNUM              Peripheral number of executing DPA Request at.

PCMD              Peripheral command.

HWPID             HWPD of the DPA Request.

PData               Optional DPA Request Data.

 

DPA Request is executed only when HWPID matches the HWPID of the device or HWPID_DoNotCheck is specified. In this case, also, the FrcValue event is raised to allow setting resulting FRC bit.1 by the user. The sender’s address of the embedded DPA Request equals 0x00 ([C] address) and the addressee’s address is 0xFF (broadcast address).

 

Returned FRC value bits:

bit.0

bit.1

Description

0

0

The [N] device did not respond to the FRC command at all.

0

1

HWPID did not match the HWPID of the device.

1

x

HWPID matches the HWPID of the device. Bit.1 can be set by the FrcValue event. In the end, the DPA Request is executed.

 

Example of FRC user data:

 

This example will pulse both LEDs after the FRC is collected. To pulse both LEDs by one request a Batch request is used to package individual 2 LED pulse requests into one request.

 

16{Length}, 2{PNUM=OS}, 5{PCMD=Batch}, 0xffff{HWPID}, [5{LED Request length},7{PNUM=LEDG},3{PCMD=PulseLED}, 0xffff{HWPID}, 5{ LED Request length },6{ PNUM=LEDR},3{ PCMD=PulseLED }, 0xffff{HWPID}, 0{End of Batch}] {PData=Batch PData}