![]() |
Definition in file etpu_spark.h.
#include "etpu_util.h"
#include "etpu_spark_auto.h"
Go to the source code of this file.
Functions | |
uint32_t | fs_etpu_spark_init (struct spark_instance_t *p_spark_instance, struct spark_config_t *p_spark_config) |
This function initializes eTPU channels to run SPARK function. | |
uint32_t | fs_etpu_spark_config (struct spark_instance_t *p_spark_instance, struct spark_config_t *p_spark_config) |
This function changes the SPARK configuration. | |
uint32_t | fs_etpu_spark_get_states (struct spark_instance_t *p_spark_instance, struct spark_states_t *p_spark_states) |
This function reads SPARK state variables, including error flags, and clears the eTPU error after reading. |
|
This function changes the SPARK configuration.
Definition at line 216 of file etpu_spark.c. References spark_config_t::angle_offset_recalc, spark_instance_t::chan_num, spark_instance_t::cpba, spark_instance_t::cpba_single_spark, single_spark_config_t::dwell_time, spark_config_t::dwell_time_max, spark_config_t::dwell_time_min, single_spark_config_t::end_angle, FS_ETPU_SINGLE_SPARK_OFFSET_DWELL_TIME, FS_ETPU_SINGLE_SPARK_OFFSET_END_ANGLE, FS_ETPU_SINGLE_SPARK_OFFSET_MULTI_PULSE_COUNT, FS_ETPU_SINGLE_SPARK_STRUCT_SIZE, FS_ETPU_SPARK_HSR_UPDATE, FS_ETPU_SPARK_OFFSET_ANGLE_OFFSET_RECALC, FS_ETPU_SPARK_OFFSET_DWELL_TIME_MAX, FS_ETPU_SPARK_OFFSET_DWELL_TIME_MIN, FS_ETPU_SPARK_OFFSET_GENERATION_DISABLE, FS_ETPU_SPARK_OFFSET_MULTI_OFF_TIME, FS_ETPU_SPARK_OFFSET_MULTI_ON_TIME, FS_ETPU_SPARK_OFFSET_SPARK_COUNT, spark_config_t::generation_disable, spark_config_t::multi_off_time, spark_config_t::multi_on_time, single_spark_config_t::multi_pulse_count, spark_config_t::p_single_spark_config, and spark_config_t::spark_count. |
|
This function reads SPARK state variables, including error flags, and clears the eTPU error after reading.
Definition at line 290 of file etpu_spark.c. References spark_instance_t::cpba, spark_states_t::dwell_time_applied, spark_states_t::error, FS_ETPU_SPARK_OFFSET_DWELL_TIME_APPLIED, and FS_ETPU_SPARK_OFFSET_ERROR. |
|
Generated by ![]() |
© Freescale Semiconductor Inc. 2004 - 2012. All Rights Reserved. |