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

etpu_cam_auto.h

Go to the documentation of this file.
00001 
00002 /**************************************************************** 
00003 * WARNING: This file is automatically generated. DO NOT EDIT IT!
00004 *
00005 * COPYRIGHT (c) Freescale 2004-2014, All Rights Reserved
00006 *
00007 * FILE NAME: etpu_cam_auto.h
00008 * ARCHITECTURE: eTPU2
00009 *
00010 * This file was generated by: etpuc_cam.c on Apr  9 2014 , 09:29:29
00011 *
00012 * This file provides an interface between eTPU code and CPU
00013 * code. All references to the eTPU function should be made with
00014 * information in this file. This allows only symbolic
00015 * information to be referenced which allows the eTPU code to be
00016 * optimized without effecting the CPU code.
00017 *****************************************************************/
00018 #ifndef _ETPU_CAM_AUTO_H_
00019 #define _ETPU_CAM_AUTO_H_
00020 
00021 /* Function Configuration Information */
00022 #define FS_ETPU_CAM_FUNCTION_NUMBER 0
00023 #define FS_ETPU_CAM_TABLE_SELECT 0
00024 #define FS_ETPU_CAM_NUM_PARMS 0x10
00025 
00026 
00027 /* Host Service Request Definitions */
00028 #define FS_ETPU_CAM_HSR_INIT 7
00029 #define FS_ETPU_CAM_HSR_RESET 1
00030 
00031 /* Function Mode Bit Definitions */
00032 #define FS_ETPU_CAM_FM0_LOG_FALLING (1 )
00033 #define FS_ETPU_CAM_FM1_LOG_RISING (1 << 1)
00034 
00035 /* Parameter Definitions */
00036 #define FS_ETPU_CAM_OFFSET_LOG  0xd
00037 #define FS_ETPU_CAM_OFFSET_LOG_SIZE  0x1
00038 #define FS_ETPU_CAM_OFFSET_LOG_IDX  0x5
00039 #define FS_ETPU_CAM_OFFSET_LOG_COUNT  0x9
00040 #define FS_ETPU_CAM_OFFSET_ERROR  0x0
00041 
00042 /* Cam Log */
00043 #define FS_ETPU_CAM_LOG_ANGLE_MASK  0x00FFFFFF
00044 #define FS_ETPU_CAM_LOG_TRANS_MASK  (1<<24)
00045 #define FS_ETPU_CAM_LOG_TRANS_FALLING  (0 <<24)
00046 #define FS_ETPU_CAM_LOG_TRANS_RISING  (1 <<24)
00047 
00048 /* Errors */
00049 #define FS_ETPU_CAM_ERROR_NO  0
00050 #define FS_ETPU_CAM_ERROR_ZERO_TRANS  1
00051 #define FS_ETPU_CAM_ERROR_LOG_OVERFLOW  2
00052 
00053 #endif