faefa

Dependencies:   mbed CANMsg

canbus.hpp

Committer:
francescopistone
Date:
2019-01-31
Branch:
test_branch
Revision:
10:26a7f59ab667
Parent:
7:c9fd242538d9

File content as of revision 10:26a7f59ab667:

#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;
        //#define seedSensor
    #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 = 0x11A;
    const unsigned int RX_Configure = 0x11B;
#endif