The first parameter is an even source, the macro chnGetEventSource() returns the event source of an I/O channel.
chEvtDispatch() is called in a loop because you want to serve all events received not just he first one.
If you look in the development forum there is a very good guide to events in a recent thread.
Giovanni
Receive data over SDU
Moderators: RoccoMarco, lbednarz, tfAteba
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times