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

spark_config_t Struct Reference

#include <etpu_spark.h>


Detailed Description

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

Definition at line 62 of file etpu_spark.h.

Data Fields

int24_t angle_offset_recalc
uint24_t dwell_time_min
uint24_t dwell_time_max
uint24_t multi_on_time
uint24_t multi_off_time
uint8_t spark_count
single_spark_config_tp_single_spark_config
uint8_t generation_disable


Field Documentation

int24_t spark_config_t::angle_offset_recalc
 

The recalculation offset angle as a number of TCR2 ticks. At the end of one spark the start angle of the next spark is calculated according to the actual engine speed and end_angle. The calculation is repeated once again in order to adjust to a speed change at a defined angular position before the originaly calculated start_angle. This position is given by angle_offset_recalc.

Definition at line 64 of file etpu_spark.h.

Referenced by fs_etpu_spark_config(), and fs_etpu_spark_init().

uint24_t spark_config_t::dwell_time_max
 

The maximum spark dwell time as a number of TCR1 ticks.

Definition at line 73 of file etpu_spark.h.

Referenced by fs_etpu_spark_config(), and fs_etpu_spark_init().

uint24_t spark_config_t::dwell_time_min
 

The minimum spark dwell time as a number of TCR1 ticks.

Definition at line 71 of file etpu_spark.h.

Referenced by fs_etpu_spark_config(), and fs_etpu_spark_init().

uint8_t spark_config_t::generation_disable
 

This parameter disables/enables the generation of output pulses. It can be assigned one of the values:

Definition at line 82 of file etpu_spark.h.

Referenced by fs_etpu_spark_config(), and fs_etpu_spark_init().

uint24_t spark_config_t::multi_off_time
 

The multi-pulse OFF-time as a number of TCR1 ticks.

Definition at line 77 of file etpu_spark.h.

Referenced by fs_etpu_spark_config(), and fs_etpu_spark_init().

uint24_t spark_config_t::multi_on_time
 

The multi-pulse ON-time as a number of TCR1 ticks.

Definition at line 75 of file etpu_spark.h.

Referenced by fs_etpu_spark_config(), and fs_etpu_spark_init().

struct single_spark_config_t* spark_config_t::p_single_spark_config
 

Pointer to the first item of an array of the single spark configuration structures.

Definition at line 80 of file etpu_spark.h.

Referenced by fs_etpu_spark_config(), and fs_etpu_spark_init().

uint8_t spark_config_t::spark_count
 

The count of single sparks per engine-cycle.

Definition at line 79 of file etpu_spark.h.

Referenced by fs_etpu_spark_config(), and fs_etpu_spark_init().


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