=============================================================================
List of generated methods in project: PMSM
THIS TEXT DESCRIPTION IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
=============================================================================
Module "PWM" (bean PWMMC)
- PWM_Enable -Enable the bean - it starts the signal generation. Events can
be disabled/enabled by DisableEvent/EnableEvent.
- PWM_Disable -Disable the bean - it stops signal generation and events
calling. When the timer is disabled, it is possible
to call method "SetOutput" to control the output value on
corresponding pin.
- PWM_EnableEvent -Enable the events. Method is available only if interrupt
service/event is enabled.
- PWM_DisableEvent -Disable the events. Method is available only if interrupt
service/event is enabled.
- PWM_SetPeriod -Setting PWM modulo register. The value is loaded after
calling Load() method.
- PWM_SetDuty -Setting duty(value) register of selected channel. The value
is loaded after calling Load() method.
- PWM_SetDutyPercent -Setting duty(value) in percent of selected channel.
The value is loaded after calling Load() method.
- PWM_Load -Apply last setting of the methods SetDuty, SetDutyPercent,
SetPeriod and SetPrescaler.
- PWM_OutputPadEnable -Method enables output pads.
- PWM_OutputPadDisable -Method disables output pads.
Module "MFR" (bean DSP_Func_MFR)
- MFR_abs_s -The abs_s function calculates the 16-bit absolute value of the
input value.
- MFR_add -The add function adds two 16-bit fractional numbers (x + y).
- MFR_div_s -The div_s function divides two fractional numbers (x / y); x and
y must be positive and y must be greater than
or equal to x.
- MFR_mac_r -The mac function multiplies two 16-bit fractional input values
(x * y) and adds the 32-bit result to w.
- MFR_msu_r -The msu function multiplies x by y and subtracts the 32-bit
result from w.
- MFR_mult -This multiplication function multiply two fractional input values
and return the result.
- MFR_mult_r -This multiplication function multiply two fractional input
values and return the result. The function differs
from mult in that function rounds the result, whereas mult
truncates the result to 16bits.
- MFR_negate -The negate function negates the fractional input value.
- MFR_round -The round function rounds the 32-bit fractional input value to
16 bits.
- MFR_shl -The shl function arithmetically shifts the input variable x left n
positions, zero filling the least significant
bits of the result. If n is negative, the shl function
arithmetically shifts x right by -n bits with sign
extension.
- MFR_shr -The shr function arithmetically shifts the input variable x right
n positions, sign extending the result. If n is
negative, the shr function arithmetically shifts x left by -n
bits, zero filling the least significant bits.
- MFR_shr_r -The shr_r function arithmetically shifts the input variable x
right n positions, sign extending the result. If
n is negative, the shr_r function arithmetically shifts x left
by -n bits, zero filling the least significant
bits. shr_r differs from shr in that shr_r rounds the 32-bit
fractional result.
- MFR_sub -The sub function calculates (x - y).
- 1
- 2
前往页