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

crank_states_t Struct Reference

#include <etpu_crank_emul.h>


Detailed Description

A structure to represent internal states of CRANK.

Definition at line 115 of file etpu_crank_emul.h.

Data Fields

uint8_t error
uint8_t state
uint8_t eng_pos_state
uint8_t tooth_counter_gap
uint8_t tooth_counter_cycle
uint24_t last_tooth_period


Field Documentation

uint8_t crank_states_t::eng_pos_state
 

This is the global engine position state. It can be one of:

  • FS_ETPU_ENG_POS_SEEK
  • FS_ETPU_ENG_POS_FIRST_HALF_SYNC
  • FS_ETPU_ENG_POS_PRE_FULL_SYNC
  • FS_ETPU_ENG_POS_FULL_SYNC

Definition at line 142 of file etpu_crank_emul.h.

Referenced by fs_etpu_crank_get_states().

uint8_t crank_states_t::error
 

This is the error status of CRANK. It includes the following error flags:

  • FS_ETPU_CRANK_ERR_INVALID_TRANS
  • FS_ETPU_CRANK_ERR_INVALID_MATCH
  • FS_ETPU_CRANK_ERR_TIMEOUT
  • FS_ETPU_CRANK_ERR_STALL
  • FS_ETPU_CRANK_ERR_INTERNAL
  • FS_ETPU_CRANK_ERR_TIMEOUT_BEFORE_GAP
  • FS_ETPU_CRANK_ERR_TIMEOUT_AFTER_GAP
  • FS_ETPU_CRANK_ERR_TOOTH_IN_GAP The eTPU sets the error flags, the CPU clears them after reading.

Definition at line 117 of file etpu_crank_emul.h.

Referenced by fs_etpu_crank_get_states().

uint24_t crank_states_t::last_tooth_period
 

The last tooth period as a number of TCR1 ticks.

Definition at line 152 of file etpu_crank_emul.h.

Referenced by fs_etpu_crank_get_states().

uint8_t crank_states_t::state
 

This is the state of CRANK. It can be one of:

  • FS_ETPU_CRANK_SEEK
  • FS_ETPU_CRANK_BLANK_TIME
  • FS_ETPU_CRANK_BLANK_TEETH
  • FS_ETPU_CRANK_FIRST_TRANS
  • FS_ETPU_CRANK_SECOND_TRANS
  • FS_ETPU_CRANK_TEST_POSSIBLE_GAP
  • FS_ETPU_CRANK_VERIFY_GAP
  • FS_ETPU_CRANK_COUNTING
  • FS_ETPU_CRANK_COUNTING_TIMEOUT
  • FS_ETPU_CRANK_TOOTH_BEFORE_GAP
  • FS_ETPU_CRANK_TOOTH_BEFORE_GAP_NOT_HRM FS_ETPU_CRANK_ADDITIONAL_TOOTH
  • FS_ETPU_CRANK_TOOTH_AFTER_GAP

Definition at line 128 of file etpu_crank_emul.h.

Referenced by fs_etpu_crank_get_states().

uint8_t crank_states_t::tooth_counter_cycle
 

The actual number of the tooth counter which counts from 1 to teeth_per_cycle and resets every engine cycle.

Definition at line 150 of file etpu_crank_emul.h.

Referenced by fs_etpu_crank_get_states().

uint8_t crank_states_t::tooth_counter_gap
 

The actual number of the tooth counter which counts from 1 to teeth_till_gap and resets on every gap.

Definition at line 148 of file etpu_crank_emul.h.

Referenced by fs_etpu_crank_get_states().


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