Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
etherlabmaster
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ICS Control System Infrastructure
etherlabmaster
Commits
e285945d
Commit
e285945d
authored
17 years ago
by
Florian Pose
Browse files
Options
Downloads
Patches
Plain Diff
Added ecrt_sdo_request_data_size().
parent
52a4b806
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/ecrt.h
+12
-0
12 additions, 0 deletions
include/ecrt.h
master/sdo_request.c
+8
-0
8 additions, 0 deletions
master/sdo_request.c
with
20 additions
and
0 deletions
include/ecrt.h
+
12
−
0
View file @
e285945d
...
@@ -672,6 +672,18 @@ uint8_t *ecrt_sdo_request_data(
...
@@ -672,6 +672,18 @@ uint8_t *ecrt_sdo_request_data(
ec_sdo_request_t
*
req
/**< Sdo request. */
ec_sdo_request_t
*
req
/**< Sdo request. */
);
);
/** Returns the current Sdo data size.
*
* When the Sdo request is created, the data size is set to the size of the
* reserved memory. After a read operation the size is set to the size of the
* read data. The size is not modified in any other situation.
*
* \return Sdo data size in bytes.
*/
size_t
ecrt_sdo_request_data_size
(
const
ec_sdo_request_t
*
req
/**< Sdo request. */
);
/** Get the current state of the Sdo request.
/** Get the current state of the Sdo request.
*
*
* \return Request state.
* \return Request state.
...
...
This diff is collapsed.
Click to expand it.
master/sdo_request.c
+
8
−
0
View file @
e285945d
...
@@ -177,6 +177,13 @@ uint8_t *ecrt_sdo_request_data(ec_sdo_request_t *req)
...
@@ -177,6 +177,13 @@ uint8_t *ecrt_sdo_request_data(ec_sdo_request_t *req)
/*****************************************************************************/
/*****************************************************************************/
size_t
ecrt_sdo_request_data_size
(
const
ec_sdo_request_t
*
req
)
{
return
req
->
data_size
;
}
/*****************************************************************************/
ec_sdo_request_state_t
ecrt_sdo_request_state
(
const
ec_sdo_request_t
*
req
)
ec_sdo_request_state_t
ecrt_sdo_request_state
(
const
ec_sdo_request_t
*
req
)
{
{
return
state_translation_table
[
req
->
state
];
return
state_translation_table
[
req
->
state
];
...
@@ -204,6 +211,7 @@ void ecrt_sdo_request_write(ec_sdo_request_t *req)
...
@@ -204,6 +211,7 @@ void ecrt_sdo_request_write(ec_sdo_request_t *req)
EXPORT_SYMBOL
(
ecrt_sdo_request_timeout
);
EXPORT_SYMBOL
(
ecrt_sdo_request_timeout
);
EXPORT_SYMBOL
(
ecrt_sdo_request_data
);
EXPORT_SYMBOL
(
ecrt_sdo_request_data
);
EXPORT_SYMBOL
(
ecrt_sdo_request_data_size
);
EXPORT_SYMBOL
(
ecrt_sdo_request_state
);
EXPORT_SYMBOL
(
ecrt_sdo_request_state
);
EXPORT_SYMBOL
(
ecrt_sdo_request_read
);
EXPORT_SYMBOL
(
ecrt_sdo_request_read
);
EXPORT_SYMBOL
(
ecrt_sdo_request_write
);
EXPORT_SYMBOL
(
ecrt_sdo_request_write
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment