nRF Connect SDK API 3.4.99
Loading...
Searching...
No Matches

◆ update

int(* audio_regulator_ops::update) (struct audio_regulator_imp_ctx *const ctx, void *const ref_val_r, void *const meas_val_y, void *const control_val_u)

Update the regulator implementation.

Note
This is a mandatory function for a regulator module. As of now, only a synchronous regulator is supported. This means that this function must be called at regular intervals. Furthermore, the underlying implementation must be able to correctly handle variations in delta_t between calls to this function.
Parameters
ctx[in/out] Pointer to the context of the module implementation.
ref_val_r[in] Pointer to the reference value.
meas_val_y[in] Pointer to the measured value.
control_val_u[out] Pointer to the control value.
Returns
0 if successful, error otherwise.