motorcontroldemo_028/Vinclude/V_Excitation.h
2019-07-29 08:18:57 +03:00

66 lines
1.4 KiB
C

/*!
Copyright 2017 ÀÎ "ÍÈÈÝÒ" è ÎÎÎ "ÍÏÔ ÂÅÊÒÎÐ"
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
\file V_excitation.h
\brief Ìîäóëü âîçáóäèòåëÿ
\author ÎÎÎ "ÍÏÔ Âåêòîð". http://motorcontrol.ru
\version v 1.0 28/03/2017
\defgroup V_excitation
@{*/
#ifndef V_excitation_H
#define V_excitation_H
#ifdef __cplusplus
extern "C" {
#endif
/*! \class Texcitation
\brief Ìîäóëü âîçáóäèòåëÿ
Êëàññ \a Texcitation, îñíîâàííûé íà ñòðóêòóðå Sexcitation, ïðåäñòàâëÿåò
ñîáîé ìîäóëü âîçáóäèòåëÿ.
*/
//! ñì. Texcitation
typedef struct Sexcitation{ long ref; //!< Çàäàíèå
void (*calc)(struct Sexcitation*);//!< Pointer to calculation function
}Texcitation;
//! Èíèöèàëèçàòîð ïî-óìîë÷àíèþ
#define excitation_DEFAULTS { 0, \
excitation_calc}
//! \memberof TRelayReg
void excitation_calc(Texcitation*);
#ifdef __cplusplus
}
#endif
#endif
/*@}*/