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

Adding UnixI2cDevice Implementations #51

Merged
merged 5 commits into from
Nov 29, 2018
Merged

Adding UnixI2cDevice Implementations #51

merged 5 commits into from
Nov 29, 2018

Conversation

joperezr
Copy link
Member

cc: @JohnTasler @tarekgh

This PR will fix the namespaces that were wrong in #50 , and will also add the implementation for the Unix I2c device.

@tarekgh
Copy link
Member

tarekgh commented Nov 29, 2018

CC @stephentoub as he had a good feedback on other PR's.

@joperezr
Copy link
Member Author

FYI @shaggygi

int result = Interop.ioctl(_deviceFileDescriptor, (uint)I2cSettings.I2C_RDWR, new IntPtr(&tr));
if (result < 0)
{
throw new IOException("Error when attempting to perform the I2c data transfer.");
Copy link
Member

Choose a reason for hiding this comment

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

"Error when attempting to perform the I2c data transfer. [](start = 38, length = 56)

don't we support resource files in such libraries?

Copy link
Member Author

Choose a reason for hiding this comment

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

I believe we do, but we haven't been using resource files yet. I'll log an issue for this so that we move all of these strings to a resource file instead.

@joperezr joperezr merged commit 7467aa2 into dotnet:master Nov 29, 2018
@joperezr joperezr deleted the AddUnixI2cDevice branch November 29, 2018 22:54
@github-actions github-actions bot locked and limited conversation to collaborators Dec 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants