[En-Nut-Discussion] Patch: Export

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Mon Oct 5 18:40:14 CEST 2009


Hello,

to allow fine-grained Can Filter/Mask settings, AtCanEnableMsgObj() needs to
be exported. A note that more then RX_MOB MOBs can be set up is added.

Bye
-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
Index: nut/include/dev/atcan.h
===================================================================
--- nut/include/dev/atcan.h	(Revision 2740)
+++ nut/include/dev/atcan.h	(Arbeitskopie)
@@ -73,6 +73,10 @@
  
 int8_t AtCanGetBusState(void);
 
+int8_t AtCanEnableMsgObj(uint8_t mob,
+                         uint32_t id, int8_t idIsExt, int8_t idRemTag,
+                         uint32_t mask, int8_t maskIsExt, int8_t maskRemTag);
+
 int8_t AtCanEnableRx(uint8_t noOfMsgObjs,
                      uint32_t id, int8_t idIsExt, int8_t idRemTag,
                      uint32_t mask, int8_t maskIsExt, int8_t maskRemTag);
Index: nut/arch/avr/dev/atcan.c
===================================================================
--- nut/arch/avr/dev/atcan.c	(Revision 2740)
+++ nut/arch/avr/dev/atcan.c	(Arbeitskopie)
@@ -302,6 +302,8 @@
 /**
  * Configure a single message object for receiption.
  *
+ * All 15 MOBS can be set up for reception,  not only RX_MOB MOBs
+ *
  * @param mob        Message object index (0-14)
  * @param id         Acceptance code
  * @param idIsExt    Flag if acceptance code is extended (0 = standard, 1 = extended)



More information about the En-Nut-Discussion mailing list