-
Notifications
You must be signed in to change notification settings - Fork 1
Legacy:API
This document summarizes the API of the legacy driver
This page is incomplete!
This macro creates a 16-bit word from the high and low bytes. This is because LibUSB does the host-endian -> little endian (USB endian) conversion of outgoing traffic for us, but not the other way around.
This struct holds the response of logsys_tx_get_status(). See also: logsys-status.h
This struct holds the response of logsys_tx_clk_status(). See also: logsys-status.h
This enumeration represents the over-current detector's mode on the VCC pin
The response of logsys_tx_get_active_func().
JTAG_RW: JTAG Write & Echo mode: data from the FPGA board's TAP controller is sent back via USB
JTAG_CHK: JTAG Write & Compare mode: the computer sends the expected response to the dev cable, and the cable responds whether it matched or not. See logsys_jtag_check_error()
Parsing of individual items in the structs. The method names are self-descriptive
evt_type: the type of event to listen for (connect, disconnect etc.)
callback: a function pointer
hndl: a handle. Make sure you pass it to libusb_hotplug_deregister_callback() on exit!
You will need to call libusb_handle_events_completed() in the main thread
Reads power & clock status
Starts/stops the clock connected to the FPGA's CLK input.
Sets/gets the RST pin's value
Gets/sets the maximum amount of current allowed to flow from the cable to the FPGA. See also: LogsysPwrLimit
Gets the correction coefficients. There's no struct for it currently.
Sets/gets the VCC pin
Gets/sets the reverse current tolerance. Values in milliamps.
Gets the active function on EP1/EP2 endpoints
JTAG methods, don't use them.