-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/simplify foe #64
Feature/simplify foe #64
Conversation
So I would like to be able to trigger FOE_abort from the application layer. Do you think that is ok to expose the function itself or should we do a more complicated solution. With a first try was working nicely. |
I figured out that I dont need to expose FOE_abort as the error should be better handled by the FOE library. Searching the documentation of etherCAT could not found a document that really defines the FOE error codes and when to be thrown. If someone can reference it would be helpful. |
@elsp1991 , we're about to add some other changes having impact on the API. |
Yes this PR includes only obvious fixes and is not dealing with the point I was mentioning here |
@elsp1991 What do you think of , bullt 2 is to minimize need of future API changes. Can be combined in to 2x uint16_t or single uint32_t.
|
@nakarlsson observing the error codes in page 92 of the ETG1000.6 , it is implied that a file can be accessed either in any state or only in boot state or all states except of boot . There is no error code for example WRONG_STATE to allow arbitrary state permissions and that is why I did not implemented it. |
Also page 92 of ETG1000.5 Describes a FoE struct implementation but it looks like is missing some information as the documentation of the arguments is not consistant |
How about
|
@elsp1991 , lets wait with the read- and flags stuff and keep the padding:24. Any thoughts on going for foe_file_cfg_t instead of foe_writefile_cfg_t. if I recall we didn't see a need for a foe_readfile_cfg, than foe_file_cfg_t would be able to cover "any" file. |
I dont see any problem |
Could you update the PR going for foe_file_cfg_t? |
@elsp1991 , can you update the PR with foe_file_cfg_t insted of foe_writefile_cfg_t |
We've added this PR as part of #86 Can we close this? You can revert the commits and rebase to master? |
Close since it was added as part of another PR |
attempting to fix some of the FOE implementation issues