|
HF-ADS7952 Driver 0.1.0-dev
HF-ADS7952 C++ Driver
|
Register definitions and SPI frame constants for the ADS7952. More...
#include <cstdint>Go to the source code of this file.
Namespaces | |
| namespace | ads7952 |
| namespace | ads7952::reg |
| namespace | ads7952::reg::Mode |
| namespace | ads7952::reg::GPIO |
| namespace | ads7952::reg::GPIOProg |
| namespace | ads7952::reg::Alarm |
| namespace | ads7952::reg::Response |
Functions | |
| constexpr uint16_t | ads7952::reg::ChannelSelect (uint8_t ch) noexcept |
| Encode manual-mode channel selection bits DI[10:7]. | |
| constexpr uint16_t | ads7952::reg::Auto1ChannelBit (uint8_t ch) noexcept |
| Build the Auto-1 enable bit for a channel. | |
| constexpr uint16_t | ads7952::reg::Auto2LastChannel (uint8_t ch) noexcept |
| Encode Auto-2 last-channel field DI[9:6]. | |
| constexpr uint16_t | ads7952::reg::Alarm::ChannelInGroup (uint8_t ch_in_group) noexcept |
| Encode alarm channel index within a 4-channel group. | |
| constexpr uint16_t | ads7952::reg::Alarm::Threshold12To10 (uint16_t adc_12bit) noexcept |
| Convert 12-bit ADC threshold to 10-bit alarm register format. | |
| constexpr uint16_t | ads7952::reg::Alarm::GroupMode (uint8_t channel) noexcept |
| Resolve alarm programming mode code for a global channel. | |
| constexpr uint8_t | ads7952::reg::Response::GetChannel (uint16_t frame) noexcept |
| Extract channel descriptor from response frame DO[15:12]. | |
| constexpr uint16_t | ads7952::reg::Response::GetData (uint16_t frame) noexcept |
| Extract conversion data from response frame DO[11:0]. | |
Register definitions and SPI frame constants for the ADS7952.
Complete register map derived from TI ADS79xx datasheet SLAS605C. The ADS7952 uses 16-bit full-duplex SPI frames:
Definition in file ads7952_registers.hpp.