fx2lafw: Added support for 20kHz and 25kHz sampling
This commit is contained in:
parent
897c1a2ee5
commit
79dc64985f
|
@ -68,7 +68,11 @@ SR_PRIV int command_start_acquisition(libusb_device_handle *devhdl,
|
|||
if ((SR_MHZ(48) % samplerate) == 0) {
|
||||
cmd.flags = CMD_START_FLAGS_CLK_48MHZ;
|
||||
delay = SR_MHZ(48) / samplerate - 1;
|
||||
} else if ((SR_MHZ(30) % samplerate) == 0) {
|
||||
if(delay > MAX_SAMPLE_DELAY)
|
||||
delay = 0;
|
||||
}
|
||||
|
||||
if (delay == 0 && (SR_MHZ(30) % samplerate) == 0) {
|
||||
cmd.flags = CMD_START_FLAGS_CLK_30MHZ;
|
||||
delay = SR_MHZ(30) / samplerate - 1;
|
||||
}
|
||||
|
|
|
@ -94,6 +94,8 @@ static const char *probe_names[] = {
|
|||
};
|
||||
|
||||
static uint64_t supported_samplerates[] = {
|
||||
SR_KHZ(20),
|
||||
SR_KHZ(25),
|
||||
SR_KHZ(50),
|
||||
SR_KHZ(100),
|
||||
SR_KHZ(200),
|
||||
|
|
Loading…
Reference in New Issue