Skip to content
This repository was archived by the owner on Jul 14, 2022. It is now read-only.

Added usbtin interface#1

Open
IsaacHook wants to merge 1 commit intodevelopfrom
feature/pyusbtin_support
Open

Added usbtin interface#1
IsaacHook wants to merge 1 commit intodevelopfrom
feature/pyusbtin_support

Conversation

@IsaacHook
Copy link
Copy Markdown

No description provided.

@IsaacHook IsaacHook added the enhancement New feature or request label Apr 29, 2020
@IsaacHook IsaacHook requested a review from LouisBrunner April 29, 2020 18:43
Comment thread setup.py
"filelock",
"mypy_extensions >= 0.4.0, < 0.5.0",
'pywin32;platform_system=="Windows"',
"pyusbtin @ git+https://github.com/fishpepper/pyUSBtin@master#egg=pyusbtin",
Copy link
Copy Markdown

@LouisBrunner LouisBrunner May 4, 2020

Choose a reason for hiding this comment

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

It's not released on PyPi right?

Comment thread can/interfaces/usbtin.py
usbtin interface
"""

def __init__(self, channel: str, baudrate: int):
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Shouldn't you capture all other arguments (*args, **kwargs) and forward them to super?

Comment thread can/interfaces/usbtin.py
return None, False

canmsg = self.rx_fifo.pop(0)
data = [
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Can you use bytearray() or similar to cast it? What are the different types?

Comment thread can/interfaces/usbtin.py
self.usbtin.disconnect()

@staticmethod
def _detect_available_configs() -> List[can.typechecking.AutoDetectedConfig]:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Where/how is this used?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants