Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PDM: fix setGain() for dfsdm#948

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
facchinm merged 1 commit intoarduino:mainfromfacchinm:pdm_dsfdm_gain_fix
Sep 2, 2024

Conversation

@facchinm
Copy link
Member

If the gain was too high, the right bit shift
RecBuff[i] >> attenuation
would result in undefined behaviour
https://www.iso-9899.info/n1570.html#6.5.7

Take the chance to also fix the (approximate) conversion from gain (in dB) to bit shift

If the gain was too high, the right bit shift  RecBuff[i] >> attenuationwould result in undefined behaviourhttps://www.iso-9899.info/n1570.html#6.5.7Take the chance to also fix the (approximate) conversion from gain (in dB) to bit shift
@d-le0
Copy link

All good!
Also the behavior of setGain is intuitive.

@facchinmfacchinm merged commit92eaf0e intoarduino:mainSep 2, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@facchinm@d-le0

[8]ページ先頭

©2009-2025 Movatter.jp