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

crank_config_t Struct Reference

#include <etpu_crank.h>


Detailed Description

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

Definition at line 89 of file etpu_crank.h.

Data Fields

uint8_t teeth_per_sync
uint24_t blank_time
uint8_t blank_teeth
ufract24_t gap_ratio
ufract24_t win_ratio_normal
ufract24_t win_ratio_across_gap
ufract24_t win_ratio_after_gap
ufract24_t win_ratio_after_timeout
uint24_t first_tooth_timeout


Field Documentation

uint8_t crank_config_t::blank_teeth
 

A number of teeth ignored after initialization.

Definition at line 98 of file etpu_crank.h.

Referenced by fs_etpu_crank_config(), and fs_etpu_crank_init().

uint24_t crank_config_t::blank_time
 

A TCR1 time period after initialization during which teeth are ignored.

Definition at line 96 of file etpu_crank.h.

Referenced by fs_etpu_crank_config(), and fs_etpu_crank_init().

uint24_t crank_config_t::first_tooth_timeout
 

A TCR1 time period after the first tooth (after blank_teeth) when a timeout will be deemed to have happened.

Definition at line 113 of file etpu_crank.h.

Referenced by fs_etpu_crank_config(), and fs_etpu_crank_init().

ufract24_t crank_config_t::gap_ratio
 

A fraction used to perform the ABA gap test. For a crank wheel with a gap: gap_ratio * tooth_period_B > tooth_period_A. For a crank wheel with an additional tooth: gap_ratio * tooth_period_A > tooth_period_B.

Definition at line 100 of file etpu_crank.h.

Referenced by fs_etpu_crank_config(), and fs_etpu_crank_init().

uint8_t crank_config_t::teeth_per_sync
 

A number of teeth (including the missing teeth in gap) corresponding to a segment which is needed for the Cam to log enough Cam transitions so that it enables to recognize the correct engine half-cycle and achieve synchronozation. It must be a multiple of (teeth_till_gap + teeth_in_gap).

Definition at line 91 of file etpu_crank.h.

Referenced by fs_etpu_crank_config(), and fs_etpu_crank_init().

ufract24_t crank_config_t::win_ratio_across_gap
 

A fraction used to derive the acceptance window for the first tooth after the gap.

Definition at line 107 of file etpu_crank.h.

Referenced by fs_etpu_crank_config(), and fs_etpu_crank_init().

ufract24_t crank_config_t::win_ratio_after_gap
 

A fraction used to derive the acceptance window for the second tooth after the gap.

Definition at line 109 of file etpu_crank.h.

Referenced by fs_etpu_crank_config(), and fs_etpu_crank_init().

ufract24_t crank_config_t::win_ratio_after_timeout
 

A fraction used to derive the acceptance window for the tooth following a timeout condition.

Definition at line 111 of file etpu_crank.h.

Referenced by fs_etpu_crank_config(), and fs_etpu_crank_init().

ufract24_t crank_config_t::win_ratio_normal
 

A fraction used to derive the acceptance window for the next normal tooth.

Definition at line 105 of file etpu_crank.h.

Referenced by fs_etpu_crank_config(), and fs_etpu_crank_init().


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