Skip to content

Commit

Permalink
Provide very bare-bones minimal success/error codes for CAN API.
Browse files Browse the repository at this point in the history
  • Loading branch information
aentinger committed Sep 20, 2024
1 parent 4a02bfc commit 9cd581f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions api/HardwareCAN.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ enum class CanBitRate : int
BR_1000k = 1000000,
};

/**************************************************************************************
* CONSTANTS
**************************************************************************************/

static int constexpr CAN_GENERIC_SUCCESS = 1;
static int constexpr CAN_GENERIC_ERROR = -1;

/**************************************************************************************
* NAMESPACE
**************************************************************************************/
Expand Down

0 comments on commit 9cd581f

Please sign in to comment.