-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

Paul Thomas wrote:
> I saw that the mcp2515 chip supports a one-shot mode. It's just setting bit
> 3 (OSM) of the CANCTRL register. I'd mentioned this to Christian, and I
> don't thing setting the register is a big deal, but the issue will be
> setting this mode with ip or some other user space tool.

what about adding the one shot mode to the ctrl_mode? It already holds
the tipple sample and listen-only feature.

cheers, Marc

- From 6d17ea182a8e0f86e6ec6c2d673e4bb72616dd50 Mon Sep 17 00:00:00 2001
From: Marc Kleine-Budde <[email protected]>
Date: Tue, 22 Dec 2009 18:58:06 +0100
Subject: [PATCH] can/netlink: add CAN_CTRLMODE_ONE_SHOT

Signed-off-by: Marc Kleine-Budde <[email protected]>
- ---
 include/linux/can/netlink.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/linux/can/netlink.h b/include/linux/can/netlink.h
index 9ecbb78..c818335 100644
- --- a/include/linux/can/netlink.h
+++ b/include/linux/can/netlink.h
@@ -80,6 +80,7 @@ struct can_ctrlmode {
 #define CAN_CTRLMODE_LOOPBACK  0x1     /* Loopback mode */
 #define CAN_CTRLMODE_LISTENONLY        0x2     /* Listen-only mode */
 #define CAN_CTRLMODE_3_SAMPLES 0x4     /* Triple sampling mode */
+#define CAN_CTRLMODE_ONE_SHOT  0x8     /* One-Shot mode */

 /*
  * CAN device statistics
- --
1.6.5.7

- --
Pengutronix e.K.                         | Marc Kleine-Budde           |
Linux Solutions for Science and Industry | Phone: +49-231-2826-924     |
Vertretung West/Dortmund                 | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686         | http://www.pengutronix.de   |
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAksxCSoACgkQjTAFq1RaXHMBEQCfZydsisHeUuD2kUb+4fHlEkyt
iOoAnj60zaME8LnEZqjFfOqPbWVLbpNc
=6KX3
-----END PGP SIGNATURE-----
_______________________________________________
Socketcan-core mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-core

Reply via email to