ADS7952 Driver 0.1.0
API reference
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
ads7952::Bank Struct Reference

The result of one Auto-1 or Auto-2 scan: one code per channel of the sequence. More...

#include <ads7952_types.hpp>

Public Member Functions

constexpr bool Has (uint8_t channel) const noexcept
 

Public Attributes

std::array< uint16_t, kMaxChannels > code {}
 Result of channel n at index n, 0 to 4095.
 
uint16_t mask {0}
 
Range range {Range::Vref}
 

Detailed Description

The result of one Auto-1 or Auto-2 scan: one code per channel of the sequence.

Every channel in mask was received exactly once, in one pass of the sequence; the other entries of code are 0.

Member Function Documentation

◆ Has()

constexpr bool ads7952::Bank::Has ( uint8_t  channel) const
inlineconstexprnoexcept
Parameters
channel0 to 15.
Returns
true when the scan holds channel.

Member Data Documentation

◆ mask

uint16_t ads7952::Bank::mask {0}

The channels of the scan, bit n for channel n.

◆ range

Range ads7952::Bank::range {Range::Vref}

The range every code of the scan was converted in, so a bank kept across SetRange() still converts with its own scale (ADS7952::ToMicrovolts(const Bank&, uint8_t)).


The documentation for this struct was generated from the following file: