aboutsummaryrefslogtreecommitdiffstats
path: root/low-can-binding/utils/socketcan.hpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2019-11-04 13:21:08 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2020-01-09 16:25:36 +0100
commit24bb25c9f16ecace05b64142493dce596f5a9e37 (patch)
treee2b74a43c827fc03362814c51ee8ff33e44422e7 /low-can-binding/utils/socketcan.hpp
parente99fbb7c24a659f26f177eaf4135d84165651784 (diff)
misc: Some cleanup and fixes about signatures.
Change-Id: Ib3e1df0d3741274336c8806ae82082e33d4d3a92 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'low-can-binding/utils/socketcan.hpp')
-rw-r--r--low-can-binding/utils/socketcan.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/low-can-binding/utils/socketcan.hpp b/low-can-binding/utils/socketcan.hpp
index 17cec019..de8163e5 100644
--- a/low-can-binding/utils/socketcan.hpp
+++ b/low-can-binding/utils/socketcan.hpp
@@ -30,6 +30,17 @@
#define INVALID_SOCKET -1
#define NO_CAN_ID 0xFFFFFFFFU
+/**
+ * @enum socket_type
+ * @brief The type of socket
+ */
+enum class socket_type {
+ BCM, ///< BCM - Socket BCM
+ J1939_ADDR_CLAIM, ///< J1939 - Socket J1939
+ J1939, ///< J1939 - Socket J1939
+ INVALID
+};
+
namespace utils
{