Functions | |
cy_rslt_t | myPwrConv_init (void) |
Initializes the Power Conversion Control System. More... | |
cy_rslt_t | myPwrConv_enable (void) |
Enables the Power Conversion Control System. More... | |
cy_rslt_t | myPwrConv_start (void) |
Starts the Power Conversion instance. More... | |
cy_rslt_t | pwrconv_start (void) |
Starts all the Power Conversion instances in the project synchronously. More... | |
cy_rslt_t | myPwrConv_disable (void) |
Disables (stops) the Power Conversion Control System. More... | |
void | myPwrConv_ramp (void) |
Drives the Ramp Generator. More... | |
cy_rslt_t | myPwrConv_set_target (uint32_t targ) |
Applies a new target for the Ramp Generator. More... | |
cy_rslt_t | myPwrConv_get_state (uint32_t mask) |
Returns the Power Converter instance current state. More... | |
void | myPwrConv_scheduled_adc_trigger (void) |
Triggers the scheduled ADC group. More... | |
__STATIC_FORCEINLINE uint32_t | myPwrConv_Vout_get_result (void) |
Gets the ADC channel result in raw counts. More... | |
__STATIC_FORCEINLINE int32_t | myPwrConv_get_error (uint32_t result) |
Calculates the error value from the feedback and reference values. More... | |
cy_rslt_t myPwrConv_init | ( | void | ) |
Initializes the Power Conversion Control System.
The instance-based wrapper for data-driven mtb_pwrconv_init.
cy_rslt_t myPwrConv_enable | ( | void | ) |
Enables the Power Conversion Control System.
The instance-based wrapper for data-driven mtb_pwrconv_enable.
cy_rslt_t myPwrConv_start | ( | void | ) |
Starts the Power Conversion instance.
The instance-based wrapper for data-driven mtb_pwrconv_start.
cy_rslt_t pwrconv_start | ( | void | ) |
Starts all the Power Conversion instances in the project synchronously.
This non-instance-based function (common for all the instances) initiates the ramp generation and triggers synchronous start of all Power Conversion instances PWMs in the same clock cycle. See Synchronous Start for details.
cy_rslt_t myPwrConv_disable | ( | void | ) |
Disables (stops) the Power Conversion Control System.
The instance-based wrapper for data-driven mtb_pwrconv_disable.
void myPwrConv_ramp | ( | void | ) |
Drives the Ramp Generator.
The instance-based wrapper for the data-driven mtb_pwrconv_ramp.
cy_rslt_t myPwrConv_set_target | ( | uint32_t | targ | ) |
Applies a new target for the Ramp Generator.
The instance-based wrapper for data-driven mtb_pwrconv_set_target.
[in] | targ | The target value to be set. The valid range is defined by mtb_stc_pwrconv_t::targMin and mtb_stc_pwrconv_t::targMax. |
cy_rslt_t myPwrConv_get_state | ( | uint32_t | mask | ) |
Returns the Power Converter instance current state.
The instance-based wrapper for the data-driven mtb_pwrconv_get_state.
[in] | mask | The mask to get one or more specified power converter States. |
void myPwrConv_scheduled_adc_trigger | ( | void | ) |
Triggers the scheduled ADC group.
The instance-based function to trigger the scheduled ADC group, if such is configured by the Power Conversion Configurator.
__STATIC_FORCEINLINE uint32_t myPwrConv_Vout_get_result | ( | void | ) |
Gets the ADC channel result in raw counts.
The instance-based ADC-channel-based function to get the ADC channel result directly from the register. This function exists for each PwrConv ADC channel, under the naming: [instance_name]_[channel_name]_get_result.
__STATIC_FORCEINLINE int32_t myPwrConv_get_error | ( | uint32_t | result | ) |
Calculates the error value from the feedback and reference values.
The instance-based wrapper for the data-driven mtb_pwrconv_get_error.
[in] | result | The feedback measurement result |