HF-ADS7952 Driver 0.1.0-dev
HF-ADS7952 C++ Driver
Loading...
Searching...
No Matches
ads7952::reg Namespace Reference

Namespaces

namespace  Alarm
 
namespace  GPIO
 
namespace  GPIOProg
 
namespace  Mode
 
namespace  Response
 

Functions

constexpr uint16_t ChannelSelect (uint8_t ch) noexcept
 Encode manual-mode channel selection bits DI[10:7].
 
constexpr uint16_t Auto1ChannelBit (uint8_t ch) noexcept
 Build the Auto-1 enable bit for a channel.
 
constexpr uint16_t Auto2LastChannel (uint8_t ch) noexcept
 Encode Auto-2 last-channel field DI[9:6].
 

Variables

constexpr uint16_t PROGRAM_ENABLE = 0x0800
 
constexpr uint16_t PROGRAM_RETAIN = 0x0000
 
constexpr uint16_t RESET_COUNTER = 0x0400
 
constexpr uint16_t NO_RESET_COUNTER = 0x0000
 
constexpr uint16_t RANGE_VREF = 0x0000
 
constexpr uint16_t RANGE_2VREF = 0x0040
 
constexpr uint16_t POWER_NORMAL = 0x0000
 
constexpr uint16_t POWER_DOWN = 0x0020
 
constexpr uint16_t OUTPUT_CHAN_ADDR = 0x0000
 
constexpr uint16_t OUTPUT_GPIO_DATA = 0x0010
 
constexpr uint8_t NUM_CHANNELS = 12
 Number of ADC input channels.
 
constexpr uint8_t RESOLUTION_BITS = 12
 ADC resolution in bits.
 
constexpr uint16_t MAX_COUNT = 4095
 Maximum 12-bit conversion value.
 
constexpr uint8_t NUM_GPIO_PINS = 4
 Number of GPIO pins on ADS7952.
 
constexpr uint8_t CHANNELS_PER_ALARM_GROUP = 4
 Channels per alarm group.
 
constexpr uint8_t NUM_ALARM_GROUPS = 3
 Valid alarm groups for CH0..CH11.
 
constexpr uint8_t INVALID_CONVERSIONS_AFTER_POWERUP = 1
 Frames to discard after power-up.
 

Variable Documentation

◆ CHANNELS_PER_ALARM_GROUP

constexpr uint8_t ads7952::reg::CHANNELS_PER_ALARM_GROUP = 4
inlineconstexpr

Channels per alarm group.

Definition at line 233 of file ads7952_registers.hpp.

Referenced by ads7952::ADS7952< SpiType >::ProgramAlarm().

◆ INVALID_CONVERSIONS_AFTER_POWERUP

constexpr uint8_t ads7952::reg::INVALID_CONVERSIONS_AFTER_POWERUP = 1
inlineconstexpr

Frames to discard after power-up.

Definition at line 235 of file ads7952_registers.hpp.

◆ MAX_COUNT

constexpr uint16_t ads7952::reg::MAX_COUNT = 4095
inlineconstexpr

◆ NO_RESET_COUNTER

constexpr uint16_t ads7952::reg::NO_RESET_COUNTER = 0x0000
inlineconstexpr

◆ NUM_ALARM_GROUPS

constexpr uint8_t ads7952::reg::NUM_ALARM_GROUPS = 3
inlineconstexpr

Valid alarm groups for CH0..CH11.

Definition at line 234 of file ads7952_registers.hpp.

◆ NUM_CHANNELS

constexpr uint8_t ads7952::reg::NUM_CHANNELS = 12
inlineconstexpr

◆ NUM_GPIO_PINS

constexpr uint8_t ads7952::reg::NUM_GPIO_PINS = 4
inlineconstexpr

Number of GPIO pins on ADS7952.

Definition at line 232 of file ads7952_registers.hpp.

◆ OUTPUT_CHAN_ADDR

constexpr uint16_t ads7952::reg::OUTPUT_CHAN_ADDR = 0x0000
inlineconstexpr

Definition at line 85 of file ads7952_registers.hpp.

◆ OUTPUT_GPIO_DATA

constexpr uint16_t ads7952::reg::OUTPUT_GPIO_DATA = 0x0010
inlineconstexpr

Definition at line 86 of file ads7952_registers.hpp.

◆ POWER_DOWN

constexpr uint16_t ads7952::reg::POWER_DOWN = 0x0020
inlineconstexpr

Definition at line 80 of file ads7952_registers.hpp.

◆ POWER_NORMAL

constexpr uint16_t ads7952::reg::POWER_NORMAL = 0x0000
inlineconstexpr

Definition at line 79 of file ads7952_registers.hpp.

◆ PROGRAM_ENABLE

constexpr uint16_t ads7952::reg::PROGRAM_ENABLE = 0x0800
inlineconstexpr

◆ PROGRAM_RETAIN

constexpr uint16_t ads7952::reg::PROGRAM_RETAIN = 0x0000
inlineconstexpr

◆ RANGE_2VREF

constexpr uint16_t ads7952::reg::RANGE_2VREF = 0x0040
inlineconstexpr

Definition at line 74 of file ads7952_registers.hpp.

◆ RANGE_VREF

constexpr uint16_t ads7952::reg::RANGE_VREF = 0x0000
inlineconstexpr

Definition at line 73 of file ads7952_registers.hpp.

◆ RESET_COUNTER

constexpr uint16_t ads7952::reg::RESET_COUNTER = 0x0400
inlineconstexpr

◆ RESOLUTION_BITS

constexpr uint8_t ads7952::reg::RESOLUTION_BITS = 12
inlineconstexpr

ADC resolution in bits.

Definition at line 230 of file ads7952_registers.hpp.