master/master.c
changeset 493 b17c95eac6b2
parent 492 9c58efb2c72d
child 495 88c597598bbc
equal deleted inserted replaced
492:9c58efb2c72d 493:b17c95eac6b2
   863             break;
   863             break;
   864     }
   864     }
   865 
   865 
   866     off += sprintf(buffer + off, "\nSlaves: %i\n",
   866     off += sprintf(buffer + off, "\nSlaves: %i\n",
   867                    master->slave_count);
   867                    master->slave_count);
       
   868     off += sprintf(buffer + off, "\nDevice:\n");
       
   869     off += sprintf(buffer + off, "  Frames sent:     %u\n",
       
   870 		   master->device->tx_count);
       
   871     off += sprintf(buffer + off, "  Frames received: %u\n",
       
   872 		   master->device->rx_count);
       
   873     off += sprintf(buffer + off, "  Frames lost:     %u\n",
       
   874 		   master->device->tx_count - master->device->rx_count - 1);
   868 
   875 
   869     off += sprintf(buffer + off, "\nTiming (min/avg/max) [us]:\n");
   876     off += sprintf(buffer + off, "\nTiming (min/avg/max) [us]:\n");
   870 
   877 
   871     sum = 0;
   878     sum = 0;
   872     min = 0xFFFFFFFF;
   879     min = 0xFFFFFFFF;