![]() |
Definition in file etpu_cam.h.
#include "etpu_util.h"
#include "etpu_cam_auto.h"
Go to the source code of this file.
Defines | |
#define | FS_ETPU_CAM_LOG_FALLING FS_ETPU_CAM_FM0_LOG_FALLING |
#define | FS_ETPU_CAM_LOG_RISING FS_ETPU_CAM_FM1_LOG_RISING |
#define | FS_ETPU_CAM_LOG_BOTH (FS_ETPU_CAM_FM0_LOG_FALLING + FS_ETPU_CAM_FM1_LOG_RISING) |
Functions | |
uint32_t | fs_etpu_cam_init (struct cam_instance_t *p_cam_instance, struct cam_config_t *p_cam_config) |
This function initializes eTPU channels to run CAM function. | |
uint32_t | fs_etpu_cam_config (struct cam_instance_t *p_cam_instance, struct cam_config_t *p_cam_config) |
This function changes the CAM configuration. | |
uint32_t | fs_etpu_cam_get_states (struct cam_instance_t *p_cam_instance, struct cam_states_t *p_cam_states) |
This function reads state parameter values of the CAM function. | |
uint32_t * | fs_etpu_cam_copy_log (struct cam_instance_t *p_cam_instance, uint32_t *p_cam_log) |
This function copies the CAM log into another array in RAM. | |
uint32_t | fs_etpu_cam_reset_log (struct cam_instance_t *p_cam_instance) |
This function resets the index to the CAM log so that the next detected transition is logged to the first position. Before that, the internal log_count variable is set to the number of logged transitions before the reset. If this number is 0 the channel interrupt is raised together with setting the error FS_ETPU_CAM_ERROR_ZERO_TRANS. |
|
Definition at line 35 of file etpu_cam.h. |
|
CAM Mode Definition at line 33 of file etpu_cam.h. |
|
Definition at line 34 of file etpu_cam.h. |
|
This function changes the CAM configuration.
Definition at line 173 of file etpu_cam.c. References cam_instance_t::chan_num, and cam_config_t::mode. |
|
This function copies the CAM log into another array in RAM.
Definition at line 240 of file etpu_cam.c. References cam_instance_t::cpba_log, and cam_instance_t::log_size. |
|
This function reads state parameter values of the CAM function.
Definition at line 201 of file etpu_cam.c. References cam_instance_t::cpba, cam_states_t::error, FS_ETPU_CAM_OFFSET_ERROR, FS_ETPU_CAM_OFFSET_LOG_COUNT, FS_ETPU_CAM_OFFSET_LOG_IDX, cam_states_t::log_count, and cam_states_t::log_idx. |
|
This function initializes eTPU channels to run CAM function.
Definition at line 89 of file etpu_cam.c. References cam_instance_t::chan_num, cam_instance_t::cpba, cam_instance_t::cpba_log, FS_ETPU_CAM_ERROR_NO, FS_ETPU_CAM_FUNCTION_NUMBER, FS_ETPU_CAM_HSR_INIT, FS_ETPU_CAM_NUM_PARMS, FS_ETPU_CAM_OFFSET_ERROR, FS_ETPU_CAM_OFFSET_LOG, FS_ETPU_CAM_OFFSET_LOG_COUNT, FS_ETPU_CAM_OFFSET_LOG_IDX, FS_ETPU_CAM_OFFSET_LOG_SIZE, FS_ETPU_CAM_TABLE_SELECT, fs_etpu_data_ram_start, cam_instance_t::log_size, cam_config_t::mode, and cam_instance_t::priority. |
|
This function resets the index to the CAM log so that the next detected transition is logged to the first position. Before that, the internal log_count variable is set to the number of logged transitions before the reset. If this number is 0 the channel interrupt is raised together with setting the error FS_ETPU_CAM_ERROR_ZERO_TRANS.
Definition at line 286 of file etpu_cam.c. References cam_instance_t::chan_num, and FS_ETPU_CAM_HSR_RESET. |
Generated by ![]() |
© Freescale Semiconductor Inc. 2004 - 2012. All Rights Reserved. |