*/
#include <glib.h>
-#include "libsigrok.h"
-#include "libsigrok-internal.h"
-#include "agilent-dmm.h"
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <math.h>
+#include "libsigrok.h"
+#include "libsigrok-internal.h"
+#include "agilent-dmm.h"
static void dispatch(const struct sr_dev_inst *sdi)
{
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "libsigrok.h"
-#include "libsigrok-internal.h"
-#include "gpio.h"
#include <glib.h>
#include <glib/gstdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
+#include "libsigrok.h"
+#include "libsigrok-internal.h"
+#include "gpio.h"
#define LOG_PREFIX "gpio"
#define BEAGLELOGIC_H_
#include <fcntl.h>
-
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/errno.h>
#include <sys/ioctl.h>
-
#include <stdlib.h>
-
#include <unistd.h>
/* BeagleLogic device node name */
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "protocol.h"
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include "protocol.h"
/* Define data packet size independent of packet (bufunitsize bytes) size
* from the BeagleLogic kernel module */
*/
#include <glib.h>
-#include "libsigrok.h"
-#include "libsigrok-internal.h"
-#include "protocol.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
+#include "libsigrok.h"
+#include "libsigrok-internal.h"
+#include "protocol.h"
/* The Colead SL-5868P uses this. */
#define SERIALCOMM "2400/8n1"
#include <stdlib.h>
#include <glib.h>
+#include <errno.h>
+#include <string.h>
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include "protocol.h"
-#include <errno.h>
-#include <string.h>
static void process_packet(const struct sr_dev_inst *sdi)
{
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "libsigrok.h"
-#include "libsigrok-internal.h"
-#include "dso.h"
#include <string.h>
#include <glib.h>
#include <libusb.h>
+#include "libsigrok.h"
+#include "libsigrok-internal.h"
+#include "dso.h"
extern struct sr_dev_driver hantek_dso_driver_info;
#include <errno.h>
#include <math.h>
#include <string.h>
-
#include "protocol.h"
/* Forward declarations */
#include <errno.h>
#include <string.h>
-
#include "protocol.h"
/** Send data packets for current measurements. */
* @internal
*/
-
#ifndef LIBSIGROK_HARDWARE_MOTECH_LPS_30X_PROTOCOL_H
#define LIBSIGROK_HARDWARE_MOTECH_LPS_30X_PROTOCOL_H
#include "libsigrok.h"
#include "libsigrok-internal.h"
-
SR_PRIV int lps_process_status(struct sr_dev_inst* sdi, int stat);
SR_PRIV int lps_send_req(struct sr_serial_dev_inst *serial, const char* fmt, ...);
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "protocol.h"
#include <libserialport.h>
+#include "protocol.h"
#define SERIALCOMM "115200/8n1"
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "protocol.h"
#include <libserialport.h>
+#include "protocol.h"
extern SR_PRIV struct sr_dev_driver ols_driver_info;
#ifndef LIBSIGROK_HARDWARE_PIPISTRELLO_OLS_PROTOCOL_H
#define LIBSIGROK_HARDWARE_PIPISTRELLO_OLS_PROTOCOL_H
-#define USB_VENDOR_ID 0x0403
-#define USB_DEVICE_ID 0x6010
-#define USB_VENDOR_NAME "Saanlima"
-#define USB_IPRODUCT "Pipistrello LX45"
-
#include <stdint.h>
#include <string.h>
#include <glib.h>
#define LOG_PREFIX "p-ols"
+#define USB_VENDOR_ID 0x0403
+#define USB_DEVICE_ID 0x6010
+#define USB_VENDOR_NAME "Saanlima"
+#define USB_IPRODUCT "Pipistrello LX45"
+
#define FTDI_BUF_SIZE (16 * 1024)
#define NUM_CHANNELS 32
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "protocol.h"
-
#include <stdint.h>
#include <string.h>
#include <glib.h>
#include <math.h>
#include "libsigrok.h"
#include "libsigrok-internal.h"
+#include "protocol.h"
#define FPGA_FIRMWARE_18 FIRMWARE_DIR"/saleae-logic16-fpga-18.bitstream"
#define FPGA_FIRMWARE_33 FIRMWARE_DIR"/saleae-logic16-fpga-33.bitstream"
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "protocol.h"
-#include "libsigrok.h"
-#include "libsigrok-internal.h"
#include <glib.h>
#include <libusb.h>
#include <stdlib.h>
#include <string.h>
+#include "libsigrok.h"
+#include "libsigrok-internal.h"
+#include "protocol.h"
static const uint32_t scanopts[] = {
SR_CONF_CONN,
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "lwla.h"
-#include "protocol.h"
-#include "libsigrok-internal.h"
#include <errno.h>
#include <glib/gstdio.h>
+#include "libsigrok.h"
+#include "libsigrok-internal.h"
+#include "protocol.h"
+#include "lwla.h"
#define BITSTREAM_MAX_SIZE (256 * 1024) /* bitstream size limit for safety */
#define BITSTREAM_HEADER_SIZE 4 /* transfer header size in bytes */
#ifndef LIBSIGROK_HARDWARE_SYSCLK_LWLA_LWLA_H
#define LIBSIGROK_HARDWARE_SYSCLK_LWLA_LWLA_H
-#include "libsigrok.h"
#include <stdint.h>
#include <libusb.h>
#include <glib.h>
+#include "libsigrok.h"
struct sr_usb_dev_inst;
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "protocol.h"
#include <string.h>
+#include "protocol.h"
/* Bit mask for the RLE repeat-count-follows flag. */
#define RLE_FLAG_LEN_FOLLOWS ((uint64_t)1 << 35)
#define LOG_PREFIX "sysclk-lwla"
-#include "lwla.h"
-#include "libsigrok.h"
-#include "libsigrok-internal.h"
#include <stdint.h>
#include <glib.h>
+#include "libsigrok.h"
+#include "libsigrok-internal.h"
+#include "lwla.h"
/* For now, only the LWLA1034 is supported.
*/
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "protocol.h"
-
#include <string.h>
+#include "protocol.h"
static const uint32_t devopts[] = {
SR_CONF_THERMOMETER,
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "protocol.h"
-
#include <string.h>
#include <math.h>
+#include "protocol.h"
extern struct sr_dev_driver uni_t_ut32x_driver_info;
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "libsigrok.h"
-#include "libsigrok-internal.h"
-
#include <glib.h>
#include <string.h>
+#include "libsigrok.h"
+#include "libsigrok-internal.h"
#define LOG_PREFIX "scpi"
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "libsigrok.h"
-#include "libsigrok-internal.h"
-
#include <gpib/ib.h>
#include <string.h>
+#include "libsigrok.h"
+#include "libsigrok-internal.h"
#define LOG_PREFIX "scpi_gpib"
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "libsigrok.h"
-#include "libsigrok-internal.h"
-
#include <glib.h>
#include <stdlib.h>
#include <string.h>
+#include "libsigrok.h"
+#include "libsigrok-internal.h"
#define LOG_PREFIX "scpi_serial"
#include <winsock2.h>
#include <ws2tcpip.h>
#endif
-
-#include "libsigrok.h"
-#include "libsigrok-internal.h"
-
#include <glib.h>
#include <string.h>
#include <unistd.h>
#include <netdb.h>
#endif
#include <errno.h>
+#include "libsigrok.h"
+#include "libsigrok-internal.h"
#define LOG_PREFIX "scpi_tcp"
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "libsigrok.h"
-#include "libsigrok-internal.h"
-
#include <visa.h>
#include <string.h>
+#include "libsigrok.h"
+#include "libsigrok-internal.h"
#define LOG_PREFIX "scpi_visa"
#include <rpc/rpc.h>
#include <string.h>
-
#include "vxi.h"
#include "libsigrok.h"
#include "libsigrok-internal.h"