Ben Tyner | 0205f3b | 2020-02-24 10:24:47 -0600 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Ben Tyner | 3fb52e5 | 2020-03-31 10:10:07 -0500 | [diff] [blame] | 3 | #include <attn/attn_config.hpp> |
| 4 | |
Ben Tyner | 0205f3b | 2020-02-24 10:24:47 -0600 | [diff] [blame] | 5 | namespace attn |
| 6 | { |
| 7 | |
| 8 | /** |
| 9 | * @brief Load the attention handler as a gpio monitor |
| 10 | * |
| 11 | * Request the attention gpio for monitoring and attach the attention handler |
| 12 | * as the gpio event handler. |
| 13 | * |
Ben Tyner | 3fb52e5 | 2020-03-31 10:10:07 -0500 | [diff] [blame] | 14 | * @param i_config pointer to attention handler configuration object |
Ben Tyner | 0205f3b | 2020-02-24 10:24:47 -0600 | [diff] [blame] | 15 | * |
| 16 | * @return 0 == success |
| 17 | */ |
Ben Tyner | 3fb52e5 | 2020-03-31 10:10:07 -0500 | [diff] [blame] | 18 | int attnDaemon(Config* i_config); |
Ben Tyner | 0205f3b | 2020-02-24 10:24:47 -0600 | [diff] [blame] | 19 | |
| 20 | } // namespace attn |