X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=low-can-binding%2Futils%2Fsocketcan.hpp;h=de8163e51ed728b40965252a4d2d84f939fe6dc2;hb=b6bc89e63ee24c4e5ec1559d7390da90201ff9cd;hp=7b2501afb1165b016fdcf1aba1d63046fbf645ea;hpb=9bf2d1243b3a2a95d6bfc4b2f2fb437e87ad7168;p=apps%2Fagl-service-can-low-level.git diff --git a/low-can-binding/utils/socketcan.hpp b/low-can-binding/utils/socketcan.hpp index 7b2501af..de8163e5 100644 --- a/low-can-binding/utils/socketcan.hpp +++ b/low-can-binding/utils/socketcan.hpp @@ -1,7 +1,7 @@ #pragma once /* - * Copyright (C) 2015, 2016 ,2017 "IoT.bzh" + * Copyright (C) 2015, 2016 , 2017, 2018, 2019 "IoT\.bzh" * Author "Romain Forlot" * Author "Loïc Collignon" * Licensed under the Apache License, Version 2.0 (the "License"); @@ -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 {