Path: blob/master/libraries/AP_CANManager/AP_CANIfaceParams.cpp
9417 views
/*1* This program is free software: you can redistribute it and/or modify2it under the terms of the GNU General Public License as published by3the Free Software Foundation, either version 3 of the License, or4(at your option) any later version.56This program is distributed in the hope that it will be useful,7but WITHOUT ANY WARRANTY; without even the implied warranty of8MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9GNU General Public License for more details.1011You should have received a copy of the GNU General Public License12along with this program. If not, see <http://www.gnu.org/licenses/>.13*/1415#include <AP_HAL/AP_HAL.h>1617#if HAL_CANMANAGER_ENABLED18#include "AP_CANManager.h"1920// table of user settable CAN bus parameters21const AP_Param::GroupInfo AP_CANManager::CANIface_Params::var_info[] = {22// @Param: DRIVER23// @DisplayName: Index of virtual driver to be used with physical CAN interface24// @Description: Enabling this option enables use of CAN buses.25// @Values: 0:Disabled,1:First driver,2:Second driver,3:Third driver26// @User: Standard27// @RebootRequired: True28AP_GROUPINFO_FLAGS("DRIVER", 1, AP_CANManager::CANIface_Params, _driver_number, HAL_CAN_DRIVER_DEFAULT, AP_PARAM_FLAG_ENABLE),2930// @Param: BITRATE31// @DisplayName: Bitrate of CAN interface32// @Description: Bit rate can be set up to from 10000 to 100000033// @Range: 10000 100000034// @User: Advanced35AP_GROUPINFO("BITRATE", 2, AP_CANManager::CANIface_Params, _bitrate, 1000000),3637#if HAL_CANFD_SUPPORTED38// @Param: FDBITRATE39// @DisplayName: Bitrate of CANFD interface40// @Description: Bit rate can be set up to from 1000000 to 800000041// @Values: 1:1M, 2:2M, 4:4M, 5:5M, 8:8M42// @User: Advanced43AP_GROUPINFO("FDBITRATE", 3, AP_CANManager::CANIface_Params, _fdbitrate, HAL_CANFD_SUPPORTED),44#endif4546// @Param: OPTIONS47// @DisplayName: CAN per-interface options48// @Description: CAN per-interface options49// @Bitmask: 0:LogAllFrames50// @User: Advanced51AP_GROUPINFO("OPTIONS", 4, AP_CANManager::CANIface_Params, _options, 0),5253// Index 3 occupied by Param: DEBUG54AP_GROUPEND55};5657#endif585960