2 * can_msg_masks.h 09/04/08
4 * Bitmasks for can messages.
6 * Copyright: (c) 2008 CTU Dragons
7 * CTU FEE - Department of Control Engineering
11 #ifndef _CAN_MSG_MASKS_H
12 #define _CAN_MSG_MASKS_H
14 #include <sys/types.h>
16 #define CAN_MSG_MASK(x) ((u_int8_t)1 << (x))
18 #define CAN_PWR_CTRL_33_ON CAN_MSG_MASK(0)
19 #define CAN_PWR_CTRL_50_ON CAN_MSG_MASK(1)
20 #define CAN_PWR_CTRL_80_ON CAN_MSG_MASK(2)
22 #define CAN_PWR_CTRL_33_OFF CAN_MSG_MASK(3)
23 #define CAN_PWR_CTRL_50_OFF CAN_MSG_MASK(4)
24 #define CAN_PWR_CTRL_80_OFF CAN_MSG_MASK(5)
26 #endif /* _CAN_MSG_MASKS_H */