Dawn Framework 1.0
Universal data acquisition framework for embedded systems
timerfd.hxx
1// dawn/include/dawn/io/timerfd.hxx
2//
3// SPDX-License-Identifier: Apache-2.0
4//
5
6#pragma once
7
8#include <mutex>
9
10#include "dawn/io/timerfd.hxx"
11#include "dawn/porting/config.hxx"
12
13namespace dawn
14{
22{
23public:
24#ifdef CONFIG_DAWN_IO_NOTIFY
25 int fd;
26 uint32_t interval;
27#endif
28
30#ifdef CONFIG_DAWN_IO_NOTIFY
31 : fd(-1)
32 , interval(0)
33#endif
34 {
35 }
36
38
39 int timfd_init();
40 void timfd_interval(uint32_t data);
41 void timfd_ack();
42 int timfd_fd() const;
43 int timfd_start();
44 int timfd_stop();
45};
46} // Namespace dawn
Internal helper for timer-based I/O notifications.
Definition timerfd.hxx:22
Out-of-tree user-extension hooks for Dawn.
Definition bindable.hxx:13