ModusToolbox Power Control Middleware Library

General Description

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:

Data Structures

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...
 

Data Structure Documentation

◆ mppt_config_t

struct 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

struct 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

struct 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)