
/****************************************************************
* WARNING this file is automatically generated DO NOT EDIT IT!   
*                                                                
* This file provides an interface between eTPU code and CPU      
* code. All references to the RSLV function should be made with    
* information in this file. This allows only symbolic            
* information to be referenced which allows the eTPU code to be  
* optimized without effecting the CPU code.                      
*****************************************************************/
#ifndef _ETPU_RSLV_AUTO_H_
#define _ETPU_RSLV_AUTO_H_

/****************************************************************
* Function Configuration Information.
****************************************************************/
#define FS_ETPU_RSLV_FUNCTION_NUMBER        12 
#define FS_ETPU_RSLV_TABLE_SELECT           0 
#define FS_ETPU_RSLV_NUM_PARMS              0x00E0 

/****************************************************************
* Host Service Request Definitions.
****************************************************************/
#define FS_ETPU_RSLV_INIT                   7
#define FS_ETPU_RSLV_STOP                   6
#define FS_ETPU_RSLV_CMPT                   5
#define FS_ETPU_RSLV_RST                    4
#define FS_ETPU_RSLV_UPD                    3
#define FS_ETPU_RSLV_TST                    2

/****************************************************************
* Parameter Definitions.
****************************************************************/
#define FS_ETPU_RSLV_PERIOD_OFFSET          0x0001
#define FS_ETPU_RSLV_DUTY_OFFSET            0x0005
#define FS_ETPU_RSLV_DELAY_OFFSET           0x0009
#define FS_ETPU_RSLV_START_OFFSET_OFFSET    0x000D
#define FS_ETPU_RSLV_SAMPLE_DELAY_OFFSET    0x0011
#define FS_ETPU_RSLV_TIME_SAMPLE_OFFSET     0x0081
#define FS_ETPU_RSLV_GAIN_SIN_OFFSET        0x0019
#define FS_ETPU_RSLV_GAIN_COS_OFFSET        0x001D
#define FS_ETPU_RSLV_DC_OFFSET_SIN_OFFSET   0x0021
#define FS_ETPU_RSLV_DC_OFFSET_COS_OFFSET   0x0025
#define FS_ETPU_RSLV_LINK_CHAN_OFFSET       0x0000
#define FS_ETPU_RSLV_RATE_IRQ_OFFSET        0x0029
#define FS_ETPU_RSLV_RATE_LINK_OFFSET       0x002D
#define FS_ETPU_RSLV_MC_SIN_LUT             0x0004
#define FS_ETPU_RSLV_P_MC_SIN_LT_OFFSET     0x0109
#define FS_ETPU_RSLV_SINA_SMPL_OFFSET       0x0041
#define FS_ETPU_RSLV_SINB_SMPL_OFFSET       0x0049
#define FS_ETPU_RSLV_COSA_SMPL_OFFSET       0x0045
#define FS_ETPU_RSLV_COSB_SMPL_OFFSET       0x004D
#define FS_ETPU_RSLV_SINA_OFFSET            0x0051
#define FS_ETPU_RSLV_SINB_OFFSET            0x0055
#define FS_ETPU_RSLV_COSA_OFFSET            0x0059
#define FS_ETPU_RSLV_COSB_OFFSET            0x005D
#define FS_ETPU_RSLV_SIN_MEAN_OFFSET        0x0061
#define FS_ETPU_RSLV_COS_MEAN_OFFSET        0x0065
#define FS_ETPU_RSLV_UNIT_CIRCLE_OFFSET     0x0069
#define FS_ETPU_RSLV_SINA_MIN_OFFSET        0x006D
#define FS_ETPU_RSLV_SINA_MAX_OFFSET        0x0071
#define FS_ETPU_RSLV_COSA_MIN_OFFSET        0x0075
#define FS_ETPU_RSLV_COSA_MAX_OFFSET        0x0079
#define FS_ETPU_RSLV_K1_D_OFFSET            0x0031
#define FS_ETPU_RSLV_K1_SCALE_OFFSET        0x0035
#define FS_ETPU_RSLV_K2_D_OFFSET            0x0039
#define FS_ETPU_RSLV_K2_SCALE_OFFSET        0x003D
#define FS_ETPU_RSLV_RESANGLE_OFFSET        0x0085
#define FS_ETPU_RSLV_RESANGLEWITHOFFSET_OFFSET  0x0089
#define FS_ETPU_RSLV_INTEGACC1_OFFSET       0x007D
#define FS_ETPU_RSLV_ERROR_OFFSET           0x0091
#define FS_ETPU_RSLV_RESOFFSET_OFFSET       0x0015
#define FS_ETPU_RSLV_RESREVOLUTIONS_OFFSET  0x008D
#define FS_ETPU_RSLV_RESANGLEPREV_OFFSET    0x0095
#define FS_ETPU_RSLV_INTEGACC2_OFFSET       0x0099
#define FS_ETPU_RSLV_STATE_OFFSET           0x009D
#define FS_ETPU_RSLV_DIAGS_ACTUAL_OFFSET   0x00A1
#define FS_ETPU_RSLV_DIAGS_CUMULATIVE_OFFSET  0x00A5
#define FS_ETPU_RSLV_ERROR_MAX_OFFSET       0x00A9
#define FS_ETPU_RSLV_AMPL_MAX_OFFSET        0x00AD
#define FS_ETPU_RSLV_ZERO_MAX_OFFSET        0x00B1
#define FS_ETPU_RSLV_MEAN_MAX_OFFSET        0x00B5
#define FS_ETPU_RSLV_UNIT_CIRCLE_MAX_OFFSET  0x00B9
#define FS_ETPU_RSLV_UNIT_CIRCLE_MIN_OFFSET  0x00BD

/****************************************************************
* Value Definitions.
****************************************************************/
#define FS_ETPU_RSLV_STATE_DATAIN           1 
#define FS_ETPU_RSLV_STATE_DATAOUT          2 
#define FS_ETPU_RSLV_STATE_TIMEBASE_MSK     48 
#define FS_ETPU_RSLV_STATE_TIMEBASE_TCR1    0 
#define FS_ETPU_RSLV_STATE_TIMEBASE_TCR2    16 
#define FS_ETPU_RSLV_STATE_CONTROL_MSK      8192 
#define FS_ETPU_RSLV_STATE_CONTROL_MASTER   8192 
#define FS_ETPU_RSLV_STATE_CONTROL_SLAVE    0 
#define FS_ETPU_RSLV_STATE_START_MSK        512 
#define FS_ETPU_RSLV_STATE_START_REL        0 
#define FS_ETPU_RSLV_STATE_START_ABS        512 
#define FS_ETPU_RSLV_STATE_PERIODIC_MSK     4096 
#define FS_ETPU_RSLV_STATE_PERIODIC         4096 
#define FS_ETPU_RSLV_STATE_NOPERIODIC       0 
#define FS_ETPU_RSLV_STATE_ONREQUEST        0 
#define FS_ETPU_RSLV_STATE_LINK_MSK         16384 
#define FS_ETPU_RSLV_STATE_LINK             16384 
#define FS_ETPU_RSLV_STATE_NOLINK           0 
#define FS_ETPU_RSLV_STATE_DIGNOSTICS_MSK   1024 
#define FS_ETPU_RSLV_STATE_DIGNOSTICS_ON    1024 
#define FS_ETPU_RSLV_STATE_DIGNOSTICS_OFF   0 

#define FS_ETPU_RSLV_DIAG_SINA_ZERO         1      
#define FS_ETPU_RSLV_DIAG_SINA_POS          2       
#define FS_ETPU_RSLV_DIAG_SINA_NEG          4       
#define FS_ETPU_RSLV_DIAG_SINA_AMPL         8      
#define FS_ETPU_RSLV_DIAG_COSA_ZERO         16      
#define FS_ETPU_RSLV_DIAG_COSA_POS          32       
#define FS_ETPU_RSLV_DIAG_COSA_NEG          64       
#define FS_ETPU_RSLV_DIAG_COSA_AMPL         128      
#define FS_ETPU_RSLV_DIAG_SIN_MEAN_NEG      256   
#define FS_ETPU_RSLV_DIAG_SIN_MEAN_POS      512   
#define FS_ETPU_RSLV_DIAG_COS_MEAN_NEG      1024   
#define FS_ETPU_RSLV_DIAG_COS_MEAN_POS      2048   
#define FS_ETPU_RSLV_DIAG_UNIT_CIRCLE_MIN   4096
#define FS_ETPU_RSLV_DIAG_UNIT_CIRCLE_MAX   8192
#define FS_ETPU_RSLV_DIAG_OBSERVER_ERROR    16384 

#endif
