Rev 827 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 827 | Rev 832 | ||
|---|---|---|---|
| Line 77... | Line 77... | ||
| 77 | #define StdCan_Ret_class(Header) (uint8_t)((Header.ClassAndDirection >> 1) & 0x0F) |
77 | #define StdCan_Ret_class(Header) (uint8_t)((Header.ClassAndDirection >> 1) & 0x0F) |
| 78 | #define StdCan_Set_class(Header, CLASS) Header.ClassAndDirection &= 0x01; Header.ClassAndDirection |= (CLASS << 1); |
78 | #define StdCan_Set_class(Header, CLASS) Header.ClassAndDirection &= 0x01; Header.ClassAndDirection |= (CLASS << 1); |
| 79 | #define StdCan_Ret_direction(Header) (uint8_t)(Header.ClassAndDirection & 0x01) |
79 | #define StdCan_Ret_direction(Header) (uint8_t)(Header.ClassAndDirection & 0x01) |
| 80 | #define StdCan_Set_direction(Header, DIR) Header.ClassAndDirection &= 0xfe; Header.ClassAndDirection |= DIR; |
80 | #define StdCan_Set_direction(Header, DIR) Header.ClassAndDirection &= 0xfe; Header.ClassAndDirection |= DIR; |
| 81 | 81 | ||
| 82 | #define |
82 | #define NODE_HW_ID_BYTE3 (uint8_t)((NODE_HW_ID>>24)&0xff) |
| 83 | #define |
83 | #define NODE_HW_ID_BYTE2 (uint8_t)((NODE_HW_ID>>16)&0xff) |
| 84 | #define |
84 | #define NODE_HW_ID_BYTE1 (uint8_t)((NODE_HW_ID>>8)&0xff) |
| 85 | #define |
85 | #define NODE_HW_ID_BYTE0 (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 |