How can I simulate both BC and RT on a multi-function device with BusTools/1553-API? How do I determine if a device is single-function or multi-function?
This is a basic example program that sets up a simple BC message list and simulates the RT. This program runs only on a multi-function device.
First it creates a BC list of two messages: 1-R-1-32 and 1-T-2-32, in a 20ms Minor Frame. This BC list runs until you stop it. You can display the data (or errors) for the 1-T-2-32 message or quit.
The program also simulates RT1, SA1 Receive and SA2 Transmit.
This example is essentially a combination of example programs 'example_bc1.c' and 'example_rt1.c'.
Download this example by clicking the attachments link on the right.