Subversion Repositories HomeAutomation

Rev

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

Rev 807 Rev 817
Line 76... Line 76...
76
 
76
 
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
 
-
 
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
-
 
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
-
 
86
 
81
/**
87
/**
82
 * @brief Initialize StdCan.
88
 * @brief Initialize StdCan.
83
 *
89
 *
84
 * Initializes the StdCan and lower layers and sends an Application Startup
90
 * Initializes the StdCan and lower layers and sends an Application Startup
85
 * Message.
91
 * Message.