From 8846b5b85cbffa584da95b5d53a84f975027941b Mon Sep 17 00:00:00 2001 From: meepingsnesroms Date: Thu, 31 May 2018 17:55:38 -0700 Subject: [PATCH] Add IR speed codes These are very important to use IR and missing from official headers and docs. --- .../3dsIrForwarder/3dsIrBitRateCodes.txt | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 localTester/3dsIrForwarder/3dsIrBitRateCodes.txt diff --git a/localTester/3dsIrForwarder/3dsIrBitRateCodes.txt b/localTester/3dsIrForwarder/3dsIrBitRateCodes.txt new file mode 100644 index 0000000..5903fe8 --- /dev/null +++ b/localTester/3dsIrForwarder/3dsIrBitRateCodes.txt @@ -0,0 +1,25 @@ +3DS IR speed codes(there missing from libctru headers and docs): +https://www.3dbrew.org/wiki/IRU:SetBitRate + +Bitrate Values +Value Converted divisor value Bits-per-second / description +3 10 115200 +4 12 96000 +5 16 72000 +6 24 48000 (This is the default for IRU) +7 32 36000 +8 48 24000 +9 64 18000 +10 96 12000 +11 120 9600 +12 192 6000 +13 384 3000 +14 20 57600 +15 30 38400 +16 60 19200 +17 160 7200 +18 240 4800 + +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. \ No newline at end of file