blob: 0a2e96a875fa8216630d1c55cdfac6ccc0ea8c3f [file] [log] [blame]
Matthew Barth1b4de262018-03-06 13:03:16 -06001#pragma once
2
3#include "types.hpp"
4#include "zone.hpp"
5
6namespace phosphor
7{
8namespace fan
9{
10namespace control
11{
12namespace trigger
13{
14
15/**
16 * @brief A trigger to start a timer for an event
17 * @details Creates and starts a timer according to the configuration given
18 * that will call an event's actions upon each timer expiration.
19 *
20 * @param[in] tConf - Timer configuration parameters
21 *
22 * @return Trigger lambda function
23 * A Trigger function that creates and starts a timer
24 */
25Trigger timer(TimerConf&& tConf);
26
27} // namespace trigger
28} // namespace control
29} // namespace fan
30} // namespace phosphor