Bird
0
0

Which of the following is the correct way to notify a task using FreeRTOS API?

easy📝 Syntax Q3 of 15
FreeRTOS - Task Notifications
Which of the following is the correct way to notify a task using FreeRTOS API?
AxTaskNotify(taskHandle, 0x01, eSetBits);
BxTaskNotifySend(taskHandle, 0x01);
CxTaskNotifyGive(taskHandle, 0x01);
DxTaskNotifyWait(0x01, 0xFFFFFFFF, NULL, 0);
Step-by-Step Solution
Solution:
  1. Step 1: Identify the correct API for sending a notification

    The function xTaskNotify() is used to send a notification value to a task.
  2. Step 2: Check the parameters

    xTaskNotify() takes the task handle, a value, and an action (e.g., eSetBits) to modify the notification value.
  3. Final Answer:

    xTaskNotify(taskHandle, 0x01, eSetBits); -> Option A
  4. Quick Check:

    Correct API and parameters used [OK]
Quick Trick: Use xTaskNotify with task handle and action [OK]
Common Mistakes:
  • Using non-existent functions like xTaskNotifySend
  • Confusing xTaskNotifyGive with xTaskNotify
  • Using xTaskNotifyWait to send notifications

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes