This is a variant of EXAMPLE_BCRTBM2.C that works on Linux. It does not use the EVENT_RECORDER interrupt for the BM (which is a Windows-only feature).
It demonstrates multifunction (BC, RT, BM) operation using interrupts and multiple buffers.
View the comments within the example for a full description. Click the link on the right to download this file.