X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=low-can-binding%2Futils%2Fsocketcan.hpp;h=de8163e51ed728b40965252a4d2d84f939fe6dc2;hb=301265a5dab15f8ad70127fcc01b1f5f3260915a;hp=7b2501afb1165b016fdcf1aba1d63046fbf645ea;hpb=cb7af6003d51852dc4d5db84da66c7d761b45f4a;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 {