Re: [Ftdi-usb-sio-devel] (no subject)
Brought to you by:
bryder
From: Bill R. <br...@pa...> - 2002-10-16 00:52:54
|
I was thinking about using the POSIX VTIME/VMIN stuff to do this. The baudrate could be used to figure out the minimum latency is someone uses the VMIN value, and VTIME will almost translate directly at least up to 16ms anyway. I have sent off an email to FTDI today to get more info on the BM. Ian Abbott wrote: >On Monday 14 October 2002 12:39, Gilles GRENIER wrote: > > >>is it possible to set the latency timer different to 16ms (for >>FT232BM device with the actual (kernel 2.4.20) driver)? best regards >>Gilles GRENIER >> >> > >No, the current driver doesn't support this yet, mainly because the >FT232BM hasn't been around very long! > >I'm not sure where such a mechanism would fit into the driver - Perhaps >the Hayes ESP ioctls, TIOCGHAYESESP and TIOCSHAYESESP could be borrowed >so that setserial's 'rx_timeout' parameter could be used to set the >latency, but this would be a bit of a kludge. The legitimate values >for the 'rx_timeout' parameter (0 to 255) do correspond quite nicely >with the latency times that the FT232BM can be set to though (1 to 255 >ms)! > >Another possibility may be to make the latency depend on the baud rate >in some way, though that would be odd for the FT245BM USB FIFO device, >as it doesn't really have a baud rate. > > |