matlab_23550/Inu/Src/N12_Libs/rmp_cntl_v1.h
Razvalyaev 7e0063eee0 #3 Скомпилилось, но пока ничего не вызывается
Все основные файлы подтянуты без изменений

Изменены (только папка main_matlab):
- заглушки для ненужных функций (main_matlab.c)
- iq библиотека (IQmathLib_matlab.c)
- библиотеки DSP281x
2025-01-13 11:09:58 +03:00

49 lines
2.2 KiB
C

/* =================================================================================
File name: RMP3CNTL.H (IQ version)
Originator: Digital Control Systems Group
Texas Instruments
Description:
Header file containing constants, data type definitions, and
function prototypes for the RMP3 module.
=====================================================================================
History:
-------------------------------------------------------------------------------------
04-15-2005 Version 3.20
------------------------------------------------------------------------------*/
#ifndef __RMP_CNTL_V1_H__
#define __RMP_CNTL_V1_H__
typedef struct { _iq DesiredInput; // Input: Desired ramp input (Q0) - independently with global Q
_iq RampPlus; // Parameter: Ramp3 delay expressed in no of sampling period (Q0) - independently with global Q
_iq RampMinus; // Variable: Counter for rmp3 delay (Q0) - independently with global Q
_iq Out; // Output: Ramp3 output (Q0) - independently with global Q
_iq RampLowLimit; // Parameter: Minimum ramp output (Q0) - independently with global Q
_iq RampHighLimit; // Parameter: Minimum ramp output (Q0) - independently with global Q
//Uint32 RampDoneFlag; // Output: Flag output (Q0) - independently with global Q
void (*calc)(); // Pointer to calculation function
} RMP_V1;
typedef RMP_V1 *RMP_V1_handle;
/*-----------------------------------------------------------------------------
Default initalizer for the RMP3 object.
-----------------------------------------------------------------------------*/
#define RMP_V1_DEFAULTS { 0, \
0, \
0, \
0, \
0, \
0x00000050, \
(void (*)())rmp_cntl_v1_calc }
/*------------------------------------------------------------------------------
Prototypes for the functions in RMP3CNTL.C
------------------------------------------------------------------------------*/
void rmp_cntl_v1_calc(RMP_V1_handle);
#endif // __RMP3_CNTL_H__