Whilda Chaq
Whilda Chaq

Reputation: 364

WaitPoint and Event

I have been reading about developing an Autosar Software Component. I'm still confuse about WaitPoint and Event on internal behavior. What are the main differences between WaitPoint and Event in AUTOSAR Software Component? and it will be great if you can show me a sample of c code according to them.

Upvotes: 3

Views: 2157

Answers (1)

ZzetT
ZzetT

Reputation: 598

An Event in AUTOSAR has two different meanings regarding software components. Either it triggers a RunnableEntity or it resolves a WaitPoint. If a RunnableEntity is triggered e.g. by a DataReceivedEvent the Rte will activate your RunnableEntity and then you can call Rte_Read() to read the data. The second case is when you define a WaitPoint for that RunnableEntity and let the DataReceivedEvent resolve it. If you then call Rte_Receive() the function will block until new data is received.

Usually, such a function is implemented by an OSEK WaitEvent() and if the Rte receives data, it will use the OSEK SetEvent function to wakeup the task that called WaitEvent().

Upvotes: 2

Related Questions