1 #ifndef GLOBAL_DEFINES_H__ 2 #define GLOBAL_DEFINES_H__ 32 #define UART_CMD_INVALID 0xFF 33 #define UART_CMD_WRONG_STATE 0xFE 35 #define UART_CMD_VALID 0x42 39 #define UART_CMD_START_BYTE 0xAA 42 #define UART_CMD_SET_LED 0x10 43 #define UART_CMD_CLEAR_LED 0x11 45 #define UART_CMD_CLEAR_ALL_LED 0x12 47 #define UART_CMD_SET_ALL_LED 0x13 49 #define UART_CMD_SET_TIME 0x14 51 #define UART_CMD_SET_COLOR 0x15 53 #define UART_CMD_CHANGE_STATE 0x16 return if UART overrun error
Definition: global_defines.h:18
return is the device does not acknowledge the message
Definition: global_defines.h:21
return if there is nothing to receive
Definition: global_defines.h:16
True boolian value.
Definition: global_defines.h:61
return if the device does not respond in time
Definition: global_defines.h:23
Value to return if everything went well.
Definition: global_defines.h:11
return if the start condition was not detected
Definition: global_defines.h:26
False boolian value.
Definition: global_defines.h:60
return if buffer overflow
Definition: global_defines.h:13
return if buffer is already full
Definition: global_defines.h:15
return if UART parity error
Definition: global_defines.h:19
return if UART framing error
Definition: global_defines.h:17
return if the oscillator stopped while on battery backup
Definition: global_defines.h:27
General failure message.
Definition: global_defines.h:12
return if the I2C module does not initialize in time
Definition: global_defines.h:24
return if the SCL line is low when it shouldn't be
Definition: global_defines.h:25
return if the device acknowledges the message
Definition: global_defines.h:20
return if buffer underflow
Definition: global_defines.h:14
retval_t
definition of the types of return values possible
Definition: global_defines.h:10
bool_t
command to change states
Definition: global_defines.h:59
return if there is a general I2C error
Definition: global_defines.h:22