APM:Libraries
canbus_driver.cpp
Go to the documentation of this file.
1 /*
2  * This program is free software: you can redistribute it and/or modify
3  it under the terms of the GNU General Public License as published by
4  the Free Software Foundation, either version 3 of the License, or
5  (at your option) any later version.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  GNU General Public License for more details.
11 
12  You should have received a copy of the GNU General Public License
13  along with this program. If not, see <http://www.gnu.org/licenses/>.
14 */
15 
16 #include <AP_HAL/AP_HAL.h>
17 #include <AP_Common/AP_Common.h>
18 #include "AP_BoardConfig.h"
19 
20 #if HAL_WITH_UAVCAN
21 #include "AP_BoardConfig_CAN.h"
22 #include <AP_UAVCAN/AP_UAVCAN.h>
23 
24 // table of user settable CAN bus parameters
25 const AP_Param::GroupInfo AP_BoardConfig_CAN::CAN_driver_var_info::var_info[] = {
26  // @Param: PROTOCOL
27  // @DisplayName: Enable use of specific protocol over virtual driver
28  // @Description: Enabling this option starts selected protocol that will use this virtual driver
29  // @Values: 0:Disabled,1:UAVCAN
30  // @User: Advanced
31  // @RebootRequired: True
32  AP_GROUPINFO("PROTOCOL", 1, AP_BoardConfig_CAN::CAN_driver_var_info, _protocol, UAVCAN_PROTOCOL_ENABLE),
33 
34  // @Group: UC_
35  // @Path: ../AP_UAVCAN/AP_UAVCAN.cpp
36  AP_SUBGROUPPTR(_uavcan, "UC_", 2, AP_BoardConfig_CAN::CAN_driver_var_info, AP_UAVCAN),
37 
39 };
40 #endif
#define AP_GROUPINFO(name, idx, clazz, element, def)
Definition: AP_Param.h:102
#define AP_SUBGROUPPTR(element, name, idx, thisclazz, elclazz)
Definition: AP_Param.h:116
Common definitions and utility routines for the ArduPilot libraries.
#define AP_GROUPEND
Definition: AP_Param.h:121