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

as_config_t Struct Reference

#include <etpu_as.h>


Detailed Description

A structure to represent a configuration of AS. It includes AS configuration items which can mostly be changed in run-time.

Definition at line 92 of file etpu_as.h.

Data Fields

const uint24_t start_offset
uint24_t period
uint24_t pulse_width
uint8_t pulse_selection
int24_t pulse_adjustment_frame
int24_t pulse_adjustment_center
uint8_t irq_dma_options
uint8_t link_options
uint32_t link_chans_frame_start
uint32_t link_chans_frame_end
uint32_t link_chans_center_start
uint32_t link_chans_center_end
const uint32_t * p_result_queue
as_signal_config_t signal_config [FS_ETPU_AS_SIGNALS_MAX]
uint8_t signal_mask_frame
uint8_t signal_mask_center
uint8_t phase_current_processing
const uint8_t phase_current_idx_a
const uint8_t phase_current_idx_b
const uint8_t phase_current_idx_c
const uint8_t cfifo_update
const uint32_t * p_cfifo
const uint32_t cmd_ia_adc_0
const uint32_t cmd_ia_adc_1
const uint32_t cmd_ib_adc_0
const uint32_t cmd_ib_adc_1
const uint32_t cmd_ic_adc_0
const uint32_t cmd_ic_adc_1


Field Documentation

const uint8_t as_config_t::cfifo_update
 

update of eQADC command FIFO. This enables 2 selected phase current to be sampled in parallel. Which phase currents are selected is based on actual motor position in one of 6 sectors. See also *command_queue, cmd_ia/b/c_adc_0/1 and pwmm_chan_num. Use none, one or more of:

  • AS_CFIFO_FRAME_PULSE_START - modify eQADC Command FIFO at the start of the frame pulse. Applies only if FS_ETPU_AS_FM0_FRAME_PULSE_ON is set.
  • AS_CFIFO_FRAME_PULSE_END - modify eQADC Command FIFO at the end of the frame pulse.
  • AS_CFIFO_CENTER_PULSE_START - modify eQADC Command FIFO at the start of the center pulse. Applies only if FS_ETPU_AS_FM0_CENTER_PULSE_ON is set
  • AS_CFIFO_CENTER_PULSE_END - modify eQADC Command FIFO at the end of the center pulse.

Definition at line 154 of file etpu_as.h.

Referenced by fs_etpu_as_config(), and fs_etpu_as_init().

const uint32_t as_config_t::cmd_ia_adc_0
 

eQADC command to sample phase A current on ADC0. Used only when any of the AS_CFIFO_FRAME/CENTER_PULSE_START/END is set.

Definition at line 169 of file etpu_as.h.

Referenced by fs_etpu_as_init().

const uint32_t as_config_t::cmd_ia_adc_1
 

eQADC command to sample phase A current on ADC1. Used only when any of the AS_CFIFO_FRAME/CENTER_PULSE_START/END is set.

Definition at line 172 of file etpu_as.h.

Referenced by fs_etpu_as_init().

const uint32_t as_config_t::cmd_ib_adc_0
 

eQADC command to sample phase B current on ADC0. Used only when any of the AS_CFIFO_FRAME/CENTER_PULSE_START/END is set.

Definition at line 175 of file etpu_as.h.

Referenced by fs_etpu_as_init().

const uint32_t as_config_t::cmd_ib_adc_1
 

eQADC command to sample phase B current on ADC1. Used only when any of the AS_CFIFO_FRAME/CENTER_PULSE_START/END is set.

Definition at line 178 of file etpu_as.h.

Referenced by fs_etpu_as_init().

const uint32_t as_config_t::cmd_ic_adc_0
 

eQADC command to sample phase C current on ADC0. Used only when any of the AS_CFIFO_FRAME/CENTER_PULSE_START/END is set.

Definition at line 181 of file etpu_as.h.

Referenced by fs_etpu_as_init().

const uint32_t as_config_t::cmd_ic_adc_1
 

eQADC command to sample phase C current on ADC1. Used only when any of the AS_CFIFO_FRAME/CENTER_PULSE_START/END is set.

Definition at line 184 of file etpu_as.h.

uint8_t as_config_t::irq_dma_options
 

selection of IRQ&DMA generation. Use none, one or more of:

Definition at line 107 of file etpu_as.h.

Referenced by fs_etpu_as_config(), and fs_etpu_as_init().

uint32_t as_config_t::link_chans_center_end
 

up to 4 link numbers packed to a single 32-bit word. These links are sent at the center pulse end. Use FS_ETPU_CHANNEL_TO_LINK() to convert a channel number to a link number.

Definition at line 128 of file etpu_as.h.

Referenced by fs_etpu_as_config(), and fs_etpu_as_init().

uint32_t as_config_t::link_chans_center_start
 

up to 4 link numbers packed to a single 32-bit word. These links are sent at the center pulse start. Use FS_ETPU_CHANNEL_TO_LINK() to convert a channel number to a link number.

Definition at line 125 of file etpu_as.h.

Referenced by fs_etpu_as_config(), and fs_etpu_as_init().

uint32_t as_config_t::link_chans_frame_end
 

up to 4 link numbers packed to a single 32-bit word. These links are sent at the frame pulse end. Use FS_ETPU_CHANNEL_TO_LINK() to convert a channel number to a link number.

Definition at line 122 of file etpu_as.h.

Referenced by fs_etpu_as_config(), and fs_etpu_as_init().

uint32_t as_config_t::link_chans_frame_start
 

up to 4 link numbers packed to a single 32-bit word. These links are sent at the frame pulse start. Use FS_ETPU_CHANNEL_TO_LINK() to convert a channel number to a link number.

Definition at line 119 of file etpu_as.h.

Referenced by fs_etpu_as_config(), and fs_etpu_as_init().

uint8_t as_config_t::link_options
 

selection of link generation. Use none, one or more of:

Definition at line 113 of file etpu_as.h.

Referenced by fs_etpu_as_config(), and fs_etpu_as_init().

const uint32_t* as_config_t::p_cfifo
 

Pointer to eQADC command queue in eTPU DATA RAM. Used only when any of the AS_CFIFO_FRAME/CENTER_PULSE_START/END is set.

Definition at line 167 of file etpu_as.h.

Referenced by fs_etpu_as_init().

const uint32_t* as_config_t::p_result_queue
 

Pointer to eQADC results array in the eTPU DATA RAM

Definition at line 131 of file etpu_as.h.

Referenced by fs_etpu_as_init().

uint24_t as_config_t::period
 

AS period as a number of TCR1 cycles.

Definition at line 97 of file etpu_as.h.

Referenced by fs_etpu_as_config(), and fs_etpu_as_init().

const uint8_t as_config_t::phase_current_idx_a
 

index of the phase A current in the signal array. Used only when FS_ETPU_AS_PHASE_CURRENTS_ON is set.

Definition at line 148 of file etpu_as.h.

Referenced by fs_etpu_as_init().

const uint8_t as_config_t::phase_current_idx_b
 

index of the phase B current in the signal array. Used only when FS_ETPU_AS_PHASE_CURRENTS_ON is set.

Definition at line 150 of file etpu_as.h.

Referenced by fs_etpu_as_init().

const uint8_t as_config_t::phase_current_idx_c
 

index of the phase C current in the signal array. Used only when FS_ETPU_AS_PHASE_CURRENTS_ON is set.

Definition at line 152 of file etpu_as.h.

Referenced by fs_etpu_as_init().

uint8_t as_config_t::phase_current_processing
 

3-phase current processing. This switch turns on a calculation the 3rd phase current from the other 2. Which phase current is calculated is based on actual motor position in one of 6 sectors. See also phase_current_idx_a/b/c and pwmm_chan_num. Use one of:

Definition at line 141 of file etpu_as.h.

Referenced by fs_etpu_as_config(), and fs_etpu_as_init().

int24_t as_config_t::pulse_adjustment_center
 

center pulse position adjustment as a positive or negative number of TCR1 cycles.

Definition at line 105 of file etpu_as.h.

Referenced by fs_etpu_as_config(), and fs_etpu_as_init().

int24_t as_config_t::pulse_adjustment_frame
 

frame pulse position adjustment as a positive or negative number of TCR1 cycles.

Definition at line 103 of file etpu_as.h.

Referenced by fs_etpu_as_config(), and fs_etpu_as_init().

uint8_t as_config_t::pulse_selection
 

selection of pulse generation. Use none, one or both of:

Definition at line 99 of file etpu_as.h.

Referenced by fs_etpu_as_config(), and fs_etpu_as_init().

uint24_t as_config_t::pulse_width
 

AS pulse-width as a number of TCR1 cycles.

Definition at line 98 of file etpu_as.h.

Referenced by fs_etpu_as_config(), and fs_etpu_as_init().

struct as_signal_config_t as_config_t::signal_config[FS_ETPU_AS_SIGNALS_MAX]
 

Array of of individual signal processing configurations.

Definition at line 133 of file etpu_as.h.

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

uint8_t as_config_t::signal_mask_center
 

this mask defines which signals are processed on the center pulse end. Bit 0 (LSB) corresponds to signal[0]. This parameter is used only if FS_ETPU_AS_FM1_CENTER_PULSE_ON is set.

Definition at line 138 of file etpu_as.h.

Referenced by fs_etpu_as_config(), and fs_etpu_as_init().

uint8_t as_config_t::signal_mask_frame
 

this mask defines which signals are processed on the frame pulse end. Bit 0 (LSB) corresponds to signal[0]. This parameter is used only if FS_ETPU_AS_FM0_FRAME_PULSE_ON is set.

Definition at line 135 of file etpu_as.h.

Referenced by fs_etpu_as_config(), and fs_etpu_as_init().

const uint24_t as_config_t::start_offset
 

This parameter is used to synchronize various eTPU functions that generate a signal. For AS: the first period frame is scheduled start_offset TCR1 cycles after initialization.

Definition at line 94 of file etpu_as.h.

Referenced by fs_etpu_as_init().


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