Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

已更新 2025年7月

uxStreamBufferGetStreamBufferNotificationIndex()

[RTOS 流缓冲区 API]

stream_buffer.h

1UBaseType_t uxStreamBufferGetStreamBufferNotificationIndex( StreamBufferHandle_t xStreamBuffer );

检索 提供的流缓冲区使用的任务通知索引, 该索引可使用 vStreamBufferSetStreamBufferNotificationIndex 设置。 如果未使用

vStreamBufferSetStreamBufferNotificationIndex
更改流缓冲区的任务通知索引, 此函数返回默认值
tskDEFAULT_INDEX_TO_NOTIFY

将 FreeRTOS/source/stream_buffer.c 源文件包含在构建中, 并在 FreeRTOSConfig.h 中将

configUSE_STREAM_BUFFERS
配置常量设置为 1 即可启用流缓冲区功能。

参数:

  • xStreamBuffer

    用于检索任务通知索引的流缓冲区句柄。

返回:

  • 用于流缓冲区的任务通知索引。