Data Structures | Typedefs | Functions
SPEED_FR

Data Structures

struct  _SPDFR_obj_
 

Typedefs

typedef struct _SPDFR_obj_ SPDFR_Obj
 
typedef struct _SPDFR_obj_SPDFR_Handle
 Defines the SPDFR handle. More...
 

Functions

SPDFR_Handle SPDFR_init (void *pMemory, const size_t numBytes)
 Set the SPDFR controller. More...
 
void SPDFR_reset (SPDFR_Handle handle)
 Set the SPDFR controller. More...
 
void SPDFR_setParams (SPDFR_Handle handle, const USER_Params *pUserParams)
 Set the SPDFR controller. More...
 
static float32_t SPDFR_getSpeedHz (SPDFR_Handle handle)
 Set the SPDFR controller. More...
 
static void SPDFR_run (SPDFR_Handle handle, float32_t theta)
 Set the SPDFR controller. More...
 

Detailed Description

Typedef Documentation

◆ SPDFR_Obj

typedef struct _SPDFR_obj_ SPDFR_Obj

◆ SPDFR_Handle

typedef struct _SPDFR_obj_* SPDFR_Handle

Defines the SPDFR handle.

Function Documentation

◆ SPDFR_init()

SPDFR_Handle SPDFR_init ( void *  pMemory,
const size_t  numBytes 
)

Set the SPDFR controller.

Parameters
[in]handleThe SPDFR controller handle

◆ SPDFR_reset()

void SPDFR_reset ( SPDFR_Handle  handle)

Set the SPDFR controller.

Parameters
[in]handleThe ESMO controller handle

◆ SPDFR_setParams()

void SPDFR_setParams ( SPDFR_Handle  handle,
const USER_Params pUserParams 
)

Set the SPDFR controller.

Parameters
[in]handleThe SPDFR controller handle

◆ SPDFR_getSpeedHz()

static float32_t SPDFR_getSpeedHz ( SPDFR_Handle  handle)
inlinestatic

Set the SPDFR controller.

Parameters
[in]handleThe SPDFR controller handle

References _SPDFR_obj_::speed_Hz.

◆ SPDFR_run()

static void SPDFR_run ( SPDFR_Handle  handle,
float32_t  theta 
)
inlinestatic

Set the SPDFR controller.

Parameters
[in]handleThe SPDFR controller handle

References _SPDFR_obj_::K2, _SPDFR_obj_::K3, MATH_ONE_OVER_TWO_PI, _SPDFR_obj_::scaleFreq, _SPDFR_obj_::speed_Hz, _SPDFR_obj_::speed_pu, _SPDFR_obj_::theta, and _SPDFR_obj_::thetaPrev.


Copyright 2023, Texas Instruments Incorporated