/* Set bits to select external TRG input edge. */
if (devc->cfg_trigger_source == TRIGGER_EXT_TRG)
switch (devc->cfg_trigger_slope) {
- case EDGE_POSITIVE: trigger_mask |= (uint64_t)1 << 35; break;
- case EDGE_NEGATIVE: trigger_mask |= (uint64_t)1 << 34; break;
+ case EDGE_POSITIVE:
+ trigger_mask |= (uint64_t)1 << 35;
+ break;
+ case EDGE_NEGATIVE:
+ trigger_mask |= (uint64_t)1 << 34;
+ break;
}
command[19] = LWLA_WORD_0(trigger_mask);
devc->state = STATE_READ_END;
}
-/* Decode an incoming reponse to a buffer fill level request and act on it
+/* Decode an incoming response to a buffer fill level request and act on it
* as appropriate. Note that this function changes the device context state.
*/
static void process_capture_length(const struct sr_dev_inst *sdi)
if (!match->channel->enabled)
/* Ignore disabled channels with a trigger. */
continue;
- channel_index = 1 << match->channel->index;
+ channel_index = (uint64_t)1 << match->channel->index;
devc->trigger_mask |= channel_index;
switch (match->match) {
case SR_TRIGGER_ONE: