-
Notifications
You must be signed in to change notification settings - Fork 0
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
DPS310 I2C Pressure Sensor Interface #24
base: master
Are you sure you want to change the base?
Conversation
The DPS310 will be used in the windtunnel project to measure pressure. There will be 25 such sensors, all on an I2C bus
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing newlines at EOF then GTM
uint8_t length; | ||
} RegBlock_t; | ||
|
||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No newline at EOF
|
||
const RegBlock_t coeffBlock = {0x10, 18}; | ||
} // namespace dps310 | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No newline at EOF
}; | ||
|
||
} // namespace dps | ||
#endif /* DPS_CONSTS_H_ */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No newline at EOF
This PR contains the I2C interface code for the DPS310 pressure sensor being used in Wind Tunnel testing. This code came from the vendor, but was refactored to remove inheritance and virtual function calls, to be more compliant with typical embedded software standards.
If you see anything that may need to be written/refactored/improved, let me know.