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

spark_instance_t Struct Reference

#include <etpu_spark.h>


Detailed Description

A structure to represent an instance of SPARK. It includes static SPARK initialization items.

Definition at line 38 of file etpu_spark.h.

Data Fields

const uint8_t chan_num
const uint8_t priority
const uint8_t polarity
const uint24_t tdc_angle
uint32_t * cpba
uint32_t * cpba_single_spark


Field Documentation

const uint8_t spark_instance_t::chan_num
 

Channel number of the SPARK channel.

Definition at line 40 of file etpu_spark.h.

Referenced by fs_etpu_spark_config(), and fs_etpu_spark_init().

uint32_t* spark_instance_t::cpba
 

Channel parameter base address. Set cpba = 0 to use automatic allocation of eTPU DATA RAM for SPARK channel parameters using the eTPU utility function fs_etpu_malloc (recommanded), or assign the cpba manually by an address where the SPARK channel parameter space will start from, e.g. 0xC3FC8100.

Definition at line 48 of file etpu_spark.h.

Referenced by fs_etpu_spark_config(), fs_etpu_spark_get_states(), and fs_etpu_spark_init().

uint32_t* spark_instance_t::cpba_single_spark
 

Base address of the single spark array in eTPU DATA RAM. Set cpba_single_spark = 0 to use automatic allocation of the eTPU DATA RAM space corresponding to the spark_count value, using the eTPU utility function fs_etpu_malloc (recommanded), or assign the cpba_sparks manually by an address, e.g. 0xC3FC8100.

Definition at line 53 of file etpu_spark.h.

Referenced by fs_etpu_spark_config(), and fs_etpu_spark_init().

const uint8_t spark_instance_t::polarity
 

SPARK polarity. It can one any of:

Definition at line 42 of file etpu_spark.h.

Referenced by fs_etpu_spark_init().

const uint8_t spark_instance_t::priority
 

Channel priority for the SPARK channel.

Definition at line 41 of file etpu_spark.h.

Referenced by fs_etpu_spark_init().

const uint24_t spark_instance_t::tdc_angle
 

The cylinder Top Dead Center as a number of TCR2 angle ticks relative to zero engine angle, in a range corresponding to 0-720 degrees.

Definition at line 45 of file etpu_spark.h.

Referenced by fs_etpu_spark_init().


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