RA Flexible Software Package Documentation
Release v5.5.0
|
|
Interface for Motor return origin functions.
The Motor interface provides Motor return origin functionality.
Data Structures | |
struct | motor_return_origin_info_t |
struct | motor_return_origin_cfg_t |
struct | motor_return_origin_api_t |
struct | motor_return_origin_instance_t |
Typedefs | |
typedef void | motor_return_origin_ctrl_t |
Enumerations | |
enum | motor_return_origin_mode_t |
struct motor_return_origin_info_t |
struct motor_return_origin_cfg_t |
Configuration parameters.
Data Fields | ||
---|---|---|
motor_return_origin_mode_t | mode | |
void const * | p_context | |
void const * | p_extend | Placeholder for user extension. |
struct motor_return_origin_api_t |
Functions implemented at the HAL layer will follow this API.
Data Fields | |
fsp_err_t(* | open )(motor_return_origin_ctrl_t *const p_ctrl, motor_return_origin_cfg_t const *const p_cfg) |
fsp_err_t(* | close )(motor_return_origin_ctrl_t *const p_ctrl) |
fsp_err_t(* | start )(motor_return_origin_ctrl_t *const p_ctrl) |
fsp_err_t(* | stop )(motor_return_origin_ctrl_t *const p_ctrl) |
fsp_err_t(* | reset )(motor_return_origin_ctrl_t *const p_ctrl) |
fsp_err_t(* | infoGet )(motor_return_origin_ctrl_t *const p_ctrl, motor_return_origin_info_t *const p_info) |
fsp_err_t(* | dataSet )(motor_return_origin_ctrl_t *const p_ctrl, motor_return_origin_set_data_t *const p_set_data) |
fsp_err_t(* | speedCyclic )(motor_return_origin_ctrl_t *const p_ctrl) |
fsp_err_t(* | parameterUpdate )(motor_return_origin_ctrl_t *const p_ctrl, motor_return_origin_cfg_t const *p_cfg) |
fsp_err_t(* motor_return_origin_api_t::open) (motor_return_origin_ctrl_t *const p_ctrl, motor_return_origin_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_return_origin_api_t::close) (motor_return_origin_ctrl_t *const p_ctrl) |
Close driver.
[in] | p_ctrl | Pointer to control structure. |
fsp_err_t(* motor_return_origin_api_t::start) (motor_return_origin_ctrl_t *const p_ctrl) |
Start the function.
[in] | p_ctrl | Pointer to control structure. |
fsp_err_t(* motor_return_origin_api_t::stop) (motor_return_origin_ctrl_t *const p_ctrl) |
Stop the function. (Cancel the function works.)
[in] | p_ctrl | Pointer to control structure. |
fsp_err_t(* motor_return_origin_api_t::reset) (motor_return_origin_ctrl_t *const p_ctrl) |
Reset the function. (Initialize the function.)
[in] | p_ctrl | Pointer to control structure. |
fsp_err_t(* motor_return_origin_api_t::infoGet) (motor_return_origin_ctrl_t *const p_ctrl, motor_return_origin_info_t *const p_info) |
Get the function information.
[in] | p_ctrl | Pointer to control structure. |
[out] | p_info | Pointer to info |
fsp_err_t(* motor_return_origin_api_t::dataSet) (motor_return_origin_ctrl_t *const p_ctrl, motor_return_origin_set_data_t *const p_set_data) |
Set the data to the function
[in] | p_ctrl | Pointer to control structure. |
[out] | p_set_data | Pointer to set the data |
fsp_err_t(* motor_return_origin_api_t::speedCyclic) (motor_return_origin_ctrl_t *const p_ctrl) |
Speed cyclic process of the function
[in] | p_ctrl | Pointer to control structure. |
fsp_err_t(* motor_return_origin_api_t::parameterUpdate) (motor_return_origin_ctrl_t *const p_ctrl, motor_return_origin_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_return_origin_instance_t |
This structure encompasses everything that is needed to use an instance of this interface.
Data Fields | ||
---|---|---|
motor_return_origin_ctrl_t * | p_ctrl | Pointer to the control structure for this instance. |
motor_return_origin_cfg_t const * | p_cfg | Pointer to the configuration structure for this instance. |
motor_return_origin_api_t const * | p_api | Pointer to the API structure for this instance. |
typedef void motor_return_origin_ctrl_t |
Motor return origin function block. Allocate an instance specific control block to pass into the API calls.
Selection type of return origin function