bugst / go-serial

A cross-platform serial library for go-lang.
BSD 3-Clause "New" or "Revised" License
658 stars 200 forks source link

Added USB API (linux and win) #8

Closed cmaglie closed 7 years ago

cmaglie commented 7 years ago

This is a possible API to retrieve USB information.

/cc @larsgk

cmaglie commented 7 years ago

@larsgk I've added an implementation for Linux based on sysfs instead of launching udevadm (anyway, I think that udevadm explores sysfs as well).

I've also slightly expanded the PortDetails structure with some more information.

IMHO this is ready to be merged (and expanded with implementation for other OSs through other PRs).

larsgk commented 7 years ago

Cool stuff :)

On Oct 12, 2016 17:38, "Cristian Maglie" notifications@github.com wrote:

@larsgk https://github.com/larsgk I've added an implementation for Linux based on sysfs instead of launching udevadm (anyway, I think that udevadm explores sysfs as well).

I've also slightly expanded the PortDetails structure with some more information.

IMHO this is ready to be merged (and expanded with implementation for other OSs through other PRs).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bugst/go-serial/pull/8#issuecomment-253239123, or mute the thread https://github.com/notifications/unsubscribe-auth/AA97loZzqL55ZXpJnmVkbV2d7ZCfaFYtks5qzPZJgaJpZM4KRrXM .