From 6c411fe2679f4541370922195333f15fddac4f1b Mon Sep 17 00:00:00 2001
From: Alexander Entinger <consulting@lxrobotics.com>
Date: Fri, 20 Sep 2024 09:55:13 +0200
Subject: [PATCH] Provide very bare-bones minimal success/error codes for CAN
 API.

---
 api/HardwareCAN.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/api/HardwareCAN.h b/api/HardwareCAN.h
index 57d9d582..f3b9edfa 100644
--- a/api/HardwareCAN.h
+++ b/api/HardwareCAN.h
@@ -39,6 +39,13 @@ enum class CanBitRate : int
   BR_1000k = 1000000,
 };
 
+/**************************************************************************************
+ * CONSTANTS
+ **************************************************************************************/
+
+static int constexpr CAN_SUCCESS       =  1;
+static int constexpr CAN_ERROR_GENERIC = -1;
+
 /**************************************************************************************
  * NAMESPACE
  **************************************************************************************/