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

tg_instance_t Struct Reference

#include <etpu_tg.h>


Detailed Description

A structure to represent an instance of TG. It includes static TG initialization items.

Definition at line 38 of file etpu_tg.h.

Data Fields

const uint8_t chan_num_crank
const uint8_t chan_num_cam
const uint8_t priority
const uint8_t polarity_crank
const uint8_t polarity_cam
const uint8_t teeth_till_gap
const uint8_t teeth_in_gap
const uint8_t teeth_per_cycle
const uint8_t cam_edge_count
const uint8_t * p_cam_edge_tooth
uint32_t * cpba
uint8_t * cpba8_cam_edge_tooth


Field Documentation

const uint8_t tg_instance_t::cam_edge_count
 

The count of Cam edges within an engine cycle.

Definition at line 59 of file etpu_tg.h.

Referenced by fs_etpu_tg_init().

const uint8_t tg_instance_t::chan_num_cam
 

Channel number of the TG Cam channel.

Definition at line 41 of file etpu_tg.h.

Referenced by fs_etpu_tg_init().

const uint8_t tg_instance_t::chan_num_crank
 

Channel number of the TG Crank channel.

Definition at line 40 of file etpu_tg.h.

Referenced by fs_etpu_tg_init().

uint32_t* tg_instance_t::cpba
 

Channel parameter base address. Set cpba = 0 to use automatic allocation of eTPU DATA RAM for TG channel parameters using the eTPU utility function fs_etpu_malloc (recommanded), or assign the cpba manually by an address where the TG channel parameter space will start from, e.g. 0xC3FC8100.

Definition at line 63 of file etpu_tg.h.

Referenced by fs_etpu_tg_config(), fs_etpu_tg_get_states(), and fs_etpu_tg_init().

uint8_t* tg_instance_t::cpba8_cam_edge_tooth
 

Base address of the array of tooth numbers where the cam signal toggles in eTPU DATA RAM. Set cpba_cam_edge_tooth = 0 to use automatic allocation of the eTPU DATA RAM space corresponding to the cam_edge_count value, using the eTPU utility function fs_etpu_malloc (recommanded), or assign the cpba_injections manually by an address, e.g. 0xC3FC8100.

Definition at line 68 of file etpu_tg.h.

Referenced by fs_etpu_tg_init().

const uint8_t* tg_instance_t::p_cam_edge_tooth
 

Pointer to the first item of an array of tooth numbers where the cam signal toggles

Definition at line 61 of file etpu_tg.h.

Referenced by fs_etpu_tg_init().

const uint8_t tg_instance_t::polarity_cam
 

Initial cam output polarity. It can be one of:

Definition at line 47 of file etpu_tg.h.

Referenced by fs_etpu_tg_init().

const uint8_t tg_instance_t::polarity_crank
 

Initial Crank output polarity. It can be one of:

Definition at line 43 of file etpu_tg.h.

Referenced by fs_etpu_tg_init().

const uint8_t tg_instance_t::priority
 

Channel priority for the TG channel.

Definition at line 42 of file etpu_tg.h.

Referenced by fs_etpu_tg_init().

const uint8_t tg_instance_t::teeth_in_gap
 

A number of missing teeth in one gap. This should be assigned a value of 1, 2 or 3.

Definition at line 54 of file etpu_tg.h.

Referenced by fs_etpu_tg_init().

const uint8_t tg_instance_t::teeth_per_cycle
 

A number of teeth (including missing teeth in gap) per an engine cycle (720 degrees). It must be a multiple of (teeth_till_gap + teeth_in_gap).

Definition at line 56 of file etpu_tg.h.

Referenced by fs_etpu_tg_init().

const uint8_t tg_instance_t::teeth_till_gap
 

A number of physical teeth between 2 gaps. This is the number of physical teeth on the crank wheel divided by the number of (equally spaced) gaps on the wheel.

Definition at line 51 of file etpu_tg.h.

Referenced by fs_etpu_tg_init().


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