ESPHome  2024.10.2
Public Member Functions | Protected Attributes
esphome::dfrobot_sen0395::CircularCommandQueue Class Reference

#include <dfrobot_sen0395.h>

Public Member Functions

int8_t enqueue (std::unique_ptr< Command > cmd)
 
std::unique_ptr< Commanddequeue ()
 
bool is_empty ()
 
bool is_full ()
 
uint8_t process (DfrobotSen0395Component *parent)
 

Protected Attributes

int front_ {-1}
 
int rear_ {-1}
 
std::unique_ptr< Commandcommands_ [COMMAND_QUEUE_SIZE]
 

Detailed Description

Definition at line 26 of file dfrobot_sen0395.h.

Member Function Documentation

◆ dequeue()

std::unique_ptr< Command > esphome::dfrobot_sen0395::CircularCommandQueue::dequeue ( )

Definition at line 114 of file dfrobot_sen0395.cpp.

◆ enqueue()

int8_t esphome::dfrobot_sen0395::CircularCommandQueue::enqueue ( std::unique_ptr< Command cmd)

Definition at line 103 of file dfrobot_sen0395.cpp.

◆ is_empty()

bool esphome::dfrobot_sen0395::CircularCommandQueue::is_empty ( )

Definition at line 127 of file dfrobot_sen0395.cpp.

◆ is_full()

bool esphome::dfrobot_sen0395::CircularCommandQueue::is_full ( )

Definition at line 129 of file dfrobot_sen0395.cpp.

◆ process()

uint8_t esphome::dfrobot_sen0395::CircularCommandQueue::process ( DfrobotSen0395Component parent)

Definition at line 133 of file dfrobot_sen0395.cpp.

Field Documentation

◆ commands_

std::unique_ptr<Command> esphome::dfrobot_sen0395::CircularCommandQueue::commands_[COMMAND_QUEUE_SIZE]
protected

Definition at line 37 of file dfrobot_sen0395.h.

◆ front_

int esphome::dfrobot_sen0395::CircularCommandQueue::front_ {-1}
protected

Definition at line 35 of file dfrobot_sen0395.h.

◆ rear_

int esphome::dfrobot_sen0395::CircularCommandQueue::rear_ {-1}
protected

Definition at line 36 of file dfrobot_sen0395.h.


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