OpenSourceSimWheelESP32
Open-source wireless steering wheel/button box for ESP32 boards
Loading...
Searching...
No Matches
DeviceCapabilities Struct Reference

Set of device capabilities. More...

#include <InternalTypes.hpp>

Static Public Member Functions

static void setFlag (DeviceCapability capability, bool setOrClear=true)
 Clear or set a device capability.
 
static bool hasFlag (DeviceCapability capability)
 Check if a capability is available.
 
static uint16_t getFlags ()
 Get all flags as a bitmap.
 

Detailed Description

Set of device capabilities.

Definition at line 163 of file InternalTypes.hpp.

Member Function Documentation

◆ getFlags()

static uint16_t DeviceCapabilities::getFlags ( )
inlinestatic

Get all flags as a bitmap.

Returns
uint32_t Flags

Definition at line 197 of file InternalTypes.hpp.

◆ hasFlag()

static bool DeviceCapabilities::hasFlag ( DeviceCapability capability)
inlinestatic

Check if a capability is available.

Parameters
capabilityA device capability
Returns
true If available
false If not available

Definition at line 187 of file InternalTypes.hpp.

◆ setFlag()

static void DeviceCapabilities::setFlag ( DeviceCapability capability,
bool setOrClear = true )
inlinestatic

Clear or set a device capability.

Parameters
capabilityA device capability
setOrClearTrue to set, false to clear

Definition at line 172 of file InternalTypes.hpp.


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