Go to the documentation of this file.
20 #ifndef LIBSIGROK_HARDWARE_OPENBENCH_LOGIC_SNIFFER_OLS_H
21 #define LIBSIGROK_HARDWARE_OPENBENCH_LOGIC_SNIFFER_OLS_H
24 #define NUM_TRIGGER_STAGES 4
25 #define TRIGGER_TYPES "01"
26 #define SERIAL_SPEED B115200
27 #define CLOCK_RATE SR_MHZ(100)
28 #define MIN_NUM_SAMPLES 4
31 #define CMD_RESET 0x00
34 #define CMD_METADATA 0x04
35 #define CMD_SET_FLAGS 0x82
36 #define CMD_SET_DIVIDER 0x80
37 #define CMD_CAPTURE_SIZE 0x81
38 #define CMD_SET_TRIGGER_MASK_0 0xc0
39 #define CMD_SET_TRIGGER_MASK_1 0xc4
40 #define CMD_SET_TRIGGER_MASK_2 0xc8
41 #define CMD_SET_TRIGGER_MASK_3 0xcc
42 #define CMD_SET_TRIGGER_VALUE_0 0xc1
43 #define CMD_SET_TRIGGER_VALUE_1 0xc5
44 #define CMD_SET_TRIGGER_VALUE_2 0xc9
45 #define CMD_SET_TRIGGER_VALUE_3 0xcd
46 #define CMD_SET_TRIGGER_CONFIG_0 0xc2
47 #define CMD_SET_TRIGGER_CONFIG_1 0xc6
48 #define CMD_SET_TRIGGER_CONFIG_2 0xca
49 #define CMD_SET_TRIGGER_CONFIG_3 0xce
52 #define FLAG_DEMUX 0x01
53 #define FLAG_FILTER 0x02
54 #define FLAG_CHANNELGROUP_1 0x04
55 #define FLAG_CHANNELGROUP_2 0x08
56 #define FLAG_CHANNELGROUP_3 0x10
57 #define FLAG_CHANNELGROUP_4 0x20
58 #define FLAG_CLOCK_EXTERNAL 0x40
59 #define FLAG_CLOCK_INVERTED 0x80
60 #define FLAG_RLE 0x0100