Linux CAN drivers development
 help / color / mirror / Atom feed
* Flexcan - timestamp from message buffer to userspace
@ 2013-10-18  9:56 Martin Kozusky
  2013-10-18 10:55 ` Martin Kozusky
  0 siblings, 1 reply; 12+ messages in thread
From: Martin Kozusky @ 2013-10-18  9:56 UTC (permalink / raw)
  To: linux-can

Hello,
is there any official way how to read timestamp from flexcans message 
buffer?
I see there is a macro defined FLEXCAN_MB_CNT_TIMESTAMP in flexcan.c, 
but not used.
I would modify function flecan_read_fifo like

+ u32 timestamp = FLEXCAN_MB_CNT_TIMESTAMP(reg_ctrl);

but what to do with timestamp variable next and how to read it in 
userspace? :) I could change structure can_frame and add  u32 timestamp 
into it, but it wouldn't be very nice hack I think.

BTW: is timestamp read with SO_TIMESTAMP  actualy taken when CAN message 
arrives?

Thanks,
Martin


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2013-10-22 19:36 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-18  9:56 Flexcan - timestamp from message buffer to userspace Martin Kozusky
2013-10-18 10:55 ` Martin Kozusky
2013-10-18 14:42   ` Oliver Hartkopp
2013-10-21  6:54     ` Martin Kozusky
2013-10-21  8:00       ` Wolfgang Grandegger
2013-10-21  8:11         ` Wolfgang Grandegger
2013-10-21  8:54           ` Martin Kozusky
2013-10-21  9:51             ` Martin Kozusky
2013-10-21 11:23               ` Wolfgang Grandegger
2013-10-21 16:29                 ` Oliver Hartkopp
2013-10-22 12:22                   ` Martin Kozusky
2013-10-22 19:36                     ` Oliver Hartkopp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox