Context structure and sub-structures for the MPPT block.
The context structure contains all the necessary data for MPPT operation. It is divided into two main parts:
- Configuration structure (mppt_config_t): Must be set by the application
- Runtime variables structure (mppt_static_t): Managed automatically by the library The application must allocate the context structure (mppt_context_t) in a memory section of choice. It must set the values of the configuration sub-structure (mppt_context_t::config). The static sub-structure (mppt_context_t::vars) contains the static memory the block needs to operate. It must not be initialized by the application. The application has to call the block reset function (MpptReset()) to clear the static sub-structure and the block init function (MpptInit()) to initialize the internal configuration.
|
| struct | mppt_config_t |
| | MPPT configuration structure Structure used to keep the module configuration (sub-structure of the modules context). More...
|
| |
| struct | mppt_static_t |
| | Structure used to keep the module's runtime state variables (sub-structure of the modules context). More...
|
| |
| struct | mppt_context_t |
| | Top-level structure of the MPPT module. More...
|
| |
◆ mppt_config_t
| Data Fields |
|
float32_t |
delta_d |
Reference perturbation step size (0.0 to 1.0) |
|
float32_t |
d_min |
Minimum reference limit (0.0 to 1.0) |
|
float32_t |
d_max |
Maximum reference limit (0.0 to 1.0) |
|
float32_t |
d_initial |
Initial reference value (0.0 to 1.0) |
|
float32_t |
deadband |
Deadband for power to stop oscillation around max power point. |
◆ mppt_static_t
| Data Fields |
|
float32_t |
v_prev |
Previous voltage measurement. |
|
float32_t |
p_prev |
Previous power measurement. |
|
float32_t |
p_current |
Current power measurement. |
|
float32_t |
d_ref |
Current normalized reference output (0.0 to 1.0) |
|
float32_t |
dp |
Power difference (P_current - P_previous) |
|
float32_t |
dv |
Voltage difference (V_current - V_previous) |
◆ mppt_context_t
| Data Fields |
|
mppt_static_t |
vars |
Structure containing the static context variables (managed automatically) |
|
mppt_config_t |
config |
Configuration structure (must be set by application) |