libsigrok
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Structures | Macros | Functions
command.h File Reference
#include "sigrok.h"
Include dependency graph for command.h:
This graph shows which files directly or indirectly include this file:

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)
 

Macro Definition Documentation

#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().

#define CMD_START_FLAGS_CLK_SRC_POS   6

Definition at line 30 of file command.h.

Function Documentation

SR_PRIV int command_get_fw_version ( libusb_device_handle *  devhdl,
struct version_info vi 
)

Definition at line 27 of file command.c.

References CMD_GET_FW_VERSION, SR_ERR, sr_err(), and SR_OK.

Here is the call graph for this function:

SR_PRIV int command_get_revid_version ( libusb_device_handle *  devhdl,
uint8_t *  revid 
)

Definition at line 44 of file command.c.

References CMD_GET_REVID_VERSION, SR_ERR, sr_err(), and SR_OK.

Here is the call graph for this function:

SR_PRIV int command_start_acquisition ( libusb_device_handle *  devhdl,
uint64_t  samplerate 
)