# xTaskNotify notification value

**URL:** <https://forums.freertos.org/t/xtasknotify-notification-value/11476>\
**Category:** Kernel\
**Created:** [January 5, 2021, 11:53pm UTC](https://forums.freertos.org/t/xtasknotify-notification-value/11476 "2021-01-05T23:53:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mission](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@mission](https://forums.freertos.org/u/mission)\
**Post date:** [January 5, 2021, 11:53pm UTC](https://forums.freertos.org/t/xtasknotify-notification-value/11476/1 "2021-01-05T23:53:32Z")

</div>

Hi,  
xTaskNotify( param1,param2,param3)  
What is the purpose for param2?  
What’s the purpose of setting bits in the 32-bit notification value?

---

<div class="post-metadata">

**Author:** ![jefftenney](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/jefftenney/32/1314_2.png) [@jefftenney](https://forums.freertos.org/u/jefftenney)\
**Post date:** [January 6, 2021, 12:16am UTC](https://forums.freertos.org/t/xtasknotify-notification-value/11476/2 "2021-01-06T00:16:40Z")

</div>

In case you haven’t seen this page, it’s helpful:

> **[xTaskNotify() RTOS task notification API documentation](https://freertos.org/xTaskNotify.html)**
>
> Send a Real Time Operating System (RTOS) task notification to another RTOS task

One use of the notification value is for a task that waits for more than one possible event. The value can be used to indicate which event occurred. There are lots of other uses. Just remember that a task has a notification _state_ – a binary indication whether the task is in the notified state or not – **and** a notification _value_ – an application specific value the application can use however it wants.

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [January 6, 2021, 2:08am UTC](https://forums.freertos.org/t/xtasknotify-notification-value/11476/3 "2021-01-06T02:08:59Z")

</div>

Please do not post in the Community Media forum - that is not its purpose - there is a forum dedicated to the kernel. I will move this post over there now.
