Skip to content

Remove explicit parameters relationship from the read back procedures #30

Description

@henriquesimoes

The detector library will (usually) abstract away the fact that we need to write to multiple chip parameters to properly configure it. However, we would keep that abstraction when reading back the parameters. For instance, we configure the pixel mode by calling PixelMode only, but we'll need to read back with get_read_counter the Read Counter parameter (see #28 (comment)).

An approach to remove this explicit relationship encoding and simplify considerably the code base is to provide a way synchronize all parameters that might have changed at once. This could be done by having a structure with those updated parameters returned by the libpimega function calls or by a specific query function.

For some specific cases, we might not need to see the internal parameter anymore once a more high-level procedure is properly implemented in both read and write directions. That's possibly the case for pixel mode.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestmaster-branchIssue affects master branch

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions