From 24bb25c9f16ecace05b64142493dce596f5a9e37 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Mon, 4 Nov 2019 13:21:08 +0100 Subject: misc: Some cleanup and fixes about signatures. Change-Id: Ib3e1df0d3741274336c8806ae82082e33d4d3a92 Signed-off-by: Romain Forlot --- low-can-binding/utils/socketcan-isotp.hpp | 2 +- low-can-binding/utils/socketcan.hpp | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'low-can-binding/utils') diff --git a/low-can-binding/utils/socketcan-isotp.hpp b/low-can-binding/utils/socketcan-isotp.hpp index 86ed9faf..dfaf0089 100644 --- a/low-can-binding/utils/socketcan-isotp.hpp +++ b/low-can-binding/utils/socketcan-isotp.hpp @@ -36,4 +36,4 @@ namespace utils virtual int write_message(message_t& obj); int define_tx_address(std::string device_name, canid_t rx_id, canid_t tx_id); }; -} \ No newline at end of file +} 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 { -- cgit 1.2.3-korg