FreeRTOS API Queue Set

  • 8 Replies
  • 338 Views
*

Offline tha

  • *****
  • 4957
    • View Profile
Re: FreeRTOS API Queue Set
« Reply #8 on: December 29, 2021, 10:57:58 am »
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 ดังกล่าวมีอยู่