Related pages:
RTOS task notifications can be used to send data to a task, but in a much more
restricted way than can be achieved with an RTOS queue because:
Data is sent to a task using the xTaskNotify() and xTaskNotifyFromISR() API functions with their eAction parameter set to either eSetValueWithOverwrite or eSetValueWithoutOverwrite. If eAction is set to eSetValueWithOverwrite then the receiving task's notification value is updated even if the receiving task already had a notification pending. If eAction is set to eSetValueWithoutOverwrite then the receiving task's notification value is only updated if the receiving task did not already have a notification pending - as to update the notification value would overwrite the previous value before the receiving task had processed it.
A task can read its own notification value using xTaskNotifyWait().
See the documentation for the relevant API functions for examples.