RA Flexible Software Package Documentation
Release v5.5.0
|
|
Interface for motor current functions.
The Motor current interface for getting the PWM modulation duty from electric current and speed
Data Structures | |
struct | motor_current_output_t |
struct | motor_current_input_current_t |
struct | motor_current_input_voltage_t |
struct | motor_current_get_voltage_t |
struct | motor_current_cfg_t |
struct | motor_current_api_t |
struct | motor_current_instance_t |
Typedefs | |
typedef void | motor_current_ctrl_t |
Enumerations | |
enum | motor_current_event_t |
struct motor_current_output_t |
Structure of interface to speed control Output parameters
struct motor_current_input_current_t |
struct motor_current_input_voltage_t |
struct motor_current_get_voltage_t |
struct motor_current_cfg_t |
Configuration parameters.
struct motor_current_api_t |
Functions implemented at the Motor Current Module will follow these APIs.
fsp_err_t(* motor_current_api_t::open) (motor_current_ctrl_t *const p_ctrl, motor_current_cfg_t const *const p_cfg) |
Initialize the motor current module.
[in] | p_ctrl | Pointer to control structure. |
[in] | p_cfg | Pointer to configuration structure. |
fsp_err_t(* motor_current_api_t::close) (motor_current_ctrl_t *const p_ctrl) |
Close (Finish) the motor current module.
[in] | p_ctrl | Pointer to control structure. |
fsp_err_t(* motor_current_api_t::reset) (motor_current_ctrl_t *const p_ctrl) |
Reset variables for the motor current module.
[in] | p_ctrl | Pointer to control structure. |
fsp_err_t(* motor_current_api_t::run) (motor_current_ctrl_t *const p_ctrl) |
Activate the motor current control.
[in] | p_ctrl | Pointer to control structure. |
fsp_err_t(* motor_current_api_t::parameterSet) (motor_current_ctrl_t *const p_ctrl, motor_current_input_t const *const p_st_input) |
Set (Input) parameters into the motor current module.
[in] | p_ctrl | Pointer to control structure. |
[in] | p_st_input | Pointer to input data structure(speed control output data) |
fsp_err_t(* motor_current_api_t::currentReferenceSet) (motor_current_ctrl_t *const p_ctrl, float const id_reference, float const iq_reference) |
Set (Input) Current reference into the motor current module.
[in] | p_ctrl | Pointer to control structure. |
[in] | id_reference | D-axis current reference [A] |
[in] | iq_reference | Q-axis current reference [A] |
fsp_err_t(* motor_current_api_t::speedPhaseSet) (motor_current_ctrl_t *const p_ctrl, float const speed_rad, float const phase_rad) |
Set (Input) Speed & Phase data into the motor current module.
[in] | p_ctrl | Pointer to control structure. |
[in] | speed_rad | Rotational speed [rad/s] |
[in] | phase_rad | Rotor phase [rad] |
fsp_err_t(* motor_current_api_t::currentSet) (motor_current_ctrl_t *const p_ctrl, motor_current_input_current_t const *const p_st_current, motor_current_input_voltage_t const *const p_st_voltage) |
Set (Input) Current data into the motor current module.
[in] | p_ctrl | Pointer to control structure. |
[in] | p_st_current | Pointer to input current structure |
[in] | p_st_voltage | Pointer to input voltage structure |
fsp_err_t(* motor_current_api_t::parameterGet) (motor_current_ctrl_t *const p_ctrl, motor_current_output_t *const p_st_output) |
Get (output) parameters from the motor current module
[in] | p_ctrl | Pointer to control structure. |
[out] | p_st_output | Pointer to output data structure(speed control input data) |
fsp_err_t(* motor_current_api_t::currentGet) (motor_current_ctrl_t *const p_ctrl, float *const p_id, float *const p_iq) |
Get d/q-axis current
[in] | p_ctrl | Pointer to control structure. |
[out] | p_id | Pointer to get d-axis current [A] |
[out] | p_iq | Pointer to get q-axis current [A] |
fsp_err_t(* motor_current_api_t::phaseVoltageGet) (motor_current_ctrl_t *const p_ctrl, motor_current_get_voltage_t *const p_voltage) |
Get phase output voltage
[in] | p_ctrl | Pointer to control structure. |
[out] | p_voltage | Pointer to get voltages |
fsp_err_t(* motor_current_api_t::parameterUpdate) (motor_current_ctrl_t *const p_ctrl, motor_current_cfg_t const *const p_cfg) |
Update parameters for the calculation in the motor current control.
[in] | p_ctrl | Pointer to control structure. |
[in] | p_cfg | Pointer to configuration structure include update parameters. |
struct motor_current_instance_t |
This structure encompasses everything that is needed to use an instance of this interface.
Data Fields | ||
---|---|---|
motor_current_ctrl_t * | p_ctrl | Pointer to the control structure for this instance. |
motor_current_cfg_t const * | p_cfg | Pointer to the configuration structure for this instance. |
motor_current_api_t const * | p_api | Pointer to the API structure for this instance. |
typedef void motor_current_ctrl_t |
Control block. Allocate an instance specific control block to pass into the API calls.