new

Dependencies:   mbed CANMsg

canbus.hpp

Committer:
nerit
Date:
2018-06-13
Revision:
0:1e09cd7d66b4
Child:
6:3fca0ca1949e

File content as of revision 0:1e09cd7d66b4:

#if defined(canbusActive)
    #if defined(M1)
        const unsigned int  RX_ID = 0x100;
        const unsigned int  TX_ID = 0x101;
        const unsigned int  TX_SI = 0x11A;
        #define  speedMaster
    #endif
    #if defined(M2)
        const unsigned int  RX_ID = 0x102;
        const unsigned int  TX_ID = 0x103;
        #define mezzo
    #endif
    #if defined(M3)
        const unsigned int  RX_ID = 0x104;
        const unsigned int  TX_ID = 0x105;
    #endif
    #if defined(M4)
        const unsigned int  RX_ID = 0x106;
        const unsigned int  TX_ID = 0x107;
        #define mezzo
    #endif
    #if defined(M5)
        const unsigned int  RX_ID = 0x108;
        const unsigned int  TX_ID = 0x109;
    #endif
    #if defined(M6)
        const unsigned int  RX_ID = 0x110;
        const unsigned int  TX_ID = 0x111;
        #define mezzo
    #endif
    #if defined(M7)
        const unsigned int  RX_ID = 0x112;
        const unsigned int  TX_ID = 0x113;
    #endif
    #if defined(M8)
        const unsigned int  RX_ID = 0x114;
        const unsigned int  TX_ID = 0x115;
        #define mezzo
    #endif
    #if defined(M9)
        const unsigned int  RX_ID = 0x116;
        const unsigned int  TX_ID = 0x117;
    #endif
    #if defined(M10)
        const unsigned int  RX_ID = 0x118;
        const unsigned int  TX_ID = 0x119;
        #define mezzo
    #endif

// indirizzi validi per i comandi in broadcast
    const unsigned int RX_Broadcast = 0x130;
    const unsigned int TX_Broadcast = 0x131;
    const unsigned int RX_Settings  = 0x132;
    const unsigned int RX_AngoloPh  = 0x133;
    const unsigned int RX_AngoloAv  = 0x134;
    const unsigned int RX_Quinconce = 0x135;
//    const unsigned int RX_QuincSinc = 0x136;
    const unsigned int RX_QuincSinc = 0x11A;
#endif