2 Copyright (C) 2012 Intel Corporation
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with this library; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 * \addtogroup libcanbus
33 * \brief CANBus class implementation
42 * @param observer \link #CANObserver Observer \endlink that will receives CAN bus frames
44 Impl(CANObserver& observer);
48 * Starts the CAN bus instance on the specified interface
50 * @param name Name of the CAN bus network interface
51 * @return True if no error occurs.
53 bool start(const char*name);
55 * Stops the CAN bus instance
60 * Sends standard(11bit) CAN frame over the bus
61 * @fn sendStandardFrame
62 * @param frame CAN frame to be sent
63 * @return True if frame was sent
65 bool sendStandardFrame(const can_frame& frame);
67 * Sends extended(29bit) CAN frame over the bus
68 * @fn sendExtendedFrame
69 * @param frame CAN frame to be sent
70 * @return True if frame was sent
72 bool sendExtendedFrame(const can_frame& frame);
76 * CAN bus initialization
83 * #CANObserver instance reference
87 CANObserver& mObserver;
89 * Pointer to #CANAdapter - CAN hardware object representation
96 #endif // CANBUSIMPL_H