Skip to content

USB-CTR timer status readback #33

@MarkRivers

Description

@MarkRivers

usb-ctr.c contains this:

void usbTimerControlR_USB_CTR(libusb_device_handle *udev, uint8_t timer,  uint8_t *control)
{
  /*
    This command reads/writes the timer control register
    control:   bit 0:    1 = enable timer,  0 = disable timer
               bit 1:    1 = timer running, 0 = timer stopped
                        (read only, useful when using count)
               bit 2:    1 = inverted output (active low)
                         0 = normal output (active high)
               bits 3-7: reserved

I have tested using this function to read the status in bit 1. However, it does not work, control always returns 0 even if the timer is running.

Have you tested this?

If it works for you then perhaps I need new firmware? What firmware are you using?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions