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

Replace PAC dependency w/ new internal VI module #1

Merged
merged 3 commits into from
Oct 24, 2023
Merged

Conversation

xSetech
Copy link
Owner

@xSetech xSetech commented Oct 24, 2023

A new internal definition of VI registers, related types, and documenting comments replaces the dependency on n64-pac. This also removes a duplicate transitive dependency (proc-bitfield).

Primary motivations for this change:

  • New documenting comments and links to reference material on each register, bitfield, and enum
  • Enable additional types and macros to improve ergonomics
  • Fewer external dependencies

Most of the time spent has been learning about each VI field and analog television in general; much less time has been spent on the ergonomics of the interface, which have gotten slightly worse. Future types, macros, and defaults (e.g. for NTSC constants) are part of the growing todo list.

A new internal definition of VI registers, related types, and
documenting comments replaces the dependency on n64-pac. This
also removes a duplicate transitive dependency (proc-bitfield).

Primary motivations for this change:
- Documenting comments and links to reference material on each register,
  bitfield, and enum
- Enable additional types and macros to improve ergonomics
- Fewer external dependencies

Most of the time spent has been learning about each VI field and analog
television in general; much less time has been spent on the ergonomics
of the interface, which have gotten slightly worse. Future types, macros,
and defaults (e.g. for NTSC constants) are part of the growing todo list.
///
#[derive(Clone, Copy, PartialEq, Eq)]
pub struct VI_V_CURRENT(pub u32): IntoRaw, FromRaw {
pub half_line: u16 @ 0..=9,
Copy link
Owner Author

Choose a reason for hiding this comment

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

Self-note to consider typing the last bit as a bool enum (even/odd field)

@xSetech xSetech merged commit 5de3ab1 into main Oct 24, 2023
@xSetech xSetech deleted the vi-module branch October 24, 2023 02:57
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.

1 participant