FreeRTOS API Queue Set

Started by tha, December 28, 2021, 06:00:49 AM

Previous topic - Next topic

tha

https://www.freertos.org/xQueueSelectFromSetFromISR.html

xQueueSelectFromSetFromISR()
[Queue Set API]

queue.h

QueueSetMemberHandle_t xQueueSelectFromSetFromISR
                       (
                             QueueSetHandle_t xQueueSet
                        );


configUSE_QUEUE_SETS ต้องถูกเซ็ตเป็น 1 ใน FreeRTOSConfig.h สำหรับ the xQueueSelectFromSetFromISR() API function มีให้ใช้เป็นประโยชน์.

A version of xQueueSelectFromSet() ที่สามารถถูกใช้จาก an interrupt service routine (ISR).

Parameters:

     xQueueSet          The queue set ที่กำลังถูกสอบถาม. ไม่สามารถบล็อกบน a read ได้เนื่องจากฟังชั่นนี้ถูกออกแบบให้ถูกใช้จาก
                                  an interrupt.

Returns:

     xQueueSelectFromSetFromISR() จะส่งคืนกลับ the handle of a queue (cast to a QueueSetMemberHandle_t type)
     ที่บรรจุใน the queue set ที่บรรจุ data, หรือ the handle of a semaphore (cast to a QueueSetMemberHandle_t type)
     ที่บรรจุใน the queue set ที่มีให้ใช้ประโยชน์, หรือ NULL ถ้าไม่มี queue or semaphore ดังกล่าวมีอยู่