已更新 2025年7月
uxStreamBufferGetStreamBufferNotificationIndex()
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
参数:
-
xStreamBuffer
用于检索任务通知索引的流缓冲区句柄。
返回:
- 用于流缓冲区的任务通知索引。