X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=CAN-binder%2Flow-can-binding%2Fcan%2Fcan-bus-dev.cpp;h=765eda7f93d757d63d3c34d687466b88ff9eaf6f;hb=211ce4dd58d40f33287354647b32bf241c5ddfdc;hp=6bd5e67f1e12c83c3dfaeccdfc92cc1b07d95517;hpb=cfea1927c8f4fe4fcd5981284abb64da990940e0;p=apps%2Flow-level-can-service.git diff --git a/CAN-binder/low-can-binding/can/can-bus-dev.cpp b/CAN-binder/low-can-binding/can/can-bus-dev.cpp index 6bd5e67..765eda7 100644 --- a/CAN-binder/low-can-binding/can/can-bus-dev.cpp +++ b/CAN-binder/low-can-binding/can/can-bus-dev.cpp @@ -50,14 +50,16 @@ uint32_t can_bus_dev_t::get_address() const /// We try to open CAN socket and apply the following options /// timestamp received messages and pass the socket to FD mode. /// -/// @return -1 if something wrong. +/// @param[in] bcm boolean value indicating wether or not we initialize a Broadcast CAN Manager socket. +/// +/// @return socket value or -1 if something wrong. int can_bus_dev_t::open(bool bcm) { DEBUG(binder_interface, "open_raw: CAN Handler socket : %d", can_socket_.socket()); return can_socket_.open(device_name_, bcm); } - // Set some option on the socket : timeout, timestamp and canfd frame usage. +/// @brief Set some option on the socket, timestamp and canfd frame usage. void can_bus_dev_t::configure() { if (can_socket_)