Espressif ESP32-S2 Programming Manual page 894

Table of Contents

Advertisement

Chapter 2. API Reference
eDeleted
eInvalid
enum eNotifyAction
Values:
eNoAction = 0
eSetBits
eIncrement
eSetValueWithOverwrite
eSetValueWithoutOverwrite
enum eSleepModeStatus
Possible return values for eTaskConfirmSleepModeStatus().
Values:
eAbortSleep = 0
eStandardSleep
eNoTasksWaitingTimeout
Queue API
Header File
components/freertos/include/freertos/queue.h
Functions
BaseType_t
xQueueGenericSend(QueueHandle_t
It is preferred that the macros xQueueSend(), xQueueSendToFront() and xQueueSendToBack() are used in
place of calling this function directly.
Post an item on a queue. The item is queued by copy, not by reference. This function must not be called from
an interrupt service routine. See xQueueSendFromISR () for an alternative which may be used in an ISR.
Example usage:
struct AMessage
{
char ucMessageID;
char ucData[
20
} xMessage;
uint32_t ulVar
void vATask( void *pvParameters )
{
QueueHandle_t xQueue1, xQueue2;
struct AMessage *pxMessage;
//
Create a queue capable of containing
xQueue1
=
xQueueCreate( 10, sizeof( uint32_t ) );
//
Create a queue capable of containing
//
These should be passed by pointer
xQueue2
=
xQueueCreate( 10, sizeof( struct AMessage
// ...
Espressif Systems
Type_t xTicksToWait, const BaseType_t xCopyPosition)
];
=
10UL;
Submit Document Feedback
xQueue, const void *const pvItemToQueue, Tick-
10
uint32_t
values.
10
pointers to AMessage
as
they contain a lot of
*
883
structures.
data.
) );
(continues on next page)
Release v4.4

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32-S2 and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF