RTC Toolkit
1.0.0
|
Files | |
file | main.cpp |
MUDPI Publisher. | |
file | mudpi.h |
MUDPI packet. | |
file | rtms.h |
MUDPI Publisher. | |
Functions | |
int | main (int argc, char **argv) |
Application entrypoint. More... | |
int main | ( | int | argc, |
char ** | argv | ||
) |
Application entrypoint.
Announce the amount of data we are sending
Either read sample values from a file or generate a ramp if no file is given
Access mudpi { int32_t topicId; uint16_t componentId; uint16_t applicationTag; uint16_t reserved; uint16_t version; uint32_t sampleId; timestamp_t timestamp; uint16_t frameId; uint16_t numFrames; uint16_t payloadSize; uint16_t reserved2; }mudpiHeader;
Fill in some fixed values for MUDPI constant fields
Create the shm seg where we coordinate instances
terminate on signal
If waiting for a trigger process, them wait, otherwise signal
If the rollingRamp flag is set then update the ramp for this sampleId if not coming from a file
Fill in some of the more interesting MUDPI fields
fill in this frame of data from the relevant part of the sample
move to the next sample and wrap around if needed