MCUXpresso SDK API Reference Manual
Rev. 0
NXP Semiconductors
|
This document consists of sections titled with Driver Overview, Data Structures, Enumerations, Functions, etc., each with an overview list and detailed documentation. It is recommended to read the Driver Overview first for it includes a comprehensive description of the peripheral, driver and driver changes. Other sections give detailed information for APIs, enums, macros, etc., for your further reference.
Driver Overview | |
EVTG Peripheral and Driver Overview | |
Content including 1) peripheral features, work logic and work method; 2) driver design logic and use method; 3) typical use case. | |
The Driver Change Log | |
The current EVTG driver version is 2.0.0. | |
Data Structures | |
struct | evtg_aoi_outfilter_config_t |
The structure for configuring an AOI output filter sample. More... | |
struct | evtg_aoi_product_term_config_t |
The structure for configuring an AOI product term. More... | |
struct | evtg_aoi_config_t |
EVTG AOI configuration structure. More... | |
struct | evtg_config_t |
EVTG configuration covering all configurable fields. More... | |
Driver version | |
#define | FSL_EVTG_DRIVER_VERSION (MAKE_VERSION(2, 0, 0)) |
EVTG driver version 2.0.0. More... | |
Initialization Interfaces | |
void | EVTG_Init (EVTG_Type *base, evtg_index_t eEvtgIndex, evtg_config_t *psConfig) |
Initialize EVTG with a user configuration structure. More... | |
static void | EVTG_GetDefaultConfig (evtg_config_t *psConfig, evtg_flipflop_mode_t eFlipflopMode) |
Loads default values to the EVTG configuration structure. More... | |
Force Init Flipflop Interfaces | |
static void | EVTG_ForceFlipflopInitOutput (EVTG_Type *base, evtg_index_t eEvtgIndex, evtg_flipflop_init_output_t eFlipflopInitOutputValue) |
Force Flip-flop initial output value to be presented on flip-flop positive output. More... | |
Input Interfaces | |
static void | EVTG_SetProductTermInput (EVTG_Type *base, evtg_index_t eEvtgIndex, evtg_aoi_index_t eAOIIndex, evtg_aoi_product_term_t eProductTerm, evtg_input_index_t eInputIndex, evtg_aoi_input_config_t eInput) |
Configure each input value of AOI product term. More... | |
void | EVTG_ConfigAOIProductTerm (EVTG_Type *base, evtg_index_t eEvtgIndex, evtg_aoi_index_t eAOIIndex, evtg_aoi_product_term_t eProductTerm, evtg_aoi_product_term_config_t *psProductTermConfig) |
Configure AOI product term by initializing the product term configuration structure. More... | |
struct evtg_aoi_outfilter_config_t |
AOI output filter sample count represent the number of consecutive samples that must agree prior to the AOI output filter accepting an transition. AOI output filter sample period represent the sampling period (in IP bus clock cycles) of the AOI output signals. Each AOI output is sampled multiple times at the rate specified by this period.
For the modes with Filter function enabled, filter delay is "(FILT_CNT + 3) x FILT_PER + 2".
Data Fields | |
evtg_aoi_outfilter_count_t | eSampleCount |
EVTG AOI output filter sample count. More... | |
uint8_t | u8SamplePeriod |
EVTG AOI output filter sample period, within 0~255. More... | |
evtg_aoi_outfilter_count_t evtg_aoi_outfilter_config_t::eSampleCount |
refer to _evtg_aoi_outfilter_count.
uint8_t evtg_aoi_outfilter_config_t::u8SamplePeriod |
If sample period value is 0x00 (default), then the input filter is bypassed.
struct evtg_aoi_product_term_config_t |
Data Fields | |
evtg_aoi_input_config_t | eAInput: 2 |
Input A configuration. More... | |
evtg_aoi_input_config_t | eBInput: 2 |
Input B configuration. More... | |
evtg_aoi_input_config_t | eCInput: 2 |
Input C configuration. More... | |
evtg_aoi_input_config_t | eDInput: 2 |
Input D configuration. More... | |
evtg_aoi_input_config_t evtg_aoi_product_term_config_t::eAInput |
evtg_aoi_input_config_t evtg_aoi_product_term_config_t::eBInput |
evtg_aoi_input_config_t evtg_aoi_product_term_config_t::eCInput |
evtg_aoi_input_config_t evtg_aoi_product_term_config_t::eDInput |
struct evtg_aoi_config_t |
Data Fields | |
evtg_aoi_outfilter_config_t | sAOIOutFilterConfig |
EVTG AOI output filter sample configuration structure. More... | |
evtg_aoi_product_term_config_t | sProductTerm0 |
Configure AOI product term0. More... | |
evtg_aoi_product_term_config_t | sProductTerm1 |
Configure AOI product term1. More... | |
evtg_aoi_product_term_config_t | sProductTerm2 |
Configure AOI product term2. More... | |
evtg_aoi_product_term_config_t | sProductTerm3 |
Configure AOI product term3. More... | |
evtg_aoi_outfilter_config_t evtg_aoi_config_t::sAOIOutFilterConfig |
evtg_aoi_product_term_config_t evtg_aoi_config_t::sProductTerm0 |
evtg_aoi_product_term_config_t evtg_aoi_config_t::sProductTerm1 |
evtg_aoi_product_term_config_t evtg_aoi_config_t::sProductTerm2 |
evtg_aoi_product_term_config_t evtg_aoi_config_t::sProductTerm3 |
struct evtg_config_t |
Data Fields | |
bool | bEnableInputASync: 1 |
Enable/Disable EVTG A input synchronous with bus clk. More... | |
bool | bEnableInputBSync: 1 |
Enable/Disable EVTG B input synchronous with bus clk. More... | |
bool | bEnableInputCSync: 1 |
Enable/Disable EVTG C input synchronous with bus clk. More... | |
bool | bEnableInputDSync: 1 |
Enable/Disable EVTG D input synchronous with bus clk. More... | |
evtg_outfdbk_override_input_t | eOutfdbkOverideinput: 2 |
EVTG output feedback to EVTG input and replace one of the four inputs. More... | |
evtg_flipflop_mode_t | eFlipflopMode: 3 |
Flip-Flop can be configured as one of Bypass mode, RS trigger mode, T-FF mode, D-FF mode, JK-FF mode, Latch mode. More... | |
bool | bEnableFlipflopInitOutput: 1 |
Flip-flop initial output value enable/disable. More... | |
evtg_flipflop_init_output_t | eFlipflopInitOutputValue: 1 |
Flip-flop initial output value configuration. More... | |
evtg_aoi_config_t | sAOI0Config |
Configure EVTG AOI0. More... | |
evtg_aoi_config_t | sAOI1Config |
Configure EVTG AOI1. More... | |
bool evtg_config_t::bEnableInputASync |
bool evtg_config_t::bEnableInputBSync |
bool evtg_config_t::bEnableInputCSync |
bool evtg_config_t::bEnableInputDSync |
evtg_outfdbk_override_input_t evtg_config_t::eOutfdbkOverideinput |
evtg_flipflop_mode_t evtg_config_t::eFlipflopMode |
bool evtg_config_t::bEnableFlipflopInitOutput |
evtg_flipflop_init_output_t evtg_config_t::eFlipflopInitOutputValue |
evtg_aoi_config_t evtg_config_t::sAOI0Config |
evtg_aoi_config_t evtg_config_t::sAOI1Config |
#define FSL_EVTG_DRIVER_VERSION (MAKE_VERSION(2, 0, 0)) |
enum evtg_index_t |
enum evtg_input_index_t |
enum evtg_aoi_index_t |
When FF is configured as JK-FF mode, need EVTG_OUTA feedback to EVTG input and replace one of the four inputs.
Enumerator | |
---|---|
kEVTG_Output_OverrideInputA |
Replace input A. |
kEVTG_Output_OverrideInputB |
Replace input B. |
kEVTG_Output_OverrideInputC |
Replace input C. |
kEVTG_Output_OverrideInputD |
Replace input D. |
enum evtg_flipflop_mode_t |
void EVTG_Init | ( | EVTG_Type * | base, |
evtg_index_t | eEvtgIndex, | ||
evtg_config_t * | psConfig | ||
) |
base | EVTG base address. |
eEvtgIndex | EVTG instance index. |
psConfig | EVTG initial configuration structure pointer. |
|
inlinestatic |
The purpose of this API is to initialize the configuration structure to default value for EVTG_Init() to use. The Flip-Flop can be configured as Bypass mode, RS trigger mode, T-FF mode, D-FF mode, JK-FF mode, Latch mode. Please check RM INTC chapter for more details.
psConfig | EVTG initial configuration structure pointer. |
eFlipflopMode | EVTG flip flop mode. see @ ref _evtg_flipflop_mode |
|
inlinestatic |
base | EVTG base address. |
eEvtgIndex | EVTG instance index. |
eFlipflopInitOutput | EVTG flip-flop initial output control. see _evtg_flipflop_initoutput |
|
inlinestatic |
Each selected input term in each product term can be configured to produce a logical 0 or 1 or pass the true or complement of the selected event input. Adapt to some simple aoi expressions.
base | EVTG base address. |
eEvtgIndex | EVTG instance index. |
eAOIIndex | EVTG AOI index. see enum ref _evtg_aoi_index |
eProductTerm | EVTG product term index. |
eInputIndex | EVTG input index. |
eInput | EVTG input configuration with enum _evtg_aoi_input_config. |
void EVTG_ConfigAOIProductTerm | ( | EVTG_Type * | base, |
evtg_index_t | eEvtgIndex, | ||
evtg_aoi_index_t | eAOIIndex, | ||
evtg_aoi_product_term_t | eProductTerm, | ||
evtg_aoi_product_term_config_t * | psProductTermConfig | ||
) |
base | EVTG base address. |
eEvtgIndex | EVTG instance index. |
eAOIIndex | EVTG AOI index. see enum _evtg_aoi_index |
eProductTerm | EVTG AOI product term index. |
psProductTermConfig | Pointer to EVTG product term configuration structure. see ref _evtg_aoi_product_term_config |