Contains the configuration data for a VMXResource whose VMXResourceType is Accumulator.
More...
#include <VMXResourceConfig.h>
|
uint8_t | num_average_bits |
|
uint8_t | num_oversample_bits |
|
VMXResourceType | res_type |
|
Contains the configuration data for a VMXResource whose VMXResourceType is Accumulator.
◆ AccumulatorConfig()
AccumulatorConfig::AccumulatorConfig |
( |
uint8_t |
num_oversample_bits, |
|
|
uint8_t |
num_average_bits |
|
) |
| |
|
inline |
AccumulatorConfig constructor; initializes values with the provided input parameters *.
- Parameters
-
num_oversample_bits | The configured number of oversample bits |
num_average_bits | The configured number of average bits |
◆ Copy()
Copies the contents of the source VMXResourceConfig object into this object.
NOTE: The source object's VMXResourceType must match this object's VMXResourceType.
- Parameters
-
[in] | p_config | The source VMXResourceConfig object from which to copy configuration data into this object. |
Implements VMXResourceConfig.
◆ GetCopy()
Instantiates a copy of the configuration data.
NOTE: The caller is responsible to delete the object returned from this method.
Implements VMXResourceConfig.
◆ GetNumAverageBits()
uint8_t AccumulatorConfig::GetNumAverageBits |
( |
| ) |
|
|
inline |
Returns the configured number of average bits.
Each averaged value is comprised of 2^num_average_bits samples.
◆ GetNumOversampleBits()
uint8_t AccumulatorConfig::GetNumOversampleBits |
( |
| ) |
|
|
inline |
Returns the configured number of oversample bits.
◆ SetNumAverageBits()
void AccumulatorConfig::SetNumAverageBits |
( |
uint8_t |
num_average_bits | ) |
|
|
inline |
Sets the configured number of average bits.
◆ SetNumOversampleBits()
void AccumulatorConfig::SetNumOversampleBits |
( |
uint8_t |
num_oversample_bits | ) |
|
|
inline |
Sets the configured number of oversample bits.
The documentation for this struct was generated from the following file: