FastLED 3.9.15
Loading...
Searching...
No Matches
fl::IChannelDriver::DriverState Struct Reference

Detailed Description

Driver state with optional error message.

Note
Backward compatible: DriverState::READY, BUSY, DRAINING, ERROR still work

Definition at line 165 of file driver.h.

#include <driver.h>

+ Collaboration diagram for fl::IChannelDriver::DriverState:

Public Types

enum  Value { READY , BUSY , DRAINING , ERROR }
 

Public Member Functions

 DriverState (Value v) FL_NOEXCEPT
 Construct from state only (no error)
 
 DriverState (Value v, const fl::string &e) FL_NOEXCEPT
 Construct from state and error message.
 
 operator Value () const FL_NOEXCEPT
 Implicit conversion to Value for backward compatibility.
 
bool operator!= (Value v) const FL_NOEXCEPT
 
bool operator== (Value v) const FL_NOEXCEPT
 Comparison operators for backward compatibility.
 

Public Attributes

fl::string error
 Error message (only populated when state == ERROR)
 
Value state
 Current driver state.
 

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