|
nrfcxx
0.1.0
C++-17 Framework for Nordic nRF5 Devices
|
Abstraction of a dry contact monitor using nrfcxx::gpio::gpiote. More...
#include <type_traits>#include <nrfcxx/clock.hpp>#include <nrfcxx/gpio.hpp>#include <nrfcxx/periph.hpp>Go to the source code of this file.
Data Structures | |
| class | nrfcxx::sensor::contact |
| State and functionality related to monitoring dry contacts. More... | |
| struct | nrfcxx::sensor::contact::state_type |
| An aggregate capturing consistent contact state. More... | |
Namespaces | |
| nrfcxx | |
| Primary namespace for nrfcxx functionality. | |
| nrfcxx::sensor | |
| Namespace for abstractions of various sensors. | |
Variables | |
| static constexpr auto | nrfcxx::sensor::contact_internal::utt_per_ts = 256U |
| Divisor to convert from uptime ticks to contact timestamp clock ticks. More... | |
Abstraction of a dry contact monitor using nrfcxx::gpio::gpiote.
|
staticconstexpr |
Divisor to convert from uptime ticks to contact timestamp clock ticks.
This is selected so the 24-bit reduced range uptime clock can be converted to a 16-bit contact timestamp clock with the same representational range.
1.8.16