Open FFBoard
Open source force feedback firmware
CANPortHardwareConfig Class Reference

#include <CAN.h>

Classes

struct  PresetEntry
 

Public Member Functions

constexpr CANPortHardwareConfig (const bool canChangeSpeed, std::span< const PresetEntry > presets_list)
 
constexpr PresetEntry getPreset (uint8_t idx) const
 
constexpr uint32_t speedToPreset (uint32_t speed) const
 
constexpr uint32_t presetToSpeed (uint8_t preset) const
 

Public Attributes

const bool canChangeSpeed
 
const std::span< const PresetEntrypresets
 

Detailed Description

Definition at line 38 of file CAN.h.

Constructor & Destructor Documentation

◆ CANPortHardwareConfig()

constexpr CANPortHardwareConfig::CANPortHardwareConfig ( const bool  canChangeSpeed,
std::span< const PresetEntry presets_list 
)
inlineconstexpr

Definition at line 45 of file CAN.h.

Member Function Documentation

◆ getPreset()

constexpr PresetEntry CANPortHardwareConfig::getPreset ( uint8_t  idx) const
inlineconstexpr

Definition at line 50 of file CAN.h.

◆ presetToSpeed()

constexpr uint32_t CANPortHardwareConfig::presetToSpeed ( uint8_t  preset) const
inlineconstexpr

Definition at line 55 of file CAN.h.

◆ speedToPreset()

constexpr uint32_t CANPortHardwareConfig::speedToPreset ( uint32_t  speed) const
inlineconstexpr

Definition at line 51 of file CAN.h.

Member Data Documentation

◆ canChangeSpeed

const bool CANPortHardwareConfig::canChangeSpeed

Definition at line 49 of file CAN.h.

◆ presets

const std::span<const PresetEntry> CANPortHardwareConfig::presets

Definition at line 56 of file CAN.h.


The documentation for this class was generated from the following file: