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

UDriver parameter library #35

Merged
merged 6 commits into from
Apr 22, 2024
Merged

UDriver parameter library #35

merged 6 commits into from
Apr 22, 2024

Conversation

ericonr
Copy link
Member

@ericonr ericonr commented Mar 25, 2024

Depends on lnls-dig/uhal#40

It is already the default value that's written to hardware when the
record's VAL goes to 1.
Copy link
Contributor

@henriquesimoes henriquesimoes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

utcaApp/src/udriver.h Show resolved Hide resolved
This is a cleaner and more performant way of tracking parameter
properties (such as write-only and type) than adding sets for each
boolean property (which also means properties with more than one
possibility weren't covered adequately).

As a bonus, this improves the interface for defining these properties,
which can be done directly with the parameter list passed to
UDriver::UDriver().
These specific parameters only have 2 channels, not the 18 otherwise
supported by this port's channel parameters. This was an unpredicted
consequence of changes to uhal [1], which was missed because testing was
mostly done with the FOFB IOC.

[1] lnls-dig/uhal@c2265ff
And add the specific implementation of the function to the relevant
modules.
@ericonr ericonr merged commit 85dbbde into master Apr 22, 2024
1 check passed
@ericonr ericonr deleted the udriver-params branch April 22, 2024 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants