nrfcxx  0.1.0
C++-17 Framework for Nordic nRF5 Devices
xenon.hpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: Apache-2.0 */
2 /* Copyright 2019 Peter A. Bigot */
3 
11 #ifndef NRFCXX_BOARD_XENON_HPP
12 #define NRFCXX_BOARD_XENON_HPP
13 
14 #include <nrfcxx/gpio.hpp>
15 #include <nrfcxx/lpm.hpp>
16 #include <nrfcxx/misc/lipomon.hpp>
17 
18 namespace nrfcxx {
19 namespace board {
20 
27 unsigned int battery_level_pptt (unsigned int batt_mV);
28 
30 class power_monitor : public misc::lipo_monitor {
31  using super = misc::lipo_monitor;
32 public:
33 
38 };
39 
51 bool external_antenna (int on);
52 
54 periph::QSPI& mx25l32 () noexcept;
55 
56 } // ns board
57 } // ns nrfcxx
58 
59 #endif /* NRFCXX_BOARD_HPP */
nrfcxx::board::mx25l32
periph::QSPI & mx25l32() noexcept
Access the QSPI instance for the on-board MX25L32.
lpm.hpp
Material supporting low-power-mode operations.
nrfcxx::board::power_monitor::power_monitor
power_monitor(notifier_type notify)
Construct an instance.
gpio.hpp
Core GPIO functionality.
lipomon.hpp
Support for monitoring LiPo batteries.
nrfcxx::notifier_type
std::function< void()> notifier_type
Type used to hold a notifier.
Definition: core.hpp:514
nrfcxx::board::battery_level_pptt
unsigned int battery_level_pptt(unsigned int batt_mV)
Estimated battery level from measured voltage.
nrfcxx::board::external_antenna
bool external_antenna(int on)
Query or control use of external antenna.
nrfcxx
Primary namespace for nrfcxx functionality.
Definition: clock.hpp:17