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

tg_config_t Struct Reference

#include <etpu_tg.h>


Detailed Description

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

Definition at line 79 of file etpu_tg.h.

Data Fields

int24_t tooth_period_target
fract24_t accel_ratio
uint8_t generation_disable


Field Documentation

fract24_t tg_config_t::accel_ratio
 

A signed fractional value (values 0 to 0x7FFFFF corresponds to 0 - 1.0) defining an exponencial acceleration/deceleration profile. On each tooth, the tooth_period_actual is updated by: accel_ratio * (tooth_period_target - tooth_period_actual)

Definition at line 83 of file etpu_tg.h.

Referenced by fs_etpu_tg_config(), and fs_etpu_tg_init().

uint8_t tg_config_t::generation_disable
 

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

Definition at line 88 of file etpu_tg.h.

Referenced by fs_etpu_tg_config(), and fs_etpu_tg_init().

int24_t tg_config_t::tooth_period_target
 

TG target Crank tooth period as a number of TCR1 ticks.

Definition at line 81 of file etpu_tg.h.

Referenced by fs_etpu_tg_config(), and fs_etpu_tg_init().


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