ESPHome  2024.11.2
Data Structures | Namespaces | Enumerations | Functions | Variables
cover.h File Reference

Go to the source code of this file.

Data Structures

class  esphome::cover::CoverCall
 
struct  esphome::cover::CoverRestoreState
 Struct used to store the restored state of a cover. More...
 
class  esphome::cover::Cover
 Base class for all cover devices. More...
 

Namespaces

 esphome
 Implementation of SPI Controller mode.
 
 esphome::cover
 

Enumerations

enum  esphome::cover::CoverOperation : uint8_t { esphome::cover::COVER_OPERATION_IDLE = 0, esphome::cover::COVER_OPERATION_OPENING, esphome::cover::COVER_OPERATION_CLOSING }
 Enum encoding the current operation of a cover. More...
 

Functions

struct esphome::cover::CoverRestoreState esphome::cover::__attribute__ ((packed))
 
CoverCall to_call (Cover *cover)
 Convert this struct to a cover call that can be performed. More...
 
void apply (Cover *cover)
 Apply these settings to the cover. More...
 
const char * esphome::cover::cover_operation_to_str (CoverOperation op)
 

Variables

float position
 
float tilt
 
enum esphome::cover::CoverOperation esphome::cover::__attribute__
 

Function Documentation

◆ apply()

void __attribute__::apply ( Cover *  cover)

Apply these settings to the cover.

◆ to_call()

CoverCall __attribute__::to_call ( Cover *  cover)

Convert this struct to a cover call that can be performed.

Variable Documentation

◆ position

float position

Definition at line 14 of file cover.h.

◆ tilt

float tilt

Definition at line 15 of file cover.h.