foc/src/Foc/type.h

26 lines
372 B
C
Raw Normal View History

2023-08-23 03:05:48 +00:00
#include "stm32f407xx.h"
/**
* @brief Two components q, d type definition
*/
typedef struct
{
int16_t q;
int16_t d;
} qd_t;
/**
* @brief Two components a,b type definition
*/
typedef struct
{
int16_t a;
int16_t b;
} ab_t;
/**
* @brief Two components alpha, beta type definition
*/
typedef struct
{
int16_t alpha;
int16_t beta;
} alphabeta_t;