RA Flexible Software Package Documentation
Release v5.5.0
|
|
Interface for Motor inertia estimate functions.
The Motor interface provides Motor inertia estimate functionality.
Data Structures | |
struct | motor_inertia_estimate_info_t |
struct | motor_inertia_estimate_cfg_t |
struct | motor_inertia_estimate_api_t |
struct | motor_inertia_estimate_instance_t |
Typedefs | |
typedef void | motor_inertia_estimate_ctrl_t |
struct motor_inertia_estimate_info_t |
struct motor_inertia_estimate_cfg_t |
struct motor_inertia_estimate_api_t |
Functions implemented at the HAL layer will follow this API.
Data Fields | |
fsp_err_t(* | open )(motor_inertia_estimate_ctrl_t *const p_ctrl, motor_inertia_estimate_cfg_t const *const p_cfg) |
fsp_err_t(* | close )(motor_inertia_estimate_ctrl_t *const p_ctrl) |
fsp_err_t(* | start )(motor_inertia_estimate_ctrl_t *const p_ctrl) |
fsp_err_t(* | stop )(motor_inertia_estimate_ctrl_t *const p_ctrl) |
fsp_err_t(* | reset )(motor_inertia_estimate_ctrl_t *const p_ctrl) |
fsp_err_t(* | infoGet )(motor_inertia_estimate_ctrl_t *const p_ctrl, motor_inertia_estimate_info_t *const p_info) |
fsp_err_t(* | dataSet )(motor_inertia_estimate_ctrl_t *const p_ctrl, motor_inertia_estimate_set_data_t *const p_set_data) |
fsp_err_t(* | speedCyclic )(motor_inertia_estimate_ctrl_t *const p_ctrl) |
fsp_err_t(* | currentCyclic )(motor_inertia_estimate_ctrl_t *const p_ctrl) |
fsp_err_t(* | parameterUpdate )(motor_inertia_estimate_ctrl_t *const p_ctrl, motor_inertia_estimate_cfg_t const *p_cfg) |
fsp_err_t(* motor_inertia_estimate_api_t::open) (motor_inertia_estimate_ctrl_t *const p_ctrl, motor_inertia_estimate_cfg_t const *const p_cfg) |
Open driver.
[in] | p_ctrl | Pointer to control structure. |
[in] | p_cfg | Pointer to configuration structure. |
fsp_err_t(* motor_inertia_estimate_api_t::close) (motor_inertia_estimate_ctrl_t *const p_ctrl) |
Close driver.
[in] | p_ctrl | Pointer to control structure. |
fsp_err_t(* motor_inertia_estimate_api_t::start) (motor_inertia_estimate_ctrl_t *const p_ctrl) |
Start the function.
[in] | p_ctrl | Pointer to control structure. |
fsp_err_t(* motor_inertia_estimate_api_t::stop) (motor_inertia_estimate_ctrl_t *const p_ctrl) |
Stop( same as cancel ) the function.
[in] | p_ctrl | Pointer to control structure. |
fsp_err_t(* motor_inertia_estimate_api_t::reset) (motor_inertia_estimate_ctrl_t *const p_ctrl) |
Reset the function. (recover from error state)
[in] | p_ctrl | Pointer to control structure. |
fsp_err_t(* motor_inertia_estimate_api_t::infoGet) (motor_inertia_estimate_ctrl_t *const p_ctrl, motor_inertia_estimate_info_t *const p_info) |
Get information from the function (to set speed & position control)
[in] | p_ctrl | Pointer to control structure. |
[out] | p_info | Pointer to information |
fsp_err_t(* motor_inertia_estimate_api_t::dataSet) (motor_inertia_estimate_ctrl_t *const p_ctrl, motor_inertia_estimate_set_data_t *const p_set_data) |
Set the data to the function (from speed, position and current control)
[in] | p_ctrl | Pointer to control structure. |
[out] | p_set_data | Pointer to set the data |
fsp_err_t(* motor_inertia_estimate_api_t::speedCyclic) (motor_inertia_estimate_ctrl_t *const p_ctrl) |
Speed cyclic process of the function
[in] | p_ctrl | Pointer to control structure. |
fsp_err_t(* motor_inertia_estimate_api_t::currentCyclic) (motor_inertia_estimate_ctrl_t *const p_ctrl) |
Current cyclic process of the function
[in] | p_ctrl | Pointer to control structure. |
fsp_err_t(* motor_inertia_estimate_api_t::parameterUpdate) (motor_inertia_estimate_ctrl_t *const p_ctrl, motor_inertia_estimate_cfg_t const *p_cfg) |
Update parameters for the function.
[in] | p_ctrl | Pointer to control structure. |
[in] | p_cfg | Pointer to configuration structure include update parameters. |
struct motor_inertia_estimate_instance_t |
This structure encompasses everything that is needed to use an instance of this interface.
Data Fields | ||
---|---|---|
motor_inertia_estimate_ctrl_t * | p_ctrl | Pointer to the control structure for this instance. |
motor_inertia_estimate_cfg_t const * |
p_cfg | Pointer to the configuration structure for this instance. |
motor_inertia_estimate_api_t const * |
p_api | Pointer to the API structure for this instance. |
typedef void motor_inertia_estimate_ctrl_t |
Motor inertia estimate block. Allocate an instance specific control block to pass into the API calls.