|
HF-ADS7952 Driver 0.1.0-dev
HF-ADS7952 C++ Driver
|
Functions | |
| constexpr uint16_t | ChannelInGroup (uint8_t ch_in_group) noexcept |
| Encode alarm channel index within a 4-channel group. | |
| constexpr uint16_t | Threshold12To10 (uint16_t adc_12bit) noexcept |
| Convert 12-bit ADC threshold to 10-bit alarm register format. | |
| constexpr uint16_t | GroupMode (uint8_t channel) noexcept |
| Resolve alarm programming mode code for a global channel. | |
Variables | |
| constexpr uint16_t | HIGH_REGISTER = 0x2000 |
| constexpr uint16_t | LOW_REGISTER = 0x0000 |
| constexpr uint16_t | EXIT_NEXT_FRAME = 0x1000 |
| constexpr uint16_t | CONTINUE_PROG = 0x0000 |
|
inlineconstexprnoexcept |
Encode alarm channel index within a 4-channel group.
| ch_in_group | Channel offset in group [0..3]. |
Definition at line 168 of file ads7952_registers.hpp.
Referenced by ads7952::ADS7952< SpiType >::ProgramAlarm().
|
inlineconstexprnoexcept |
Resolve alarm programming mode code for a global channel.
| channel | Global channel index. |
Definition at line 193 of file ads7952_registers.hpp.
References ads7952::reg::Mode::ALARM_GROUP_0, ads7952::reg::Mode::ALARM_GROUP_1, ads7952::reg::Mode::ALARM_GROUP_2, and ads7952::reg::Mode::ALARM_GROUP_3.
|
inlineconstexprnoexcept |
Convert 12-bit ADC threshold to 10-bit alarm register format.
| adc_12bit | Threshold in 12-bit ADC count units. |
Definition at line 183 of file ads7952_registers.hpp.
Referenced by ads7952::ADS7952< SpiType >::ProgramAlarm().
|
inlineconstexpr |
Definition at line 176 of file ads7952_registers.hpp.
|
inlineconstexpr |
Definition at line 175 of file ads7952_registers.hpp.
Referenced by ads7952::ADS7952< SpiType >::ProgramAlarm().
|
inlineconstexpr |
Definition at line 172 of file ads7952_registers.hpp.
Referenced by ads7952::ADS7952< SpiType >::ProgramAlarm().
|
inlineconstexpr |
Definition at line 173 of file ads7952_registers.hpp.