Dawn Framework
1.0
Universal data acquisition framework for embedded systems
dawn
include
dawn
io
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
13
namespace
dawn
14
{
21
class
CIOTimerfd
22
{
23
public
:
24
#ifdef CONFIG_DAWN_IO_NOTIFY
25
int
fd;
26
uint32_t interval;
27
#endif
28
29
CIOTimerfd
()
30
#ifdef CONFIG_DAWN_IO_NOTIFY
31
: fd(-1)
32
, interval(0)
33
#endif
34
{
35
}
36
37
~CIOTimerfd
();
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
dawn::CIOTimerfd
Internal helper for timer-based I/O notifications.
Definition
timerfd.hxx:22
dawn
Out-of-tree user-extension hooks for Dawn.
Definition
bindable.hxx:13
Generated by
1.9.8