diff -r f45fd4cd3832 -r 34654679f262 doc/doxygen/html/Slave_8c-source.html --- a/doc/doxygen/html/Slave_8c-source.html Fri Jul 06 10:53:15 2007 +0200 +++ b/doc/doxygen/html/Slave_8c-source.html Mon Jul 16 08:56:03 2007 +0200 @@ -18,7 +18,7 @@
  • Globals
  • +examples » TestMasterSlave

    Slave.c

    Go to the documentation of this file.
    00001 /*
     00002 This file is part of CanFestival, a library implementing CanOpen Stack. 
     00003 
    @@ -46,68 +46,83 @@
     00025 #include "TestMasterSlave.h"
     00026 
     00027 /*****************************************************************************/
    -00028 void TestSlave_heartbeatError(UNS8 heartbeatID)
    +00028 void TestSlave_heartbeatError(UNS8 heartbeatID)
     00029 {
    -00030         eprintf("TestSlave_heartbeatError %d\n", heartbeatID);
    +00030         eprintf("TestSlave_heartbeatError %d\n", heartbeatID);
     00031 }
     00032 
    -00033 void TestSlave_initialisation()
    +00033 void TestSlave_initialisation()
     00034 {
    -00035         eprintf("TestSlave_initialisation\n");
    +00035         eprintf("TestSlave_initialisation\n");
     00036 }
     00037 
    -00038 void TestSlave_preOperational()
    +00038 void TestSlave_preOperational()
     00039 {
    -00040         eprintf("TestSlave_preOperational\n");
    +00040         eprintf("TestSlave_preOperational\n");
     00041 }
     00042 
    -00043 void TestSlave_operational()
    +00043 void TestSlave_operational()
     00044 {
    -00045         eprintf("TestSlave_operational\n");
    +00045         eprintf("TestSlave_operational\n");
     00046 }
     00047 
    -00048 void TestSlave_stopped()
    +00048 void TestSlave_stopped()
     00049 {
    -00050         eprintf("TestSlave_stopped\n");
    +00050         eprintf("TestSlave_stopped\n");
     00051 }
     00052 
    -00053 void TestSlave_post_sync()
    +00053 void TestSlave_post_sync()
     00054 {
    -00055       eprintf("TestSlave_post_sync\n");
    +00055       eprintf("TestSlave_post_sync\n");
     00056       
    -00057       SlaveMap1=1;
    -00058       SlaveMap2=1;
    -00059       SlaveMap3=0;
    -00060       SlaveMap4=0;
    -00061       SlaveMap5=1;
    -00062       SlaveMap6=0;
    -00063       SlaveMap7=1;
    -00064       SlaveMap8=0;
    -00065       SlaveMap9=16;
    -00066       SlaveMap10 = 0xff00ff00;
    -00067       SlaveMap11 = 0xabcd;
    -00068       eprintf("Slave: %d %d %d %d %d %d %d %d %d %x %x\n",SlaveMap1, SlaveMap2, SlaveMap3, SlaveMap4, SlaveMap5, SlaveMap6, SlaveMap7, SlaveMap8, SlaveMap9, SlaveMap10,SlaveMap11);
    -00069 }
    -00070 
    -00071 void TestSlave_post_TPDO()
    -00072 {
    -00073         eprintf("TestSlave_post_TPDO\n");
    -00074 }
    -00075 
    -00076 void TestSlave_storeODSubIndex(UNS16 wIndex, UNS8 bSubindex)
    -00077 {
    -00078         /*TODO : 
    -00079          * - call getODEntry for index and subindex, 
    -00080          * - save content to file, database, flash, nvram, ...
    -00081          * 
    -00082          * To ease flash organisation, index of variable to store
    -00083          * can be established by scanning d->objdict[d->ObjdictSize]
    -00084          * for variables to store.
    -00085          * 
    -00086          * */
    -00087         eprintf("TestSlave_storeODSubIndex : %4.4x %2.2x\n", wIndex,  bSubindex);
    -00088 }
    -

    Generated on Fri Jun 8 08:51:39 2007 for CanFestival by  +00057 SlaveMap1=1; +00058 SlaveMap2=1; +00059 SlaveMap3=0; +00060 SlaveMap4=0; +00061 SlaveMap5=1; +00062 SlaveMap6=0; +00063 SlaveMap7=1; +00064 SlaveMap8=0; +00065 SlaveMap9=16; +00066 SlaveMap10 = 0xff00ff00; +00067 SlaveMap11 = 0xabcd; +00068 SlaveMap12 += SlaveMap12 > 0x80 ? 0 : 1; +00069 eprintf("Slave: %d %d %d %d %d %d %d %d %d %x %x %d %d \n", +00070 SlaveMap1, +00071 SlaveMap2, +00072 SlaveMap3, +00073 SlaveMap4, +00074 SlaveMap5, +00075 SlaveMap6, +00076 SlaveMap7, +00077 SlaveMap8, +00078 SlaveMap9, +00079 SlaveMap10, +00080 SlaveMap11, +00081 SlaveMap12, +00082 SlaveMap13); +00083 } +00084 +00085 void TestSlave_post_TPDO() +00086 { +00087 SlaveMap13 += 1; +00088 eprintf("TestSlave_post_TPDO\n"); +00089 } +00090 +00091 void TestSlave_storeODSubIndex(UNS16 wIndex, UNS8 bSubindex) +00092 { +00093 /*TODO : +00094 * - call getODEntry for index and subindex, +00095 * - save content to file, database, flash, nvram, ... +00096 * +00097 * To ease flash organisation, index of variable to store +00098 * can be established by scanning d->objdict[d->ObjdictSize] +00099 * for variables to store. +00100 * +00101 * */ +00102 eprintf("TestSlave_storeODSubIndex : %4.4x %2.2x\n", wIndex, bSubindex); +00103 } +
    Generated on Mon Jul 2 19:10:16 2007 for CanFestival by  doxygen 1.5.1