Rev 817 | Rev 827 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 817 | Rev 823 | ||
|---|---|---|---|
| Line 77... | Line 77... | ||
| 77 | #define StdCan_Ret_class(MSG) (uint8_t)((MSG.Header.ClassAndDirection >> 1) & 0x0F) |
77 | #define StdCan_Ret_class(MSG) (uint8_t)((MSG.Header.ClassAndDirection >> 1) & 0x0F) |
| 78 | #define StdCan_Set_class(MSG, CLASS) MSG.Header.ClassAndDirection &= 0x01; MSG.Header.ClassAndDirection |= (CLASS << 1); |
78 | #define StdCan_Set_class(MSG, CLASS) MSG.Header.ClassAndDirection &= 0x01; MSG.Header.ClassAndDirection |= (CLASS << 1); |
| 79 | #define StdCan_Ret_direction(MSG) (uint8_t)(MSG.Header.ClassAndDirection & 0x01) |
79 | #define StdCan_Ret_direction(MSG) (uint8_t)(MSG.Header.ClassAndDirection & 0x01) |
| 80 | #define StdCan_Set_direction(MSG, DIR) MSG.Header.ClassAndDirection &= 0xfe; MSG.Header.ClassAndDirection |= DIR; |
80 | #define StdCan_Set_direction(MSG, DIR) MSG.Header.ClassAndDirection &= 0xfe; MSG.Header.ClassAndDirection |= DIR; |
| 81 | 81 | ||
| 82 | #define NODE_HW_ID_BYTE0 (uint8_t)(NODE_HW_ID>>24)&0xff |
82 | #define NODE_HW_ID_BYTE0 (uint8_t)((NODE_HW_ID>>24)&0xff) |
| 83 | #define NODE_HW_ID_BYTE1 (uint8_t)(NODE_HW_ID>>16)&0xff |
83 | #define NODE_HW_ID_BYTE1 (uint8_t)((NODE_HW_ID>>16)&0xff) |
| 84 | #define NODE_HW_ID_BYTE2 (uint8_t)(NODE_HW_ID>>8)&0xff |
84 | #define NODE_HW_ID_BYTE2 (uint8_t)((NODE_HW_ID>>8)&0xff) |
| 85 | #define NODE_HW_ID_BYTE3 (uint8_t)(NODE_HW_ID)&0xff |
85 | #define NODE_HW_ID_BYTE3 (uint8_t)((NODE_HW_ID)&0xff) |
| 86 | 86 | ||
| 87 | /** |
87 | /** |
| 88 | * @brief Initialize StdCan. |
88 | * @brief Initialize StdCan. |
| 89 | * |
89 | * |
| 90 | * Initializes the StdCan and lower layers and sends an Application Startup |
90 | * Initializes the StdCan and lower layers and sends an Application Startup |