From 6c411fe2679f4541370922195333f15fddac4f1b Mon Sep 17 00:00:00 2001 From: Alexander Entinger 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 **************************************************************************************/ pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy