IRU:SetBitRate

IRU:SetBitRate

Request #

Index WordDescription
0Header code [0x00090040]
1u8 bitrate value

Response #

Index WordDescription
0Header code
1Result code

Bitrate Values #

ValueConverted divisor valueBits-per-second / description
310115200
41296000
51672000
62448000 (This is the default for IRU)
73236000
84824000
96418000
109612000
111209600
121926000
133843000
142057600
153038400
166019200
171607200
182404800

The bps listed above is from code in IR module which converts the input value into actual bps, that function is only used with delay code however.

The converted value is the following(from a datasheet): “16-bit divisor for generation of the baud clock in the baud rate generator”. The baud/bit rate is calculated with the following, where clk is 1152000: bitrate = clk / divisor.

Description #

This sets the current bitrate. Error 0xE0E10FED is returned when the input value is outside of the above range. Error 0xF9610C02 is returned when the I2C code returns an error.