]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - src/common/can_msg_masks.h
robodim: Hokuyo returned back to original position.
[eurobot/public.git] / src / common / can_msg_masks.h
1 /*
2  * can_msg_masks.h                      09/04/08
3  *
4  * Bitmasks for can messages.
5  *
6  * Copyright: (c) 2008 CTU Dragons
7  *            CTU FEE - Department of Control Engineering
8  * License: GNU GPL v.2
9  */
10
11 #ifndef _CAN_MSG_MASKS_H
12 #define _CAN_MSG_MASKS_H
13
14 #include <sys/types.h>
15
16 #define CAN_MSG_MASK(x)         ((u_int8_t)1 << (x))
17
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)
21
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)
25
26 #endif /* _CAN_MSG_MASKS_H */
27