Skip to content
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

EMCY Service Err Index Size #134

Open
CDK-Vonkil opened this issue Jan 30, 2023 · 0 comments
Open

EMCY Service Err Index Size #134

CDK-Vonkil opened this issue Jan 30, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@CDK-Vonkil
Copy link

The current implementation of the EMCY public API functions, COEmcySet( ), COEmcyClr( ), COEmcyGet( ), all have an err parameter of size uint8_t. This limits the size of the error table to 256 entries.

Since the error codes defined in 301 are 16-bit, there many more than 256 error codes available for use in a CANopen device.

It would be nice to allow more than 256 error table entries for targets that have the memory resources to support it.

Perhaps the size of the err parameter can be changed to be simply "unsigned", and allow the CPU architecture to determine how large the error table can be.

@michael-hillmann michael-hillmann added the enhancement New feature or request label Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants