diff options
author | euer <root@euer.krebsco.de> | 2012-12-20 03:19:28 +0100 |
---|---|---|
committer | euer <root@euer.krebsco.de> | 2012-12-20 03:19:28 +0100 |
commit | 38dbb8ee3867060fddd427d1bb4e57ee0300c8bb (patch) | |
tree | abb7b2ab988934d6ddfbdd0448517b3a957645bf /god/claws/communication.h | |
parent | 7c1b02b086a8377ad76a46c277a224150c5b85d6 (diff) | |
parent | 09dc57b9d5f564d13f80707eefadd845a4aa9aec (diff) |
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'god/claws/communication.h')
-rw-r--r-- | god/claws/communication.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/god/claws/communication.h b/god/claws/communication.h new file mode 100644 index 00000000..db4b2c36 --- /dev/null +++ b/god/claws/communication.h @@ -0,0 +1,25 @@ +/* These are the command codes of the relay card. If you change something here you must + * recompile the firmware and the control tool. */ +#ifndef _COMMUNICATION_H +#define _COMMUNICATION_H + +#define COMMAND_RELAY_ON 0x01 +#define COMMAND_RELAY_OFF 0x02 +#define COMMAND_RELAY_TOGGLE 0x04 +#define COMMAND_RELAY_SET 0x08 +#define COMMAND_RELAY_TIME_ON 0x10 +#define COMMAND_RELAY_TIME_OFF 0x20 +#define COMMAND_RELAY_TIME_CYCLIC 0x40 +#define COMMAND_GET_STATUS 0x80 +#define COMMAND_DEL_TIMERS 0x81 +#define COMMAND_SETUP_REMOTE 0x82 + + +#define RESPONSE_OK 0xff +#define RESPONSE_INVALID_COMMAND 0xfe +#define RESPONSE_INVALID_ARGUMENT 0xfd +#define RESPONSE_TRANSMISSION_ERROR 0xfc + +#define COMMANDO_LENGTH 4 + +#endif |