|
MotorWare f2806x Module API Documentation
|
Data Structures | |
| struct | _FW_Obj_ |
| Defines the field weakening (FW) data. More... | |
Macros | |
| #define | FW_INC_DELTA (1000) |
| Defines the Field Weakening (FW) increment delta correction. More... | |
| #define | FW_DEC_DELTA (1000) |
| Defines the Field Weakening (FW) decrement delta correction. More... | |
| #define | FW_NUM_ISR_TICKS_PER_CTRL_TICK (10) |
| Defines the number of isr ticks per field weakening clock tick. More... | |
Typedefs | |
| typedef struct _FW_Obj_ | FW_Obj |
| Defines the field weakening (FW) data. More... | |
| typedef struct _FW_Obj_ * | FW_Handle |
| Defines the FW handle. More... | |
Functions | |
| FW_Handle | FW_init (void *pMemory, const size_t numBytes) |
| Initializes the field weakening (FW) object. More... | |
| static void | FW_getMinMax (FW_Handle fwHandle, _iq *pOutMin, _iq *pOutMax) |
| Gets the minimum and maximum output value allowed in the FW controller. More... | |
| static void | FW_setMinMax (FW_Handle fwHandle, const _iq outMin, const _iq outMax) |
| Sets the minimum and maximum output value allowed in the FW controller. More... | |
| static void | FW_setDeltas (FW_Handle fwHandle, const _iq delta_inc, const _iq delta_dec) |
| Configures the deltas of the field weakening (FW) object. More... | |
| static void | FW_setNumIsrTicksPerFwTick (FW_Handle fwHandle, const uint32_t numIsrTicksPerFwTick) |
| Configures the number of ISR ticks per field weakening tick of the field weakening (FW) object. More... | |
| static uint32_t | FW_getNumIsrTicksPerFwTick (FW_Handle fwHandle) |
| Gets the number of ISR ticks per field weakening tick of the field weakening (FW) object. More... | |
| static void | FW_clearCounter (FW_Handle fwHandle) |
| Clears the counter of the field weakening (FW) object. More... | |
| static void | FW_incCounter (FW_Handle fwHandle) |
| Increments the counter of the field weakening (FW) object. More... | |
| static uint32_t | FW_getCounter (FW_Handle fwHandle) |
| Returns the counter of the field weakening (FW) object. More... | |
| static void | FW_setFlag_enableFw (FW_Handle fwHandle, const bool state) |
| Sets the enable flag of the field weakening (FW) object. More... | |
| static bool | FW_getFlag_enableFw (FW_Handle fwHandle) |
| Gets the enable flag of the field weakening (FW) object. More... | |
| static void | FW_setOutput (FW_Handle fwHandle, const _iq output) |
| Sets the start value in the FW controller. More... | |
| static _iq | FW_getOutput (FW_Handle fwHandle) |
| Gets the output value in the FW controller. More... | |
| static void | FW_run (FW_Handle fwHandle, const _iq refValue, const _iq fbackValue, _iq *pOutValue) |
| Runs the FW controller. More... | |
| struct _FW_Obj_ |
| Data Fields | ||
|---|---|---|
| uint32_t | counter_fw | the field weakening counter |
| _iq | delta_dec | the field weakening delta decrement of Id reference |
| _iq | delta_inc | the field weakening delta increment of Id reference |
| _iq | fbackValue | the feedback input value |
| bool | flag_enableFw | a flag to enable field weakening |
| uint32_t | numIsrTicksPerFwTick | Defines the number of isr clock ticks per field weakening clock tick. |
| _iq | outMax | the maximum output value allowed for the FW controller |
| _iq | outMin | the minimum output value allowed for the FW controller |
| _iq | output | the output of field weakening |
| _iq | refValue | the reference input value |
| #define FW_DEC_DELTA (1000) |
| #define FW_INC_DELTA (1000) |
| #define FW_NUM_ISR_TICKS_PER_CTRL_TICK (10) |
|
inlinestatic |
Clears the counter of the field weakening (FW) object.
| [in] | fwHandle | The Field Weakening handle |
Definition at line 198 of file fw.h.
References _FW_Obj_::counter_fw.
|
inlinestatic |
Returns the counter of the field weakening (FW) object.
| [in] | fwHandle | The Field Weakening handle |
Definition at line 222 of file fw.h.
References _FW_Obj_::counter_fw.
|
inlinestatic |
Gets the enable flag of the field weakening (FW) object.
| [in] | fwHandle | The Field Weakening handle |
Definition at line 246 of file fw.h.
References _FW_Obj_::flag_enableFw.
Gets the minimum and maximum output value allowed in the FW controller.
| [in] | fwHandle | The FW controller handle |
| [out] | pOutMin | The pointer to the minimum output value allowed |
| [out] | pOutMax | The pointer to the maximum output value allowed |
Definition at line 130 of file fw.h.
References _FW_Obj_::outMax, and _FW_Obj_::outMin.
|
inlinestatic |
Gets the number of ISR ticks per field weakening tick of the field weakening (FW) object.
| [in] | fwHandle | The Field Weakening handle |
Definition at line 188 of file fw.h.
References _FW_Obj_::numIsrTicksPerFwTick.
Gets the output value in the FW controller.
| [in] | fwHandle | The FW controller handle |
Definition at line 270 of file fw.h.
References _FW_Obj_::output.
|
inlinestatic |
Increments the counter of the field weakening (FW) object.
| [in] | fwHandle | The Field Weakening handle |
Definition at line 210 of file fw.h.
References _FW_Obj_::counter_fw.
| FW_Handle FW_init | ( | void * | pMemory, |
| const size_t | numBytes | ||
| ) |
|
inlinestatic |
Runs the FW controller.
| [in] | fwHandle | The FW controller handle |
| [in] | refValue | The reference value to the controller |
| [in] | fbackValue | The feedback value to the controller |
| [in] | pOutValue | The pointer to the controller output value |
Definition at line 283 of file fw.h.
References _IQsat, _FW_Obj_::delta_dec, _FW_Obj_::delta_inc, _FW_Obj_::fbackValue, _FW_Obj_::outMax, _FW_Obj_::outMin, _FW_Obj_::output, and _FW_Obj_::refValue.
|
inlinestatic |
Configures the deltas of the field weakening (FW) object.
| [in] | fwHandle | The Field Weakening handle |
| [in] | delta_inc | The delta increment to Id reference |
| [in] | delta_dec | The delta decrement to Id reference |
Definition at line 160 of file fw.h.
References _FW_Obj_::delta_dec, and _FW_Obj_::delta_inc.
|
inlinestatic |
Sets the enable flag of the field weakening (FW) object.
| [in] | fwHandle | The Field Weakening handle |
| [in] | state | The Field Weakening enable state |
Definition at line 233 of file fw.h.
References _FW_Obj_::flag_enableFw.
Sets the minimum and maximum output value allowed in the FW controller.
| [in] | fwHandle | The FW controller handle |
| [in] | outMin | The minimum output value allowed |
| [in] | outMax | The maximum output value allowed |
Definition at line 145 of file fw.h.
References _FW_Obj_::outMax, and _FW_Obj_::outMin.
|
inlinestatic |
Configures the number of ISR ticks per field weakening tick of the field weakening (FW) object.
| [in] | fwHandle | The Field Weakening handle |
| [in] | numIsrTicksPerFwTick | The number of ISR ticks per field weakening ticks |
Definition at line 175 of file fw.h.
References _FW_Obj_::numIsrTicksPerFwTick.
Sets the start value in the FW controller.
| [in] | fwHandle | The FW controller handle |
| [in] | output | The start value for the FW controller |
Definition at line 257 of file fw.h.
References _FW_Obj_::output.
1.8.9.1