Forigo / Mbed 2 deprecated FORIGO_Modula_V7_3_VdcStep_DICEMBRE2020

Dependencies:   mbed X_NUCLEO_IHM03A1_for

canbus.hpp

Committer:
nerit
Date:
2019-04-23
Revision:
19:231b8931cabc
Parent:
3:a469bbd294b5
Child:
50:144a92eeddb9

File content as of revision 19:231b8931cabc:

#if defined(canbusActive)
    #if defined(M1)
        const unsigned int  RX_ID = 0x100;
        const unsigned int  TX_ID = 0x101;
        const unsigned int  TX_SI = 0x11A;
        const float ritAvv = 0.1f;
        #define  speedMaster
    #endif
    #if defined(M2)
        const unsigned int  RX_ID = 0x102;
        const unsigned int  TX_ID = 0x103;
        const float ritAvv = 0.5f;
        #define mezzo
    #endif
    #if defined(M3)
        const unsigned int  RX_ID = 0x104;
        const unsigned int  TX_ID = 0x105;
        const float ritAvv = 1.0f;
        #define seedSensor
    #endif
    #if defined(M4)
        const unsigned int  RX_ID = 0x106;
        const unsigned int  TX_ID = 0x107;
        const float ritAvv = 1.5f;
        #define mezzo
    #endif
    #if defined(M5)
        const unsigned int  RX_ID = 0x108;
        const unsigned int  TX_ID = 0x109;
        const float ritAvv = 2.0f;
    #endif
    #if defined(M6)
        const unsigned int  RX_ID = 0x110;
        const unsigned int  TX_ID = 0x111;
        const float ritAvv = 2.5f;
        #define mezzo
    #endif
    #if defined(M7)
        const unsigned int  RX_ID = 0x112;
        const unsigned int  TX_ID = 0x113;
        const float ritAvv = 3.0f;
    #endif
    #if defined(M8)
        const unsigned int  RX_ID = 0x114;
        const unsigned int  TX_ID = 0x115;
        const float ritAvv = 3.5f;
        #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