xQueueGetStaticBuffers()
[队列管理]
queue.h
BaseType_t xQueueGetStaticBuffers( QueueHandle_t xQueue,
uint8_t ** ppucQueueStorage,
StaticQueue_t ** ppxStaticQueue );
configSUPPORT_STATIC_ALLOCATION 必须定义为 1,此函数才可用。 详情请参阅 RTOS 配置文档。
Retrieve pointers to a statically created stream buffer's data structure buffer and storage area buffer. 这些缓冲区与创建时提供的缓冲区相同。
-
参数:
-
xQueue
|
数据结构体缓冲区和存储区缓冲区将被检索的流缓冲区。
|
ppucQueueStorage
|
用于返回指向流缓冲区存储区缓冲区的指针。
|
ppxStaticQueue
|
用于返回指向流缓冲区的数据结构体缓冲区的指针。
|
-
返回:
-
如果检索到缓冲区,则返回 pdTRUE,否则返回 pdFALSE。
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.