

#ifdef        GLOBALS_API_CAN
    #define   EXTERN_API_CAN
    
#else
    #define   EXTERN_API_CAN     extern
#endif

#ifndef API_CAN_H_
#define API_CAN_H_
    #define     SJW_1Tq                  0
    #define     SJW_2Tq                  1
    #define     SJW_3Tq                  2
    #define     SAMP_1                   0
    #define     Seg1_11Tq                10
    #define     Seg1_12Tq                11
    #define     Seg1_8Tq                 7
    #define     Seg2_7Tq                 6
    #define     Seg2_8Tq                 7
    #define     Seg1_4Tq                 3
    #define     Seg1_5Tq                 4
    #define     Seg1_6Tq                 5
    #define     Seg2_1Tq                 0
    #define     Seg2_2Tq                 1
    #define     Seg2_3Tq                 2
    #define     Seg2_4Tq                 3
    #define     IDAM_2_32Bit             0
    #define     IDAM_4_16Bit             1
    #define     IDHIT0                   0
    #define     empoty                   0
    #define     msg_full                 1
    #define     bit0_mask                1
    #define     bit1_mask                2
    #define     bit2_mask                4
    #define     bit3_mask                8
    #define     bit4_mask                16
    #define     bit5_mask                32
    #define     bit6_mask                64
    #define     bit7_mask                128
    //ºê¶¨Òå
    #define     GET_EXTPGN(id)         (((((((INT32U)id&0xFF0000)>>16) >= 0xF0)?((INT32U)id & 0x00FF00):0)|((INT32U)id & 0x2FF0000)) >> 8)
    
    #define     ID138        0x138

    #define     success      1
    #define     failt        0
      
    
    EXTERN_API_CAN               void    Api_CAN_Init(void);    
    EXTERN_API_CAN               INT16U  Api_GET_STAND_ID(INT8U *IDR0_Add);
    EXTERN_API_CAN     interrupt void    Api_CAN_Rev_isr(void); 
    EXTERN_API_CAN               INT8U   Api_CANSendFrame(CAN_message * CanMessage);
#endif /* API_CAN_H_ */
