User Extension Function Call Parameters. More...
#include <power_control/drivers/npnz16b.h>
Data Fields | |
volatile uint16_t | ptrExtHookStartFunction |
Pointer to Function which will be called at the beginning of the control loop. More... | |
volatile uint16_t | ExtHookStartFunctionParam |
Parameter of function called (can be a variable or pointer to a data structure) More... | |
volatile uint16_t | ptrExtHookSourceFunction |
Pointer to Function which will be called after the source has been read and compensated. More... | |
volatile uint16_t | ExtHookSourceFunctionParam |
Parameter of function called (can be a variable or a pointer to a data structure) More... | |
volatile uint16_t | ptrExtHookPreAntiWindupFunction |
Pointer to Function which will be called after the compensation filter computation is complete and before anti-windup clamping is applied. More... | |
volatile uint16_t | ExtHookPreAntiWindupFunctionParam |
Parameter of function called (can be a variable or a pointer to a data structure) More... | |
volatile uint16_t | ptrExtHookTargetFunction |
Pointer to Function which will be called before the most recent control output is written to target. More... | |
volatile uint16_t | ExtHookTargetFunctionParam |
Parameter of function called (can be a variable or a pointer to a data structure) More... | |
volatile uint16_t | ptrExtHookStopFunction |
Pointer to Function which is called at the end of the control loop but will be bypassed when the control loop is disabled. More... | |
volatile uint16_t | ExtHookStopFunctionParam |
Parameter of function called (can be a variable or a pointer to a data structure) More... | |
volatile uint16_t | ptrExtHookEndFunction |
Pointer to Function which is called at the end of the control loop and will also be called when the control loop is disabled. More... | |
volatile uint16_t | ExtHookEndFunctionParam |
Parameter of function called (can be a variable or a pointer to a data structure) More... | |
Data Fields inherited from NPNZ16b_s | |
volatile struct NPNZ_STATUS_s | status |
Control Loop Status and Control flags. More... | |
volatile struct NPNZ_PORTS_s | Ports |
Controller input and output ports. More... | |
volatile struct NPNZ_FILTER_PARAMS_s | Filter |
Filter parameters such as pointer to history and coefficient arrays and number scaling. More... | |
volatile struct NPNZ_GAIN_CONTROL_s | GainControl |
Parameter section for advanced control options. More... | |
volatile struct NPNZ_LIMITS_s | Limits |
Input and output clamping values. More... | |
volatile struct NPNZ_ADC_TRGCTRL_s | ADCTriggerControl |
Automatic ADC trigger placement options for ADC Trigger A and B. More... | |
volatile struct NPNZ_DATA_PROVIDERS_s | DataProviders |
Automated data sources pushing recent data points to user-defined variables. More... | |
volatile struct NPNZ_EXTENSION_HOOKS_s | ExtensionHooks |
User extension function triggers using function pointers with parameters. More... | |
volatile struct NPNZ_USER_DATA_BUFFER_s | Advanced |
Parameter section for advanced user control options. More... | |
User Extension Function Call Parameters.
The NPNZ_EXTENSION_HOOKS_s data object holds all parameters required to call user-defined extension functions supporting advanced use cases, which are not covered by the standard functions provided. When enabled, the NPNZ controller can automatically call user-defined functions at specific points within the control loop execution flow. Each function pointer is supporting function calls with one additional, 16-bit wide function parameter for each extension call. These parameters can either be variables or pointers to variables including start addresses of user defined data structures.
Each extension function call is optional and needs to be enabled, configured and managed manually in user code.
volatile uint16_t ExtHookEndFunctionParam |
volatile uint16_t ExtHookPreAntiWindupFunctionParam |
volatile uint16_t ExtHookSourceFunctionParam |
volatile uint16_t ExtHookStartFunctionParam |
volatile uint16_t ExtHookStopFunctionParam |
volatile uint16_t ExtHookTargetFunctionParam |
volatile uint16_t ptrExtHookEndFunction |
volatile uint16_t ptrExtHookPreAntiWindupFunction |
volatile uint16_t ptrExtHookSourceFunction |
volatile uint16_t ptrExtHookStartFunction |
volatile uint16_t ptrExtHookStopFunction |
volatile uint16_t ptrExtHookTargetFunction |