All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Grandegger <wg@domain.hid>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] CAN question
Date: Wed, 28 Feb 2007 14:48:57 +0100	[thread overview]
Message-ID: <45E58849.6030605@domain.hid> (raw)
In-Reply-To: <45E582D5.8010800@domain.hid>

Jan Kiszka wrote:
> Roland Tollenaar wrote:
>> Hi Jan,
>>
>>> Err? What are practical cases for you?
>>>
>>> Both modes are _debugging_ features.
>> Huh? There only seem to be two flavours. Listen_only or loopback. Are
>> you saying that for normal operation it does not matter at all what the
>> setting is? I.e. don't even have to bother setting the parameter?
>>
> 
> Check the documentation of SIOCSCANCTRLMODE. It should clearly state
> that those are modes can be activated additionally and independently.
> Also check what happens in the existing rtcanconfig code, it underlines
> this.
> 
> If you find an even better way to express this in the doc: patches are
> welcome.

I'm going to update the doc as follows:

/*!
  * @anchor CAN_CTRLMODE @name CAN controller modes
  * Special CAN controllers modes, which can be or'ed together.
  *
  * @note These modes are hardware-dependent. Please consult the hardware
  * manual of the CAN controller for more detailed information.
  *
  * @{ */

/*! Listen-Only mode
  *
  *  In this mode the CAN controller would give no acknowledge to the
  *  CAN-bus, even if a message is received successfully and messages
  * would not be transmitted. This mode might be useful for
  * bus-monitoring, hot-plugging or throughput analysis. */
#define CAN_CTRLMODE_LISTENONLY 0x1

/*! Loopback mode
  *
  * In this mode the CAN controller does an internal loop-back, a message
  * is transmitted and simultaneously received. That mode can be used for
  * self test operation. */
#define CAN_CTRLMODE_LOOPBACK   0x2

Hope it's clearer now. For the moment, just don't care about special 
features.

Wolfgang.



      reply	other threads:[~2007-02-28 13:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-27 16:48 [Xenomai-help] CAN question roland Tollenaar
2007-02-27 17:41 ` Jan Kiszka
2007-02-27 22:34   ` roland Tollenaar
2007-02-28  7:55     ` Jan Kiszka
2007-02-28 13:12       ` Roland Tollenaar
2007-02-28 13:25         ` Jan Kiszka
2007-02-28 13:48           ` Wolfgang Grandegger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45E58849.6030605@domain.hid \
    --to=wg@domain.hid \
    --cc=jan.kiszka@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.