aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/include/can.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-12-01 16:32:16 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-12-01 16:32:16 +0000
commit3d182788ee7386b0fa53b4aee08fe8146d67d3b0 (patch)
tree81d4d87f00e741fd846843cb1e7ce0b7a6fe2080 /os/hal/include/can.h
parent8a433087afe80e92aea1c558965994b53bfcfb48 (diff)
downloadChibiOS-3d182788ee7386b0fa53b4aee08fe8146d67d3b0.tar.gz
ChibiOS-3d182788ee7386b0fa53b4aee08fe8146d67d3b0.tar.bz2
ChibiOS-3d182788ee7386b0fa53b4aee08fe8146d67d3b0.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1369 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include/can.h')
-rw-r--r--os/hal/include/can.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/os/hal/include/can.h b/os/hal/include/can.h
index 3637c64b0..2a385b224 100644
--- a/os/hal/include/can.h
+++ b/os/hal/include/can.h
@@ -30,6 +30,27 @@
#if CH_HAL_USE_CAN || defined(__DOXYGEN__)
/**
+ * @brief Errors rate warning.
+ */
+#define CAN_LIMIT_WARNING 1
+/**
+ * @brief Errors rate error.
+ */
+#define CAN_LIMIT_ERROR 2
+/**
+ * @brief Bus off condition reached.
+ */
+#define CAN_BUS_OFF_ERROR 4
+/**
+ * @brief Framing error of some kind on the CAN bus.
+ */
+#define CAN_FRAMING_ERROR 8
+/**
+ * @brief Overflow in receive queue.
+ */
+#define CAN_OVERFLOW_ERROR 16
+
+/**
* @brief Driver state machine possible states.
*/
typedef enum {