2 ******************************************************************************
4 * @file eventdispatcher.h
5 * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
6 * @brief Include files of the uavobjectlist library
7 * @see The GNU Public License (GPL) Version 3
9 *****************************************************************************/
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 3 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful, but
17 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
18 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 * You should have received a copy of the GNU General Public License along
22 * with this program; if not, write to the Free Software Foundation, Inc.,
23 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 #ifndef EVENTDISPATCHER_H
27 #define EVENTDISPATCHER_H
31 * Event dispatcher statistics
39 int32_t EventDispatcherInitialize();
40 void EventGetStats(EventStats
*statsOut
);
41 void EventClearStats();
42 int32_t EventCallbackDispatch(UAVObjEvent
*ev
, UAVObjEventCallback cb
);
43 int32_t EventPeriodicCallbackCreate(UAVObjEvent
*ev
, UAVObjEventCallback cb
, uint16_t periodMs
);
44 int32_t EventPeriodicCallbackUpdate(UAVObjEvent
*ev
, UAVObjEventCallback cb
, uint16_t periodMs
);
45 int32_t EventPeriodicQueueCreate(UAVObjEvent
*ev
, xQueueHandle queue
, uint16_t periodMs
);
46 int32_t EventPeriodicQueueUpdate(UAVObjEvent
*ev
, xQueueHandle queue
, uint16_t periodMs
);
48 #endif // EVENTDISPATCHER_H