Linux-CAN / SocketCAN user space applications
 
 
 
 
Go to file
Marc Kleine-Budde 26488b16e6 can-calc-bit-timing: improve printing of bit timing parameters
This patch adds additional fields when printing the bit timing
parameters. Now the real bitrate the nominal and the real sample point
as well as the error of the sample point is displayed.

The output now looks like this:

Bit timing parameters for at91 with 100.000000 MHz ref clock
nominal                                 real Bitrt   nom  real SampP
Bitrate TQ[ns] PrS PhS1 PhS2 SJW BRP Bitrate Error SampP SampP Error     CAN_BR
1000000     50   7    7    5   1   5 1000000  0.0% 75.0% 75.0%  0.0% 0x00040664
 800000     50   8    8    8   1   5  800000  0.0% 80.0% 68.0% 15.0% 0x00040777
 500000    100   8    8    3   1  10  500000  0.0% 87.5% 85.0%  2.9% 0x00090772
 250000    250   6    7    2   1  25  250000  0.0% 87.5% 87.5%  0.0% 0x00180561
 125000    500   6    7    2   1  50  125000  0.0% 87.5% 87.5%  0.0% 0x00310561
 100000    500   8    8    3   1  50  100000  0.0% 87.5% 85.0%  2.9% 0x00310772
  50000   1250   6    7    2   1 125   50000  0.0% 87.5% 87.5%  0.0% 0x007c0561
  20000 ***bitrate not possible***
  10000 ***bitrate not possible***

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2010-07-20 13:43:12 +00:00
config/m4 add autotools infrastructure 2010-04-19 12:12:18 +00:00
.gitignore add can-calc-bit-timing to Makefiles + gitignore 2010-07-20 13:43:01 +00:00
GNUmakefile.am add can-calc-bit-timing to Makefiles + gitignore 2010-07-20 13:43:01 +00:00
Makefile add can-calc-bit-timing to Makefiles + gitignore 2010-07-20 13:43:01 +00:00
asc2log.c Allow to have 4, 5 or 6 decimal places instead of only 4 & 6. 2010-05-11 10:01:49 +00:00
autogen.sh add autotools infrastructure 2010-04-19 12:12:18 +00:00
bcmserver.c Move BCM server into can-utils as it is not test application anymore. 2009-09-10 07:39:33 +00:00
can-calc-bit-timing.c can-calc-bit-timing: improve printing of bit timing parameters 2010-07-20 13:43:12 +00:00
canbusload.c Remove compiler warning : 2010-05-14 12:50:17 +00:00
candump.c Try to ignore the usual value restrictions of sockopt SO_RCVBUF when running 2010-01-15 19:15:08 +00:00
canfdtest.c can-utils: canfdtest, a full duplex test to find out-of-order messages 2009-11-25 11:18:22 +00:00
cangen.c When sending a sequence, we need to resend the same frame when poll() returns. 2010-02-26 08:38:47 +00:00
cangw.c cangw: replace obsolete bzero by memset 2010-04-19 12:11:49 +00:00
canlogserver.c Whitespace fixes. Indented the code following Linux styleguide to fix 2008-06-03 08:46:57 +00:00
canplayer.c Remove compiler warning : 2010-05-14 12:50:17 +00:00
cansend.c Whitespace fixes. Indented the code following Linux styleguide to fix 2008-06-03 08:46:57 +00:00
cansniffer.c Consistencely allow '-?' to get a help text. 2009-01-13 09:32:45 +00:00
configure.ac add autotools infrastructure 2010-04-19 12:12:18 +00:00
isotpdump.c Consistencely allow '-?' to get a help text. 2009-01-13 09:32:45 +00:00
isotprecv.c Consistencely allow '-?' to get a help text. 2009-01-13 09:32:45 +00:00
isotpsend.c Consistencely allow '-?' to get a help text. 2009-01-13 09:32:45 +00:00
isotpserver.c Added tiny ip server to send ISO 15765-2 PDUs via internetsockets to the CAN bus and vice versa. 2010-05-14 12:03:32 +00:00
isotpsniffer.c Consistencely allow '-?' to get a help text. 2009-01-13 09:32:45 +00:00
isotptun.c Allow to specify the name of the IP tunnel netdevice via commandline option '-n <name>' 2009-11-25 17:15:09 +00:00
lib.c Fixed parse_canframe() with reordering the checks for the can_id 2008-11-28 21:50:24 +00:00
lib.h Added support for swapped byte order representation. 2008-10-29 09:23:48 +00:00
log2asc.c Consistencely allow '-?' to get a help text. 2009-01-13 09:32:45 +00:00
log2long.c Whitespace fixes. Indented the code following Linux styleguide to fix 2008-06-03 08:46:57 +00:00
slcan_attach.c Consistencely allow '-?' to get a help text. 2009-01-13 09:32:45 +00:00
slcand.c Added slcand daemon contributed by Robert Haddon <robert.haddon@verari.com> 2009-05-05 09:40:10 +00:00
slcanpty.c Spagetti code cleanup: 2009-02-15 17:40:32 +00:00
terminal.h Fixed contradiction in Sourcecode discalimer. 2007-09-27 12:29:32 +00:00