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

crank_states_t Struct Reference

#include <etpu_crank.h>


Detailed Description

A structure to represent internal states of CRANK.

Definition at line 118 of file etpu_crank.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:

Definition at line 145 of file etpu_crank.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:

Definition at line 120 of file etpu_crank.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 155 of file etpu_crank.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:

Definition at line 131 of file etpu_crank.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 153 of file etpu_crank.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 151 of file etpu_crank.h.

Referenced by fs_etpu_crank_get_states().


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