Freescale Semiconductor Inc.
Main Page | Data Structures | File List | Data Fields | Globals

as_signal_config_t Struct Reference

#include <etpu_as.h>


Detailed Description

A structure to represent a single AS signal processing configuration. It includes both static and dynamic values.

Definition at line 71 of file etpu_as.h.

Data Fields

const uint8_t queue_offset
int24_t gain
int24_t dc_offset
fract24_t forget_factor


Field Documentation

int24_t as_signal_config_t::dc_offset
 

This 24-bit DC-offset is applied after the gain.

Definition at line 80 of file etpu_as.h.

Referenced by fs_etpu_as_config(), fs_etpu_as_init(), and fs_etpu_as_measure_dc_offsets().

fract24_t as_signal_config_t::forget_factor
 

This 24-bit fractional value defines a first-order low-pass IIR filter called Exponentioally Weighted Moving Average (EWMA).

  • forget_factor = 0x000000 results in no averaging
  • forget_factor = 0x7FFFFF results in maximum averaging

Definition at line 82 of file etpu_as.h.

Referenced by fs_etpu_as_config(), and fs_etpu_as_init().

int24_t as_signal_config_t::gain
 

This is an integer gain to apply to the ADC result. The ADC result is a (max) 16-bit number and the gain is used to align it to a 24-bit number. Additionally, a gain correction can be applied using this gain.

Definition at line 76 of file etpu_as.h.

Referenced by fs_etpu_as_config(), and fs_etpu_as_init().

const uint8_t as_signal_config_t::queue_offset
 

This is a byte offset of the ADC result in the eQADC result queue. Together with as_config.result_queue, it defines where the input of AS signal processing is read.

Definition at line 73 of file etpu_as.h.

Referenced by fs_etpu_as_init().


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