A FoxBone Register Monitor Utilityby Roberto AsquiniHow to use a simple command line tool to continuously monitor the status of up to four FoxBone registers. |
chmod +x FB_REG_MonitorTo use the tool just invoke it with the desired registers to monitor (up to four) on the command line parameters:
# cd /mnt/flash # ./FB_REG_Monitor 40 41 42 43 FoxBone in 0x0040:0x0003; 0x0041:0x1000; 0x0042:0x0000; 0x0043:0x0000; FoxBone in 0x0040:0x0003; 0x0041:0x1000; 0x0042:0x0000; 0x0043:0x0000; FoxBone in 0x0040:0x0003; 0x0041:0x1000; 0x0042:0x0000; 0x0043:0x0000; FoxBone in 0x0040:0x0003; 0x0041:0x1000; 0x0042:0x0000; 0x0043:0x0000; # #There will be printed once per second a line containing information on the foxbone registers selected. You can so monitor their status during testing of your FoxBone hardware application. You can invoke even more than one instance of the FB_REG_Monitor in different console session to monitor more than 4 registers.
Here is for reference the source code of the FB_REG_Monitor.c utility.