Open FFBoard
Open source force feedback firmware
I2CPortHardwareConfig Class Reference

#include <I2C.h>

Classes

struct  I2CPortHardwareConfig_preset
 

Public Member Functions

constexpr I2CPortHardwareConfig (const bool canChangeSpeed, std::span< const I2CPortHardwareConfig_preset > presets_list)
 
I2CPortHardwareConfig_preset getPreset (uint8_t idx) const
 

Public Attributes

const bool canChangeSpeed
 

Protected Attributes

const std::span< const I2CPortHardwareConfig_presetpresets
 

Private Attributes

friend I2CPort
 

Detailed Description

Definition at line 25 of file I2C.h.

Constructor & Destructor Documentation

◆ I2CPortHardwareConfig()

constexpr I2CPortHardwareConfig::I2CPortHardwareConfig ( const bool  canChangeSpeed,
std::span< const I2CPortHardwareConfig_preset presets_list 
)
inlineconstexpr

Definition at line 32 of file I2C.h.

Member Function Documentation

◆ getPreset()

I2CPortHardwareConfig_preset I2CPortHardwareConfig::getPreset ( uint8_t  idx) const
inline

Definition at line 37 of file I2C.h.

Member Data Documentation

◆ canChangeSpeed

const bool I2CPortHardwareConfig::canChangeSpeed

Definition at line 36 of file I2C.h.

◆ I2CPort

friend I2CPortHardwareConfig::I2CPort
private

Definition at line 26 of file I2C.h.

◆ presets

const std::span<const I2CPortHardwareConfig_preset> I2CPortHardwareConfig::presets
protected

Definition at line 39 of file I2C.h.


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