* trigger on (rising or falling)
* The next state is 0x0C
* 0x0C Same as state 0x0F but expects the calibration
- * value for the first channel's position
+ * value for the first channel's position
* (POS1 in the schematics)
* The next state is 0x0D
* 0x0D Same as state 0x0F but expects the calibration
- * value for the second channel's position
+ * value for the second channel's position
* (POS2 in the schematics)
* The next state is 0x0E
* 0x0E Same as state 0x0F but expects the trigger level
SR_PRIV int hung_chang_dso_2100_poll(int fd, int revents, void *cb_data)
{
struct sr_datafeed_packet packet = { .type = SR_DF_FRAME_BEGIN };
- const struct sr_dev_inst *sdi;
+ struct sr_dev_inst *sdi;
struct dev_context *devc;
uint8_t state, buf[1000];
sr_session_send(sdi, &packet);
if (++devc->frame >= devc->frame_limit)
- hung_chang_dso_2100_dev_acquisition_stop(sdi);
+ sr_dev_acquisition_stop(sdi);
else
hung_chang_dso_2100_move_to(sdi, 0x21);