#include "sigrok.h"
Go to the source code of this file.
Data Structures | |
struct | version_info |
struct | cmd_start_acquisition |
Macros | |
#define | CMD_GET_FW_VERSION 0xb0 |
#define | CMD_START 0xb1 |
#define | CMD_GET_REVID_VERSION 0xb2 |
#define | CMD_START_FLAGS_CLK_SRC_POS 6 |
#define | CMD_START_FLAGS_CLK_30MHZ (0 << CMD_START_FLAGS_CLK_SRC_POS) |
#define | CMD_START_FLAGS_CLK_48MHZ (1 << CMD_START_FLAGS_CLK_SRC_POS) |
Functions | |
SR_PRIV int | command_get_fw_version (libusb_device_handle *devhdl, struct version_info *vi) |
SR_PRIV int | command_get_revid_version (libusb_device_handle *devhdl, uint8_t *revid) |
SR_PRIV int | command_start_acquisition (libusb_device_handle *devhdl, uint64_t samplerate) |
#define CMD_GET_FW_VERSION 0xb0 |
Definition at line 26 of file command.h.
Referenced by command_get_fw_version().
#define CMD_GET_REVID_VERSION 0xb2 |
Definition at line 28 of file command.h.
Referenced by command_get_revid_version().
#define CMD_START 0xb1 |
Definition at line 27 of file command.h.
Referenced by command_start_acquisition().
#define CMD_START_FLAGS_CLK_30MHZ (0 << CMD_START_FLAGS_CLK_SRC_POS) |
Definition at line 32 of file command.h.
Referenced by command_start_acquisition().
#define CMD_START_FLAGS_CLK_48MHZ (1 << CMD_START_FLAGS_CLK_SRC_POS) |
Definition at line 33 of file command.h.
Referenced by command_start_acquisition().
SR_PRIV int command_get_fw_version | ( | libusb_device_handle * | devhdl, |
struct version_info * | vi | ||
) |
SR_PRIV int command_get_revid_version | ( | libusb_device_handle * | devhdl, |
uint8_t * | revid | ||
) |
SR_PRIV int command_start_acquisition | ( | libusb_device_handle * | devhdl, |
uint64_t | samplerate | ||
) |
Definition at line 61 of file command.c.
References CMD_START, CMD_START_FLAGS_CLK_30MHZ, CMD_START_FLAGS_CLK_48MHZ, cmd_start_acquisition::flags, MAX_SAMPLE_DELAY, cmd_start_acquisition::sample_delay_h, cmd_start_acquisition::sample_delay_l, SR_ERR, sr_err(), sr_info(), SR_MHZ, and SR_OK.