Bird
0
0

Which of the following is the correct way to send a task notification in FreeRTOS?

easy📝 Syntax Q12 of 15
FreeRTOS - Task Notifications
Which of the following is the correct way to send a task notification in FreeRTOS?
AxTaskNotify(taskHandle, value, eSetBits);
BxTaskNotifySend(taskHandle, value);
CxTaskNotifyReceive(taskHandle, &value);
DxTaskNotifyGive(taskHandle);
Step-by-Step Solution
Solution:
  1. Step 1: Recall FreeRTOS notification API

    The function xTaskNotify() sends a notification with a value and action.
  2. Step 2: Identify correct syntax

    xTaskNotify(taskHandle, value, eSetBits); is the correct call to send a notification with bits set.
  3. Final Answer:

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

    Sending notification uses xTaskNotify with action [OK]
Quick Trick: Use xTaskNotify with handle, value, and action [OK]
Common Mistakes:
  • Using xTaskNotifyGive without parameters
  • Confusing send and receive functions
  • Using non-existent functions like xTaskNotifySend

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes