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

etpu_crank_auto.h File Reference

Go to the source code of this file.

Defines

#define FS_ETPU_CRANK_FUNCTION_NUMBER   1
#define FS_ETPU_CRANK_TABLE_SELECT   1
#define FS_ETPU_CRANK_NUM_PARMS   0x50
#define FS_ETPU_CRANK_HSR_INIT   7
#define FS_ETPU_CRANK_HSR_SET_SYNC   1
#define FS_ETPU_CRANK_FM0_USE_TRANS_RISING   1
#define FS_ETPU_CRANK_FM0_USE_TRANS_FALLING   0
#define FS_ETPU_CRANK_FM1_TOOTH_PERIODS_LOG_OFF   (0)
#define FS_ETPU_CRANK_FM1_TOOTH_PERIODS_LOG_ON   (1 << 1)
#define FS_ETPU_CRANK_OFFSET_BLANK_TIME   0x1
#define FS_ETPU_CRANK_OFFSET_TCR2_TICKS_PER_TOOTH   0x5
#define FS_ETPU_CRANK_OFFSET_TCR2_TICKS_PER_ADD_TOOTH   0x9
#define FS_ETPU_CRANK_OFFSET_LAST_TOOTH_TCR1_TIME   0xd
#define FS_ETPU_CRANK_OFFSET_LAST_TOOTH_PERIOD   0x11
#define FS_ETPU_CRANK_OFFSET_ADDITIONAL_TOOTH_PERIOD   0x15
#define FS_ETPU_CRANK_OFFSET_TCR2_ADJUSTMENT   0x19
#define FS_ETPU_CRANK_OFFSET_GAP_RATIO   0x1d
#define FS_ETPU_CRANK_OFFSET_WIN_RATIO_NORMAL   0x21
#define FS_ETPU_CRANK_OFFSET_WIN_RATIO_ACROSS_GAP   0x25
#define FS_ETPU_CRANK_OFFSET_WIN_RATIO_AFTER_GAP   0x29
#define FS_ETPU_CRANK_OFFSET_WIN_RATIO_AFTER_TIMEOUT   0x2d
#define FS_ETPU_CRANK_OFFSET_FIRST_TOOTH_TIMEOUT   0x31
#define FS_ETPU_CRANK_OFFSET_LINK_CAM   0x34
#define FS_ETPU_CRANK_OFFSET_LINK_1   0x38
#define FS_ETPU_CRANK_OFFSET_LINK_2   0x3c
#define FS_ETPU_CRANK_OFFSET_LINK_3   0x40
#define FS_ETPU_CRANK_OFFSET_LINK_4   0x44
#define FS_ETPU_CRANK_OFFSET_TEETH_TILL_GAP   0x0
#define FS_ETPU_CRANK_OFFSET_TEETH_IN_GAP   0x4
#define FS_ETPU_CRANK_OFFSET_MISSCNT_MASK   0x4c
#define FS_ETPU_CRANK_OFFSET_TEETH_PER_CYCLE   0x8
#define FS_ETPU_CRANK_OFFSET_TEETH_PER_SYNC   0xc
#define FS_ETPU_CRANK_OFFSET_TOOTH_COUNTER_GAP   0x10
#define FS_ETPU_CRANK_OFFSET_TOOTH_COUNTER_CYCLE   0x14
#define FS_ETPU_CRANK_OFFSET_BLANK_TEETH   0x18
#define FS_ETPU_CRANK_OFFSET_STATE   0x1c
#define FS_ETPU_CRANK_OFFSET_ERROR   0x20
#define FS_ETPU_CRANK_OFFSET_TOOTH_PERIOD_LOG   0x49
#define FS_ETPU_OFFSET_ENG_POS_STATE   0x20
#define FS_ETPU_OFFSET_ENG_CYCLE_TCR2_TICKS   0x25
#define FS_ETPU_OFFSET_ENG_CYCLE_TCR2_START   0x29
#define FS_ETPU_CRANK_ERR_NO_ERROR   0
#define FS_ETPU_CRANK_ERR_INVALID_TRANS   1
#define FS_ETPU_CRANK_ERR_INVALID_MATCH   2
#define FS_ETPU_CRANK_ERR_TIMEOUT   4
#define FS_ETPU_CRANK_ERR_STALL   8
#define FS_ETPU_CRANK_ERR_INTERNAL   16
#define FS_ETPU_CRANK_ERR_TIMEOUT_BEFORE_GAP   32
#define FS_ETPU_CRANK_ERR_TIMEOUT_AFTER_GAP   64
#define FS_ETPU_CRANK_ERR_TOOTH_IN_GAP   128
#define FS_ETPU_CRANK_ERR_ADD_TOOTH_NOT_FOUND   128
#define FS_ETPU_CRANK_SEEK   0
#define FS_ETPU_CRANK_BLANK_TIME   1
#define FS_ETPU_CRANK_BLANK_TEETH   2
#define FS_ETPU_CRANK_FIRST_TRANS   3
#define FS_ETPU_CRANK_SECOND_TRANS   4
#define FS_ETPU_CRANK_TEST_POSSIBLE_GAP   5
#define FS_ETPU_CRANK_VERIFY_GAP   6
#define FS_ETPU_CRANK_COUNTING   7
#define FS_ETPU_CRANK_COUNTING_TIMEOUT   8
#define FS_ETPU_CRANK_TOOTH_BEFORE_GAP   9
#define FS_ETPU_CRANK_TOOTH_BEFORE_GAP_NOT_HRM   10
#define FS_ETPU_CRANK_ADDITIONAL_TOOTH   10
#define FS_ETPU_CRANK_TOOTH_AFTER_GAP   11
#define FS_ETPU_ENG_POS_SEEK   0
#define FS_ETPU_ENG_POS_FIRST_HALF_SYNC   1
#define FS_ETPU_ENG_POS_PRE_FULL_SYNC   2
#define FS_ETPU_ENG_POS_FULL_SYNC   3


Define Documentation

#define FS_ETPU_CRANK_ADDITIONAL_TOOTH   10
 

Definition at line 97 of file etpu_crank_auto.h.

#define FS_ETPU_CRANK_BLANK_TEETH   2
 

Definition at line 88 of file etpu_crank_auto.h.

#define FS_ETPU_CRANK_BLANK_TIME   1
 

Definition at line 87 of file etpu_crank_auto.h.

#define FS_ETPU_CRANK_COUNTING   7
 

Definition at line 93 of file etpu_crank_auto.h.

#define FS_ETPU_CRANK_COUNTING_TIMEOUT   8
 

Definition at line 94 of file etpu_crank_auto.h.

#define FS_ETPU_CRANK_ERR_ADD_TOOTH_NOT_FOUND   128
 

Definition at line 83 of file etpu_crank_auto.h.

#define FS_ETPU_CRANK_ERR_INTERNAL   16
 

Definition at line 79 of file etpu_crank_auto.h.

#define FS_ETPU_CRANK_ERR_INVALID_MATCH   2
 

Definition at line 76 of file etpu_crank_auto.h.

#define FS_ETPU_CRANK_ERR_INVALID_TRANS   1
 

Definition at line 75 of file etpu_crank_auto.h.

#define FS_ETPU_CRANK_ERR_NO_ERROR   0
 

Definition at line 74 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_init().

#define FS_ETPU_CRANK_ERR_STALL   8
 

Definition at line 78 of file etpu_crank_auto.h.

#define FS_ETPU_CRANK_ERR_TIMEOUT   4
 

Definition at line 77 of file etpu_crank_auto.h.

#define FS_ETPU_CRANK_ERR_TIMEOUT_AFTER_GAP   64
 

Definition at line 81 of file etpu_crank_auto.h.

#define FS_ETPU_CRANK_ERR_TIMEOUT_BEFORE_GAP   32
 

Definition at line 80 of file etpu_crank_auto.h.

#define FS_ETPU_CRANK_ERR_TOOTH_IN_GAP   128
 

Definition at line 82 of file etpu_crank_auto.h.

#define FS_ETPU_CRANK_FIRST_TRANS   3
 

Definition at line 89 of file etpu_crank_auto.h.

#define FS_ETPU_CRANK_FM0_USE_TRANS_FALLING   0
 

Definition at line 33 of file etpu_crank_auto.h.

#define FS_ETPU_CRANK_FM0_USE_TRANS_RISING   1
 

Definition at line 32 of file etpu_crank_auto.h.

#define FS_ETPU_CRANK_FM1_TOOTH_PERIODS_LOG_OFF   (0)
 

Definition at line 34 of file etpu_crank_auto.h.

#define FS_ETPU_CRANK_FM1_TOOTH_PERIODS_LOG_ON   (1 << 1)
 

Definition at line 35 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_init().

#define FS_ETPU_CRANK_FUNCTION_NUMBER   1
 

Definition at line 22 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_init().

#define FS_ETPU_CRANK_HSR_INIT   7
 

Definition at line 28 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_init().

#define FS_ETPU_CRANK_HSR_SET_SYNC   1
 

Definition at line 29 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_set_sync().

#define FS_ETPU_CRANK_NUM_PARMS   0x50
 

Definition at line 24 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_init().

#define FS_ETPU_CRANK_OFFSET_ADDITIONAL_TOOTH_PERIOD   0x15
 

Definition at line 43 of file etpu_crank_auto.h.

#define FS_ETPU_CRANK_OFFSET_BLANK_TEETH   0x18
 

Definition at line 63 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_config(), and fs_etpu_crank_init().

#define FS_ETPU_CRANK_OFFSET_BLANK_TIME   0x1
 

Definition at line 38 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_config(), and fs_etpu_crank_init().

#define FS_ETPU_CRANK_OFFSET_ERROR   0x20
 

Definition at line 65 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_get_states(), and fs_etpu_crank_init().

#define FS_ETPU_CRANK_OFFSET_FIRST_TOOTH_TIMEOUT   0x31
 

Definition at line 50 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_config(), and fs_etpu_crank_init().

#define FS_ETPU_CRANK_OFFSET_GAP_RATIO   0x1d
 

Definition at line 45 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_config(), and fs_etpu_crank_init().

#define FS_ETPU_CRANK_OFFSET_LAST_TOOTH_PERIOD   0x11
 

Definition at line 42 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_get_states(), and fs_etpu_crank_init().

#define FS_ETPU_CRANK_OFFSET_LAST_TOOTH_TCR1_TIME   0xd
 

Definition at line 41 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_init().

#define FS_ETPU_CRANK_OFFSET_LINK_1   0x38
 

Definition at line 52 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_init().

#define FS_ETPU_CRANK_OFFSET_LINK_2   0x3c
 

Definition at line 53 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_init().

#define FS_ETPU_CRANK_OFFSET_LINK_3   0x40
 

Definition at line 54 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_init().

#define FS_ETPU_CRANK_OFFSET_LINK_4   0x44
 

Definition at line 55 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_init().

#define FS_ETPU_CRANK_OFFSET_LINK_CAM   0x34
 

Definition at line 51 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_init().

#define FS_ETPU_CRANK_OFFSET_MISSCNT_MASK   0x4c
 

Definition at line 58 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_init().

#define FS_ETPU_CRANK_OFFSET_STATE   0x1c
 

Definition at line 64 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_get_states(), and fs_etpu_crank_init().

#define FS_ETPU_CRANK_OFFSET_TCR2_ADJUSTMENT   0x19
 

Definition at line 44 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_init(), and fs_etpu_crank_set_sync().

#define FS_ETPU_CRANK_OFFSET_TCR2_TICKS_PER_ADD_TOOTH   0x9
 

Definition at line 40 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_init().

#define FS_ETPU_CRANK_OFFSET_TCR2_TICKS_PER_TOOTH   0x5
 

Definition at line 39 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_init().

#define FS_ETPU_CRANK_OFFSET_TEETH_IN_GAP   0x4
 

Definition at line 57 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_init().

#define FS_ETPU_CRANK_OFFSET_TEETH_PER_CYCLE   0x8
 

Definition at line 59 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_init().

#define FS_ETPU_CRANK_OFFSET_TEETH_PER_SYNC   0xc
 

Definition at line 60 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_config(), and fs_etpu_crank_init().

#define FS_ETPU_CRANK_OFFSET_TEETH_TILL_GAP   0x0
 

Definition at line 56 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_init().

#define FS_ETPU_CRANK_OFFSET_TOOTH_COUNTER_CYCLE   0x14
 

Definition at line 62 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_get_states(), and fs_etpu_crank_init().

#define FS_ETPU_CRANK_OFFSET_TOOTH_COUNTER_GAP   0x10
 

Definition at line 61 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_get_states(), and fs_etpu_crank_init().

#define FS_ETPU_CRANK_OFFSET_TOOTH_PERIOD_LOG   0x49
 

Definition at line 66 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_init().

#define FS_ETPU_CRANK_OFFSET_WIN_RATIO_ACROSS_GAP   0x25
 

Definition at line 47 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_config(), and fs_etpu_crank_init().

#define FS_ETPU_CRANK_OFFSET_WIN_RATIO_AFTER_GAP   0x29
 

Definition at line 48 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_config(), and fs_etpu_crank_init().

#define FS_ETPU_CRANK_OFFSET_WIN_RATIO_AFTER_TIMEOUT   0x2d
 

Definition at line 49 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_config(), and fs_etpu_crank_init().

#define FS_ETPU_CRANK_OFFSET_WIN_RATIO_NORMAL   0x21
 

Definition at line 46 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_config(), and fs_etpu_crank_init().

#define FS_ETPU_CRANK_SECOND_TRANS   4
 

Definition at line 90 of file etpu_crank_auto.h.

#define FS_ETPU_CRANK_SEEK   0
 

Definition at line 86 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_init().

#define FS_ETPU_CRANK_TABLE_SELECT   1
 

Definition at line 23 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_init().

#define FS_ETPU_CRANK_TEST_POSSIBLE_GAP   5
 

Definition at line 91 of file etpu_crank_auto.h.

#define FS_ETPU_CRANK_TOOTH_AFTER_GAP   11
 

Definition at line 98 of file etpu_crank_auto.h.

#define FS_ETPU_CRANK_TOOTH_BEFORE_GAP   9
 

Definition at line 95 of file etpu_crank_auto.h.

#define FS_ETPU_CRANK_TOOTH_BEFORE_GAP_NOT_HRM   10
 

Definition at line 96 of file etpu_crank_auto.h.

#define FS_ETPU_CRANK_VERIFY_GAP   6
 

Definition at line 92 of file etpu_crank_auto.h.

#define FS_ETPU_ENG_POS_FIRST_HALF_SYNC   1
 

Definition at line 102 of file etpu_crank_auto.h.

#define FS_ETPU_ENG_POS_FULL_SYNC   3
 

Definition at line 104 of file etpu_crank_auto.h.

#define FS_ETPU_ENG_POS_PRE_FULL_SYNC   2
 

Definition at line 103 of file etpu_crank_auto.h.

#define FS_ETPU_ENG_POS_SEEK   0
 

Definition at line 101 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_init().

#define FS_ETPU_OFFSET_ENG_CYCLE_TCR2_START   0x29
 

Definition at line 71 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_get_angle_reseting(), and fs_etpu_crank_init().

#define FS_ETPU_OFFSET_ENG_CYCLE_TCR2_TICKS   0x25
 

Definition at line 70 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_get_angle_reseting(), and fs_etpu_crank_init().

#define FS_ETPU_OFFSET_ENG_POS_STATE   0x20
 

Definition at line 69 of file etpu_crank_auto.h.

Referenced by fs_etpu_crank_get_states(), and fs_etpu_crank_init().