|
HF-ADS7952 Driver 0.1.0-dev
HF-ADS7952 C++ Driver
|
Helpers and constants for Auto-1 sequence mask construction. More...
Functions | |
| template<typename... Channels> | |
| constexpr uint16_t | ads7952::ChannelMask (Channels... channels) noexcept |
| Construct a channel enable bitmask from a list of channel numbers. | |
| constexpr uint16_t | ads7952::ChannelRangeMask (uint8_t first, uint8_t last) noexcept |
| Build a contiguous channel range mask from first to last (inclusive). | |
Helpers and constants for Auto-1 sequence mask construction.
|
constexprnoexcept |
Construct a channel enable bitmask from a list of channel numbers.
Bit ordering: bit N corresponds to channel N (bit 0 = CH0, bit 11 = CH11). Only channels 0–11 are valid; out-of-range values are silently masked.
| Channels | Variadic uint8_t channel numbers |
| channels | Channel numbers to include (0–11) |
Definition at line 216 of file ads7952_types.hpp.
|
constexprnoexcept |
Build a contiguous channel range mask from first to last (inclusive).
| first | First channel index (0-11). |
| last | Last channel index (0-11), must be >= first. |
Definition at line 231 of file ads7952_types.hpp.