libftdi Archives

Subject: Encoding of baudrate divisor and subdivisor

From: Bas van Dijk <v.dijk.bas@xxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Thu, 22 Oct 2009 10:58:25 +0200
Hello,

I'm trying to understand how the baudrate divisor and subdivisor are
encoded in the value and index fields of a 'SIO_SET_BAUDRATE_REQUEST'
control request.

I looked at the 'ftdi_convert_baudrate' function which does the actual
encoding but failed to understand how the encoding really works.

What I basically want to know is given a divisor for example: 3 and
subdivisor: 0.125 (1/8) how these values are encoded in the value and
index fields.

Thanks,

Bas

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread