Subversion Repositories HomeAutomation

Rev

Rev 869 | Rev 2031 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 869 Rev 1909
Line 79... Line 79...
79
 
79
 
80
#define StdCan_Ret_class(Header) (uint8_t)((Header.ClassAndDirection >> 1) & 0x0F)
80
#define StdCan_Ret_class(Header) (uint8_t)((Header.ClassAndDirection >> 1) & 0x0F)
81
#define StdCan_Set_class(Header, CLASS) Header.ClassAndDirection &= 0x01; Header.ClassAndDirection |= (CLASS << 1);
81
#define StdCan_Set_class(Header, CLASS) Header.ClassAndDirection &= 0x01; Header.ClassAndDirection |= (CLASS << 1);
82
#define StdCan_Ret_direction(Header) (uint8_t)(Header.ClassAndDirection & 0x01)
82
#define StdCan_Ret_direction(Header) (uint8_t)(Header.ClassAndDirection & 0x01)
83
#define StdCan_Set_direction(Header, DIR) Header.ClassAndDirection &= 0xfe; Header.ClassAndDirection |= DIR;
83
#define StdCan_Set_direction(Header, DIR) Header.ClassAndDirection &= 0xfe; Header.ClassAndDirection |= DIR;
-
 
84
 
84
#define NODE_HW_ID_BYTE3 (uint8_t)((NODE_HW_ID>>24)&0xff)
85
#define NODE_HW_ID_BYTE3 (uint8_t)((BIOS_GetHwId()>>24)&0xff)
85
#define NODE_HW_ID_BYTE2 (uint8_t)((NODE_HW_ID>>16)&0xff)
86
#define NODE_HW_ID_BYTE2 (uint8_t)((BIOS_GetHwId()>>16)&0xff)
86
#define NODE_HW_ID_BYTE1 (uint8_t)((NODE_HW_ID>>8)&0xff)
87
#define NODE_HW_ID_BYTE1 (uint8_t)((BIOS_GetHwId()>>8)&0xff)
87
#define NODE_HW_ID_BYTE0 (uint8_t)((NODE_HW_ID)&0xff)
88
#define NODE_HW_ID_BYTE0 (uint8_t)((BIOS_GetHwId())&0xff)
88
 
89
 
89
/**
90
/**
90
 * @brief Node descriptor.
91
 * @brief Node descriptor.
91
 *
92
 *
92
 * Describes the node and the application running on it.
93
 * Describes the node and the application running on it.