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

fuel_config_t Struct Reference

#include <etpu_fuel.h>


Detailed Description

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

Definition at line 57 of file etpu_fuel.h.

Data Fields

int24_t angle_normal_end
int24_t angle_stop
int24_t angle_offset_recalc
uint24_t injection_time
uint24_t compensation_time
uint24_t injection_time_minimum
uint24_t off_time_minimum
uint8_t generation_disable


Field Documentation

int24_t fuel_config_t::angle_normal_end
 

The tdc_angle-relative normal end angle as a number of TCR2 ticks. Positive values precede the TDC, negative go after. The injection start angle is calculated, based on the currecnt engine speed, so that the injection ends at the normal_end_angle.

Definition at line 59 of file etpu_fuel.h.

Referenced by fs_etpu_fuel_config(), and fs_etpu_fuel_init().

int24_t fuel_config_t::angle_offset_recalc
 

The recalculation offset angle as a number of TCR2 ticks. At the stop_angle of one injection the start_angle of the next injection is calculated according to the actual engine speed. 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 70 of file etpu_fuel.h.

Referenced by fs_etpu_fuel_config(), and fs_etpu_fuel_init().

int24_t fuel_config_t::angle_stop
 

The tdc_angle-relative injection latest stop angle, or drop-dead-angle, as a number of TCR2 ticks. Positive values precede the TDC, negative go after. If the engine accelerates, the need is to keep the injection_time, so the injectind ends later than at the normal_end_angle, but not later than the stop_angle. If na injection is stopped by the stop_angle, the error flag FS_ETPU_FUEL_ERROR_STOP_ANGLE_APPLIED is set.

Definition at line 63 of file etpu_fuel.h.

Referenced by fs_etpu_fuel_config(), and fs_etpu_fuel_init().

uint24_t fuel_config_t::compensation_time
 

A TCR1 time which is added to each fuel injection pulse width in order to compensate the valve openning and closing time.

Definition at line 80 of file etpu_fuel.h.

Referenced by fs_etpu_fuel_config(), and fs_etpu_fuel_init().

uint8_t fuel_config_t::generation_disable
 

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

  • FS_ETPU_FUEL_GENERATION_ALLOWED
  • FS_ETPU_FUEL_GENERATION_DISABLED FS_ETPU_FUEL_GENERATION_DISABLED switches the injection pulse generation off. Switching off can also be done by setting the injection_time = 0, but that would shorten an injection pulse which is currently in progress. Instead, FS_ETPU_FUEL_GENERATION_DISABLED can switch off at any time, but a pulse which has already been started will be correctly finished. FS_ETPU_FUEL_GENERATION_ALLOWED switches the injection pulse generation on.

Definition at line 90 of file etpu_fuel.h.

Referenced by fs_etpu_fuel_config(), and fs_etpu_fuel_init().

uint24_t fuel_config_t::injection_time
 

A TCR1 time determining the fuel injection pulse width, corresponding to the amount of fuel injected by one fuel injector in each engine cycle.

Definition at line 77 of file etpu_fuel.h.

Referenced by fs_etpu_fuel_config(), fs_etpu_fuel_init(), and fs_etpu_fuel_update_injection_time().

uint24_t fuel_config_t::injection_time_minimum
 

A TCR1 minimum fuel injection pulse width. Pulses shorter than injection_time_minimum are not generated.

Definition at line 83 of file etpu_fuel.h.

Referenced by fs_etpu_fuel_config(), and fs_etpu_fuel_init().

uint24_t fuel_config_t::off_time_minimum
 

A TCR1 minimum time between fuel injection pulses. In case there is an additional injection pulse generated because of injection_time update after the main pulse ended, the additional pulse does not start earlier than off_time_minimum after the main pulse end. This also applies to next additional pulses.

Definition at line 85 of file etpu_fuel.h.

Referenced by fs_etpu_fuel_config(), and fs_etpu_fuel_init().


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