Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6c411fe

Browse files
Provide very bare-bones minimal success/error codes for CAN API.
1 parent 4a02bfc commit 6c411fe

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎api/HardwareCAN.h‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ enum class CanBitRate : int
3939
BR_1000k = 1000000,
4040
};
4141

42+
/**************************************************************************************
43+
* CONSTANTS
44+
**************************************************************************************/
45+
46+
static int constexpr CAN_SUCCESS = 1;
47+
static int constexpr CAN_ERROR_GENERIC = -1;
48+
4249
/**************************************************************************************
4350
* NAMESPACE
4451
**************************************************************************************/

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /