Skip to content

Conversation

tdittr
Copy link

@tdittr tdittr commented Feb 21, 2021

Hi,

I am currently implementing some PLL logic and stumbled over generic rate not implementing Mul.

I am not sure if this was intentional or if my implementation is missing some details. I'm happy about feedback :)

I was also thinking about implementing Div, but I am not sure how that should affect the fraction.

Thanks for the nice library,
tdittr

Mul is already implemented for the fixed point variants of rate.
This is useful when calculating rates after a PLL.
@PTaylor-us
Copy link
Member

Thanks for this! It was intentional, but I'm starting to realize that these features do need to exist.

@tdittr
Copy link
Author

tdittr commented Mar 21, 2021

Hi thanks for the response. Maybe this PR would need a bit more thought to be useful for the whole crate.

@PTaylor-us PTaylor-us marked this pull request as draft April 12, 2021 13: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.

2 participants