ESPHome 2026.5.0b1
Loading...
Searching...
No Matches
esphome::FreeRTOSQueue< T, SIZE > Class Template Reference

#include <freertos_queue.h>

Public Member Functions

 FreeRTOSQueue ()
 
 FreeRTOSQueue (const FreeRTOSQueue &)=delete
 
FreeRTOSQueueoperator= (const FreeRTOSQueue &)=delete
 
 FreeRTOSQueue (FreeRTOSQueue &&)=delete
 
FreeRTOSQueueoperator= (FreeRTOSQueue &&)=delete
 
bool push (T *element)
 
T * pop ()
 
uint16_t get_and_reset_dropped_count ()
 
void increment_dropped_count ()
 
bool empty () const
 
bool full () const
 
size_t size () const
 

Protected Attributes

uint8_t storage_ [SIZE *sizeof(T *)]
 
StaticQueue_t queue_buf_
 
QueueHandle_t handle_
 
uint16_t dropped_count_
 

Detailed Description

template<class T, uint8_t SIZE>
class esphome::FreeRTOSQueue< T, SIZE >

Definition at line 28 of file freertos_queue.h.

Constructor & Destructor Documentation

◆ FreeRTOSQueue() [1/3]

template<class T , uint8_t SIZE>
esphome::FreeRTOSQueue< T, SIZE >::FreeRTOSQueue ( )
inline

Definition at line 30 of file freertos_queue.h.

◆ FreeRTOSQueue() [2/3]

template<class T , uint8_t SIZE>
esphome::FreeRTOSQueue< T, SIZE >::FreeRTOSQueue ( const FreeRTOSQueue< T, SIZE > & )
delete

◆ FreeRTOSQueue() [3/3]

template<class T , uint8_t SIZE>
esphome::FreeRTOSQueue< T, SIZE >::FreeRTOSQueue ( FreeRTOSQueue< T, SIZE > && )
delete

Member Function Documentation

◆ empty()

template<class T , uint8_t SIZE>
bool esphome::FreeRTOSQueue< T, SIZE >::empty ( ) const
inline

Definition at line 83 of file freertos_queue.h.

◆ full()

template<class T , uint8_t SIZE>
bool esphome::FreeRTOSQueue< T, SIZE >::full ( ) const
inline

Definition at line 85 of file freertos_queue.h.

◆ get_and_reset_dropped_count()

template<class T , uint8_t SIZE>
uint16_t esphome::FreeRTOSQueue< T, SIZE >::get_and_reset_dropped_count ( )
inline

Definition at line 62 of file freertos_queue.h.

◆ increment_dropped_count()

template<class T , uint8_t SIZE>
void esphome::FreeRTOSQueue< T, SIZE >::increment_dropped_count ( )
inline

Definition at line 77 of file freertos_queue.h.

◆ operator=() [1/2]

template<class T , uint8_t SIZE>
FreeRTOSQueue & esphome::FreeRTOSQueue< T, SIZE >::operator= ( const FreeRTOSQueue< T, SIZE > & )
delete

◆ operator=() [2/2]

template<class T , uint8_t SIZE>
FreeRTOSQueue & esphome::FreeRTOSQueue< T, SIZE >::operator= ( FreeRTOSQueue< T, SIZE > && )
delete

◆ pop()

template<class T , uint8_t SIZE>
T * esphome::FreeRTOSQueue< T, SIZE >::pop ( )
inline

Definition at line 54 of file freertos_queue.h.

◆ push()

template<class T , uint8_t SIZE>
bool esphome::FreeRTOSQueue< T, SIZE >::push ( T * element)
inline

Definition at line 43 of file freertos_queue.h.

◆ size()

template<class T , uint8_t SIZE>
size_t esphome::FreeRTOSQueue< T, SIZE >::size ( ) const
inline

Definition at line 87 of file freertos_queue.h.

Field Documentation

◆ dropped_count_

template<class T , uint8_t SIZE>
uint16_t esphome::FreeRTOSQueue< T, SIZE >::dropped_count_
protected

Definition at line 94 of file freertos_queue.h.

◆ handle_

template<class T , uint8_t SIZE>
QueueHandle_t esphome::FreeRTOSQueue< T, SIZE >::handle_
protected

Definition at line 93 of file freertos_queue.h.

◆ queue_buf_

template<class T , uint8_t SIZE>
StaticQueue_t esphome::FreeRTOSQueue< T, SIZE >::queue_buf_
protected

Definition at line 92 of file freertos_queue.h.

◆ storage_

template<class T , uint8_t SIZE>
uint8_t esphome::FreeRTOSQueue< T, SIZE >::storage_[SIZE *sizeof(T *)]
protected

Definition at line 91 of file freertos_queue.h.


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