bool supports_direction() const
Return if this fan supports changing direction.
bool supports_oscillation() const
Return if this fan supports oscillation.
bool supports_preset_modes() const
Return if preset modes are supported.
int supported_speed_count() const
Return how many speed levels the fan has.
void set_oscillation(bool oscillation)
Set whether this fan supports oscillation.
std::set< std::string > preset_modes_
void set_speed(bool speed)
Set whether this fan supports speed levels.
std::set< std::string > supported_preset_modes() const
Return the preset modes supported by the fan.
void set_supported_preset_modes(const std::set< std::string > &preset_modes)
Set the preset modes supported by the fan.
void set_direction(bool direction)
Set whether this fan supports changing direction.
Implementation of SPI Controller mode.
FanTraits(bool oscillation, bool speed, bool direction, int speed_count)
void set_supported_speed_count(int speed_count)
Set how many speed levels this fan has.
bool supports_speed() const
Return if this fan supports speed modes.