{
  "openapi": "3.1.1",
  "info": {
    "title": "Ohmforge UART, I²C and SPI Protocol Decoder API",
    "version": "1.0.0",
    "summary": "Decode UART (auto baud), I²C and SPI from logic-analyzer or scope CSV captures.",
    "description": "Every endpoint performs the same calculation as the human page and returns inputs, result, units, assumptions, sources, warnings and computedAt. MCP endpoint: /mcp."
  },
  "servers": [
    {
      "url": "https://ohmforgeprotocoldecoder.usefulweb.site"
    }
  ],
  "paths": {
    "/api/v1/calculate": {
      "post": {
        "operationId": "calculate",
        "summary": "Decode UART (auto baud), I²C and SPI from logic-analyzer or scope CSV captures.",
        "description": "Decodes serial buses from a capture: UART with automatic baud-rate detection and 5–9 data bits, parity and stop bits (8N1, 8E1, 7E1 …), I²C with START/repeated START/STOP, 7- and 10-bit addresses, read/write and ACK/NACK, and SPI in all four CPOL/CPHA modes with chip select, 4–32 bit words and MSB or LSB first. Reads sigrok/PulseView and logic-analyzer CSV (sampled or one row per change) and oscilloscope CSV, where analog channels are converted to logic levels with a threshold and hysteresis. Returns a frame table with error flags (framing, parity, break, NACK, incomplete words) and a timing diagram.\n\nMethodology:\n- Channels: 0/1 columns are logic channels; analog channels are converted with a Schmitt trigger (threshold midway between the IEEE 181 state levels unless given, hysteresis 10 % of the amplitude) and the edge times are interpolated. Roles are taken from the names you give, then from channel names (SCL, SDA, MOSI, MISO, CS, CLK, RX …), then by position.\n- UART: a frame starts at a falling edge after idle; every bit is sampled at its centre measured from that edge. The baud rate is detected from the shortest pulse width that several pulses share, refined over all pulses up to 12 bits long, and snapped to a standard rate within 3 %. A stop bit of 0 is a framing error, all-zero data with a 0 stop bit a break.\n- I²C (NXP UM10204): START/repeated START = SDA falls while SCL is high, STOP = SDA rises while SCL is high; data bits are sampled at SCL rising edges, 8 bits MSB first then the ACK bit (low = ACK). The first byte after START is the address with R/W; 11110XX starts a 10-bit address. A NACK on an address or written byte is flagged; the controller's NACK after the last byte of a read is the normal end.\n- SPI: CPOL = idle clock level, CPHA = 0 samples on the leading clock edge, CPHA = 1 on the trailing edge (modes 0–3). Words are framed by chip select; a word cut off by chip select is flagged as incomplete. Without chip select, words are counted from the first clock edge.\n\nDecoding needs a clean capture: sample at least 4× faster than the fastest bit (10× or more for UART), and use a threshold that suits the logic family. Glitches shorter than one sample are invisible. SMBus/PMBus packet error checking, UART flow control and multi-drop addressing are not interpreted.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "ohmforge_protocol_decoder",
        "x-owner-app": "ohmforge",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OhmforgeProtocolDecoderInput"
              },
              "examples": {
                "example1": {
                  "summary": "UART at 115200 baud, automatic detection (sigrok CSV)",
                  "value": {
                    "csv": "; CSV, generated by a sigrok-compatible exporter (synthetic example)\n; Channels (1/1): RX\n; Samplerate: 1 MHz\nTime(s),RX\n0.00000000,1\n0.00000100000000,1\n0.00000200000000,1\n0.00000300000000,1\n0.00000400000000,1\n0.00000500000000,1\n0.00000600000000,1\n0.00000700000000,1\n0.00000800000000,1\n0.00000900000000,1\n0.0000100000000,1\n0.0000110000000,1\n0.0000120000000,1\n0.0000130000000,1\n0.0000140000000,1\n0.0000150000000,1\n0.0000160000000,1\n0.0000170000000,1\n0.0000180000000,1\n0.0000190000000,1\n0.0000200000000,1\n0.0000210000000,1\n0.0000220000000,1\n0.0000230000000,1\n0.0000240000000,1\n0.0000250000000,1\n0.0000260000000,1\n0.0000270000000,1\n0.0000280000000,1\n0.0000290000000,1\n0.0000300000000,1\n0.0000310000000,1\n0.0000320000000,1\n0.0000330000000,1\n0.0000340000000,1\n0.0000350000000,1\n0.0000360000000,1\n0.0000370000000,1\n0.0000380000000,1\n0.0000390000000,1\n0.0000400000000,1\n0.0000410000000,1\n0.0000420000000,1\n0.0000430000000,1\n0.0000440000000,1\n0.0000450000000,1\n0.0000460000000,1\n0.0000470000000,1\n0.0000480000000,1\n0.0000490000000,1\n0.0000500000000,1\n0.0000510000000,1\n0.0000520000000,1\n0.0000530000000,1\n0.0000540000000,1\n0.0000550000000,1\n0.0000560000000,1\n0.0000570000000,1\n0.0000580000000,1\n0.0000590000000,1\n0.0000600000000,1\n0.0000610000000,1\n0.0000620000000,1\n0.0000630000000,1\n0.0000640000000,1\n0.0000650000000,1\n0.0000660000000,1\n0.0000670000000,1\n0.0000680000000,1\n0.0000690000000,1\n0.0000700000000,1\n0.0000710000000,1\n0.0000720000000,1\n0.0000730000000,1\n0.0000740000000,1\n0.0000750000000,1\n0.0000760000000,1\n0.0000770000000,1\n0.0000780000000,1\n0.0000790000000,1\n0.0000800000000,1\n0.0000810000000,1\n0.0000820000000,1\n0.0000830000000,1\n0.0000840000000,1\n0.0000850000000,1\n0.0000860000000,1\n0.0000870000000,0\n0.0000880000000,0\n0.0000890000000,0\n0.0000900000000,0\n0.0000910000000,0\n0.0000920000000,0\n0.0000930000000,0\n0.0000940000000,0\n0.0000950000000,0\n0.0000960000000,0\n0.0000970000000,0\n0.0000980000000,0\n0.0000990000000,0\n0.000100000000,0\n0.000101000000,0\n0.000102000000,0\n0.000103000000,0\n0.000104000000,0\n0.000105000000,0\n0.000106000000,0\n0.000107000000,0\n0.000108000000,0\n0.000109000000,0\n0.000110000000,0\n0.000111000000,0\n0.000112000000,0\n0.000113000000,0\n0.000114000000,0\n0.000115000000,0\n0.000116000000,0\n0.000117000000,0\n0.000118000000,0\n0.000119000000,0\n0.000120000000,0\n0.000121000000,0\n0.000122000000,1\n0.000123000000,1\n0.000124000000,1\n0.000125000000,1\n0.000126000000,1\n0.000127000000,1\n0.000128000000,1\n0.000129000000,1\n0.000130000000,1\n0.000131000000,0\n0.000132000000,0\n0.000133000000,0\n0.000134000000,0\n0.000135000000,0\n0.000136000000,0\n0.000137000000,0\n0.000138000000,0\n0.000139000000,0\n0.000140000000,0\n0.000141000000,0\n0.000142000000,0\n0.000143000000,0\n0.000144000000,0\n0.000145000000,0\n0.000146000000,0\n0.000147000000,0\n0.000148000000,1\n0.000149000000,1\n0.000150000000,1\n0.000151000000,1\n0.000152000000,1\n0.000153000000,1\n0.000154000000,1\n0.000155000000,1\n0.000156000000,1\n0.000157000000,0\n0.000158000000,0\n0.000159000000,0\n0.000160000000,0\n0.000161000000,0\n0.000162000000,0\n0.000163000000,0\n0.000164000000,0\n0.000165000000,1\n0.000166000000,1\n0.000167000000,1\n0.000168000000,1\n0.000169000000,1\n0.000170000000,1\n0.000171000000,1\n0.000172000000,1\n0.000173000000,1\n0.000174000000,1\n0.000175000000,1\n0.000176000000,1\n0.000177000000,1\n0.000178000000,1\n0.000179000000,1\n0.000180000000,1\n0.000181000000,1\n0.000182000000,1\n0.000183000000,0\n0.000184000000,0\n0.000185000000,0\n0.000186000000,0\n0.000187000000,0\n0.000188000000,0\n0.000189000000,0\n0.000190000000,0\n0.000191000000,1\n0.000192000000,1\n0.000193000000,1\n0.000194000000,1\n0.000195000000,1\n0.000196000000,1\n0.000197000000,1\n0.000198000000,1\n0.000199000000,1\n0.000200000000,0\n0.000201000000,0\n0.000202000000,0\n0.000203000000,0\n0.000204000000,0\n0.000205000000,0\n0.000206000000,0\n0.000207000000,0\n0.000208000000,0\n0.000209000000,1\n0.000210000000,1\n0.000211000000,1\n0.000212000000,1\n0.000213000000,1\n0.000214000000,1\n0.000215000000,1\n0.000216000000,1\n0.000217000000,1\n0.000218000000,0\n0.000219000000,0\n0.000220000000,0\n0.000221000000,0\n0.000222000000,0\n0.000223000000,0\n0.000224000000,0\n0.000225000000,0\n0.000226000000,0\n0.000227000000,0\n0.000228000000,0\n0.000229000000,0\n0.000230000000,0\n0.000231000000,0\n0.000232000000,0\n0.000233000000,0\n0.000234000000,0\n0.000235000000,1\n0.000236000000,1\n0.000237000000,1\n0.000238000000,1\n0.000239000000,1\n0.000240000000,1\n0.000241000000,1\n0.000242000000,1\n0.000243000000,1\n0.000244000000,1\n0.000245000000,1\n0.000246000000,1\n0.000247000000,1\n0.000248000000,1\n0.000249000000,1\n0.000250000000,1\n0.000251000000,1\n0.000252000000,0\n0.000253000000,0\n0.000254000000,0\n0.000255000000,0\n0.000256000000,0\n0.000257000000,0\n0.000258000000,0\n0.000259000000,0\n0.000260000000,0\n0.000261000000,1\n0.000262000000,1\n0.000263000000,1\n0.000264000000,1\n0.000265000000,1\n0.000266000000,1\n0.000267000000,1\n0.000268000000,1\n0.000269000000,1\n0.000270000000,1\n0.000271000000,1\n0.000272000000,1\n0.000273000000,1\n0.000274000000,1\n0.000275000000,1\n0.000276000000,1\n0.000277000000,1\n0.000278000000,0\n0.000279000000,0\n0.000280000000,0\n0.000281000000,0\n0.000282000000,0\n0.000283000000,0\n0.000284000000,0\n0.000285000000,0\n0.000286000000,0\n0.000287000000,0\n0.000288000000,0\n0.000289000000,0\n0.000290000000,0\n0.000291000000,0\n0.000292000000,0\n0.000293000000,0\n0.000294000000,0\n0.000295000000,0\n0.000296000000,0\n0.000297000000,0\n0.000298000000,0\n0.000299000000,0\n0.000300000000,0\n0.000301000000,0\n0.000302000000,0\n0.000303000000,0\n0.000304000000,1\n0.000305000000,1\n0.000306000000,1\n0.000307000000,1\n0.000308000000,1\n0.000309000000,1\n0.000310000000,1\n0.000311000000,1\n0.000312000000,1\n0.000313000000,1\n0.000314000000,1\n0.000315000000,1\n0.000316000000,1\n0.000317000000,1\n0.000318000000,1\n0.000319000000,1\n0.000320000000,1\n0.000321000000,1\n0.000322000000,0\n0.000323000000,0\n0.000324000000,0\n0.000325000000,0\n0.000326000000,0\n0.000327000000,0\n0.000328000000,0\n0.000329000000,0\n0.000330000000,1\n0.000331000000,1\n0.000332000000,1\n0.000333000000,1\n0.000334000000,1\n0.000335000000,1\n0.000336000000,1\n0.000337000000,1\n0.000338000000,1\n0.000339000000,1\n0.000340000000,1\n0.000341000000,1\n0.000342000000,1\n0.000343000000,1\n0.000344000000,1\n0.000345000000,1\n0.000346000000,1\n0.000347000000,1\n0.000348000000,0\n0.000349000000,0\n0.000350000000,0\n0.000351000000,0\n0.000352000000,0\n0.000353000000,0\n0.000354000000,0\n0.000355000000,0\n0.000356000000,1\n0.000357000000,1\n0.000358000000,1\n0.000359000000,1\n0.000360000000,1\n0.000361000000,1\n0.000362000000,1\n0.000363000000,1\n0.000364000000,1\n0.000365000000,1\n0.000366000000,1\n0.000367000000,1\n0.000368000000,1\n0.000369000000,1\n0.000370000000,1\n0.000371000000,1\n0.000372000000,1\n0.000373000000,1\n0.000374000000,0\n0.000375000000,0\n0.000376000000,0\n0.000377000000,0\n0.000378000000,0\n0.000379000000,0\n0.000380000000,0\n0.000381000000,0\n0.000382000000,0\n0.000383000000,0\n0.000384000000,0\n0.000385000000,0\n0.000386000000,0\n0.000387000000,0\n0.000388000000,0\n0.000389000000,0\n0.000390000000,0\n0.000391000000,0\n0.000392000000,0\n0.000393000000,0\n0.000394000000,0\n0.000395000000,0\n0.000396000000,0\n0.000397000000,0\n0.000398000000,0\n0.000399000000,0\n0.000400000000,1\n0.000401000000,1\n0.000402000000,1\n0.000403000000,1\n0.000404000000,1\n0.000405000000,1\n0.000406000000,1\n0.000407000000,1\n0.000408000000,1\n0.000409000000,1\n0.000410000000,1\n0.000411000000,1\n0.000412000000,1\n0.000413000000,1\n0.000414000000,1\n0.000415000000,1\n0.000416000000,1\n0.000417000000,0\n0.000418000000,0\n0.000419000000,0\n0.000420000000,0\n0.000421000000,0\n0.000422000000,0\n0.000423000000,0\n0.000424000000,0\n0.000425000000,0\n0.000426000000,1\n0.000427000000,1\n0.000428000000,1\n0.000429000000,1\n0.000430000000,1\n0.000431000000,1\n0.000432000000,1\n0.000433000000,1\n0.000434000000,1\n0.000435000000,1\n0.000436000000,1\n0.000437000000,1\n0.000438000000,1\n0.000439000000,1\n0.000440000000,1\n0.000441000000,1\n0.000442000000,1\n0.000443000000,0\n0.000444000000,0\n0.000445000000,0\n0.000446000000,0\n0.000447000000,0\n0.000448000000,0\n0.000449000000,0\n0.000450000000,0\n0.000451000000,0\n0.000452000000,1\n0.000453000000,1\n0.000454000000,1\n0.000455000000,1\n0.000456000000,1\n0.000457000000,1\n0.000458000000,1\n0.000459000000,1\n0.000460000000,1\n0.000461000000,1\n0.000462000000,1\n0.000463000000,1\n0.000464000000,1\n0.000465000000,1\n0.000466000000,1\n0.000467000000,1\n0.000468000000,1\n0.000469000000,0\n0.000470000000,0\n0.000471000000,0\n0.000472000000,0\n0.000473000000,0\n0.000474000000,0\n0.000475000000,0\n0.000476000000,0\n0.000477000000,0\n0.000478000000,1\n0.000479000000,1\n0.000480000000,1\n0.000481000000,1\n0.000482000000,1\n0.000483000000,1\n0.000484000000,1\n0.000485000000,1\n0.000486000000,1\n0.000487000000,1\n0.000488000000,1\n0.000489000000,1\n0.000490000000,1\n0.000491000000,1\n0.000492000000,1\n0.000493000000,1\n0.000494000000,1\n0.000495000000,1\n0.000496000000,1\n0.000497000000,1\n0.000498000000,1\n0.000499000000,1\n0.000500000000,1\n0.000501000000,1\n0.000502000000,1\n0.000503000000,1\n0.000504000000,1\n0.000505000000,1\n0.000506000000,1\n0.000507000000,1\n0.000508000000,1\n0.000509000000,1\n0.000510000000,1\n0.000511000000,1\n0.000512000000,1\n0.000513000000,0\n0.000514000000,0\n0.000515000000,0\n0.000516000000,0\n0.000517000000,0\n0.000518000000,0\n0.000519000000,0\n0.000520000000,0\n0.000521000000,1\n0.000522000000,1\n0.000523000000,1\n0.000524000000,1\n0.000525000000,1\n0.000526000000,1\n0.000527000000,1\n0.000528000000,1\n0.000529000000,1\n0.000530000000,1\n0.000531000000,1\n0.000532000000,1\n0.000533000000,1\n0.000534000000,1\n0.000535000000,1\n0.000536000000,1\n0.000537000000,1\n0.000538000000,1\n0.000539000000,0\n0.000540000000,0\n0.000541000000,0\n0.000542000000,0\n0.000543000000,0\n0.000544000000,0\n0.000545000000,0\n0.000546000000,0\n0.000547000000,1\n0.000548000000,1\n0.000549000000,1\n0.000550000000,1\n0.000551000000,1\n0.000552000000,1\n0.000553000000,1\n0.000554000000,1\n0.000555000000,1\n0.000556000000,1\n0.000557000000,1\n0.000558000000,1\n0.000559000000,1\n0.000560000000,1\n0.000561000000,1\n0.000562000000,1\n0.000563000000,1\n0.000564000000,1\n0.000565000000,0\n0.000566000000,0\n0.000567000000,0\n0.000568000000,0\n0.000569000000,0\n0.000570000000,0\n0.000571000000,0\n0.000572000000,0\n0.000573000000,0\n0.000574000000,0\n0.000575000000,0\n0.000576000000,0\n0.000577000000,0\n0.000578000000,0\n0.000579000000,0\n0.000580000000,0\n0.000581000000,0\n0.000582000000,0\n0.000583000000,0\n0.000584000000,0\n0.000585000000,0\n0.000586000000,0\n0.000587000000,0\n0.000588000000,0\n0.000589000000,0\n0.000590000000,0\n0.000591000000,1\n0.000592000000,1\n0.000593000000,1\n0.000594000000,1\n0.000595000000,1\n0.000596000000,1\n0.000597000000,1\n0.000598000000,1\n0.000599000000,1\n0.000600000000,1\n0.000601000000,1\n0.000602000000,1\n0.000603000000,1\n0.000604000000,1\n0.000605000000,1\n0.000606000000,1\n0.000607000000,1\n0.000608000000,0\n0.000609000000,0\n0.000610000000,0\n0.000611000000,0\n0.000612000000,0\n0.000613000000,0\n0.000614000000,0\n0.000615000000,0\n0.000616000000,0\n0.000617000000,1\n0.000618000000,1\n0.000619000000,1\n0.000620000000,1\n0.000621000000,1\n0.000622000000,1\n0.000623000000,1\n0.000624000000,1\n0.000625000000,0\n0.000626000000,0\n0.000627000000,0\n0.000628000000,0\n0.000629000000,0\n0.000630000000,0\n0.000631000000,0\n0.000632000000,0\n0.000633000000,0\n0.000634000000,0\n0.000635000000,0\n0.000636000000,0\n0.000637000000,0\n0.000638000000,0\n0.000639000000,0\n0.000640000000,0\n0.000641000000,0\n0.000642000000,0\n0.000643000000,1\n0.000644000000,1\n0.000645000000,1\n0.000646000000,1\n0.000647000000,1\n0.000648000000,1\n0.000649000000,1\n0.000650000000,1\n0.000651000000,1\n0.000652000000,1\n0.000653000000,1\n0.000654000000,1\n0.000655000000,1\n0.000656000000,1\n0.000657000000,1\n0.000658000000,1\n0.000659000000,1\n0.000660000000,0\n0.000661000000,0\n0.000662000000,0\n0.000663000000,0\n0.000664000000,0\n0.000665000000,0\n0.000666000000,0\n0.000667000000,0\n0.000668000000,0\n0.000669000000,0\n0.000670000000,0\n0.000671000000,0\n0.000672000000,0\n0.000673000000,0\n0.000674000000,0\n0.000675000000,0\n0.000676000000,0\n0.000677000000,0\n0.000678000000,0\n0.000679000000,0\n0.000680000000,0\n0.000681000000,0\n0.000682000000,0\n0.000683000000,0\n0.000684000000,0\n0.000685000000,0\n0.000686000000,0\n0.000687000000,0\n0.000688000000,0\n0.000689000000,0\n0.000690000000,0\n0.000691000000,0\n0.000692000000,0\n0.000693000000,0\n0.000694000000,0\n0.000695000000,0\n0.000696000000,0\n0.000697000000,0\n0.000698000000,0\n0.000699000000,0\n0.000700000000,0\n0.000701000000,0\n0.000702000000,0\n0.000703000000,0\n0.000704000000,0\n0.000705000000,0\n0.000706000000,0\n0.000707000000,0\n0.000708000000,0\n0.000709000000,0\n0.000710000000,0\n0.000711000000,0\n0.000712000000,1\n0.000713000000,1\n0.000714000000,1\n0.000715000000,1\n0.000716000000,1\n0.000717000000,1\n0.000718000000,1\n0.000719000000,1\n0.000720000000,1\n0.000721000000,0\n0.000722000000,0\n0.000723000000,0\n0.000724000000,0\n0.000725000000,0\n0.000726000000,0\n0.000727000000,0\n0.000728000000,0\n0.000729000000,0\n0.000730000000,0\n0.000731000000,0\n0.000732000000,0\n0.000733000000,0\n0.000734000000,0\n0.000735000000,0\n0.000736000000,0\n0.000737000000,0\n0.000738000000,1\n0.000739000000,1\n0.000740000000,1\n0.000741000000,1\n0.000742000000,1\n0.000743000000,1\n0.000744000000,1\n0.000745000000,1\n0.000746000000,1\n0.000747000000,1\n0.000748000000,1\n0.000749000000,1\n0.000750000000,1\n0.000751000000,1\n0.000752000000,1\n0.000753000000,1\n0.000754000000,1\n0.000755000000,1\n0.000756000000,0\n0.000757000000,0\n0.000758000000,0\n0.000759000000,0\n0.000760000000,0\n0.000761000000,0\n0.000762000000,0\n0.000763000000,0\n0.000764000000,1\n0.000765000000,1\n0.000766000000,1\n0.000767000000,1\n0.000768000000,1\n0.000769000000,1\n0.000770000000,1\n0.000771000000,1\n0.000772000000,1\n0.000773000000,1\n0.000774000000,1\n0.000775000000,1\n0.000776000000,1\n0.000777000000,1\n0.000778000000,1\n0.000779000000,1\n0.000780000000,1\n0.000781000000,1\n0.000782000000,1\n0.000783000000,1\n0.000784000000,1\n0.000785000000,1\n0.000786000000,1\n0.000787000000,1\n0.000788000000,1\n0.000789000000,1\n0.000790000000,1\n0.000791000000,1\n0.000792000000,1\n0.000793000000,1\n0.000794000000,1\n0.000795000000,1\n0.000796000000,1\n0.000797000000,1\n0.000798000000,1\n0.000799000000,0\n0.000800000000,0\n0.000801000000,0\n0.000802000000,0\n0.000803000000,0\n0.000804000000,0\n0.000805000000,0\n0.000806000000,0\n0.000807000000,0\n0.000808000000,0\n0.000809000000,0\n0.000810000000,0\n0.000811000000,0\n0.000812000000,0\n0.000813000000,0\n0.000814000000,0\n0.000815000000,0\n0.000816000000,1\n0.000817000000,1\n0.000818000000,1\n0.000819000000,1\n0.000820000000,1\n0.000821000000,1\n0.000822000000,1\n0.000823000000,1\n0.000824000000,1\n0.000825000000,0\n0.000826000000,0\n0.000827000000,0\n0.000828000000,0\n0.000829000000,0\n0.000830000000,0\n0.000831000000,0\n0.000832000000,0\n0.000833000000,0\n0.000834000000,1\n0.000835000000,1\n0.000836000000,1\n0.000837000000,1\n0.000838000000,1\n0.000839000000,1\n0.000840000000,1\n0.000841000000,1\n0.000842000000,1\n0.000843000000,1\n0.000844000000,1\n0.000845000000,1\n0.000846000000,1\n0.000847000000,1\n0.000848000000,1\n0.000849000000,1\n0.000850000000,1\n0.000851000000,0\n0.000852000000,0\n0.000853000000,0\n0.000854000000,0\n0.000855000000,0\n0.000856000000,0\n0.000857000000,0\n0.000858000000,0\n0.000859000000,0\n0.000860000000,0\n0.000861000000,0\n0.000862000000,0\n0.000863000000,0\n0.000864000000,0\n0.000865000000,0\n0.000866000000,0\n0.000867000000,0\n0.000868000000,0\n0.000869000000,0\n0.000870000000,0\n0.000871000000,0\n0.000872000000,0\n0.000873000000,0\n0.000874000000,0\n0.000875000000,0\n0.000876000000,0\n0.000877000000,0\n0.000878000000,0\n0.000879000000,0\n0.000880000000,0\n0.000881000000,0\n0.000882000000,0\n0.000883000000,0\n0.000884000000,0\n0.000885000000,0\n0.000886000000,1\n0.000887000000,1\n0.000888000000,1\n0.000889000000,1\n0.000890000000,1\n0.000891000000,1\n0.000892000000,1\n0.000893000000,1\n0.000894000000,1\n0.000895000000,0\n0.000896000000,0\n0.000897000000,0\n0.000898000000,0\n0.000899000000,0\n0.000900000000,0\n0.000901000000,0\n0.000902000000,0\n0.000903000000,1\n0.000904000000,1\n0.000905000000,1\n0.000906000000,1\n0.000907000000,1\n0.000908000000,1\n0.000909000000,1\n0.000910000000,1\n0.000911000000,1\n0.000912000000,1\n0.000913000000,1\n0.000914000000,1\n0.000915000000,1\n0.000916000000,1\n0.000917000000,1\n0.000918000000,1\n0.000919000000,1\n0.000920000000,1\n0.000921000000,0\n0.000922000000,0\n0.000923000000,0\n0.000924000000,0\n0.000925000000,0\n0.000926000000,0\n0.000927000000,0\n0.000928000000,0\n0.000929000000,1\n0.000930000000,1\n0.000931000000,1\n0.000932000000,1\n0.000933000000,1\n0.000934000000,1\n0.000935000000,1\n0.000936000000,1\n0.000937000000,1\n0.000938000000,1\n0.000939000000,1\n0.000940000000,1\n0.000941000000,1\n0.000942000000,1\n0.000943000000,1\n0.000944000000,1\n0.000945000000,1\n0.000946000000,1\n0.000947000000,0\n0.000948000000,0\n0.000949000000,0\n0.000950000000,0\n0.000951000000,0\n0.000952000000,0\n0.000953000000,0\n0.000954000000,0\n0.000955000000,1\n0.000956000000,1\n0.000957000000,1\n0.000958000000,1\n0.000959000000,1\n0.000960000000,1\n0.000961000000,1\n0.000962000000,1\n0.000963000000,1\n0.000964000000,0\n0.000965000000,0\n0.000966000000,0\n0.000967000000,0\n0.000968000000,0\n0.000969000000,0\n0.000970000000,0\n0.000971000000,0\n0.000972000000,0\n0.000973000000,1\n0.000974000000,1\n0.000975000000,1\n0.000976000000,1\n0.000977000000,1\n0.000978000000,1\n0.000979000000,1\n0.000980000000,1\n0.000981000000,1\n0.000982000000,1\n0.000983000000,1\n0.000984000000,1\n0.000985000000,1\n0.000986000000,1\n0.000987000000,1\n0.000988000000,1\n0.000989000000,1\n0.000990000000,0\n0.000991000000,0\n0.000992000000,0\n0.000993000000,0\n0.000994000000,0\n0.000995000000,0\n0.000996000000,0\n0.000997000000,0\n0.000998000000,0\n0.000999000000,1\n0.00100000000,1\n0.00100100000,1\n0.00100200000,1\n0.00100300000,1\n0.00100400000,1\n0.00100500000,1\n0.00100600000,1\n0.00100700000,1\n0.00100800000,1\n0.00100900000,1\n0.00101000000,1\n0.00101100000,1\n0.00101200000,1\n0.00101300000,1\n0.00101400000,1\n0.00101500000,1\n0.00101600000,0\n0.00101700000,0\n0.00101800000,0\n0.00101900000,0\n0.00102000000,0\n0.00102100000,0\n0.00102200000,0\n0.00102300000,0\n0.00102400000,0\n0.00102500000,1\n0.00102600000,1\n0.00102700000,1\n0.00102800000,1\n0.00102900000,1\n0.00103000000,1\n0.00103100000,1\n0.00103200000,1\n0.00103300000,1\n0.00103400000,1\n0.00103500000,1\n0.00103600000,1\n0.00103700000,1\n0.00103800000,1\n0.00103900000,1\n0.00104000000,1\n0.00104100000,1\n0.00104200000,0\n0.00104300000,0\n0.00104400000,0\n0.00104500000,0\n0.00104600000,0\n0.00104700000,0\n0.00104800000,0\n0.00104900000,0\n0.00105000000,0\n0.00105100000,0\n0.00105200000,0\n0.00105300000,0\n0.00105400000,0\n0.00105500000,0\n0.00105600000,0\n0.00105700000,0\n0.00105800000,0\n0.00105900000,0\n0.00106000000,1\n0.00106100000,1\n0.00106200000,1\n0.00106300000,1\n0.00106400000,1\n0.00106500000,1\n0.00106600000,1\n0.00106700000,1\n0.00106800000,1\n0.00106900000,1\n0.00107000000,1\n0.00107100000,1\n0.00107200000,1\n0.00107300000,1\n0.00107400000,1\n0.00107500000,1\n0.00107600000,1\n0.00107700000,0\n0.00107800000,0\n0.00107900000,0\n0.00108000000,0\n0.00108100000,0\n0.00108200000,0\n0.00108300000,0\n0.00108400000,0\n0.00108500000,0\n0.00108600000,0\n0.00108700000,0\n0.00108800000,0\n0.00108900000,0\n0.00109000000,0\n0.00109100000,0\n0.00109200000,0\n0.00109300000,0\n0.00109400000,1\n0.00109500000,1\n0.00109600000,1\n0.00109700000,1\n0.00109800000,1\n0.00109900000,1\n0.00110000000,1\n0.00110100000,1\n0.00110200000,1\n0.00110300000,1\n0.00110400000,1\n0.00110500000,1\n0.00110600000,1\n0.00110700000,1\n0.00110800000,1\n0.00110900000,1\n0.00111000000,1\n0.00111100000,1\n0.00111200000,0\n0.00111300000,0\n0.00111400000,0\n0.00111500000,0\n0.00111600000,0\n0.00111700000,0\n0.00111800000,0\n0.00111900000,0\n0.00112000000,1\n0.00112100000,1\n0.00112200000,1\n0.00112300000,1\n0.00112400000,1\n0.00112500000,1\n0.00112600000,1\n0.00112700000,1\n0.00112800000,1\n0.00112900000,1\n0.00113000000,1\n0.00113100000,1\n0.00113200000,1\n0.00113300000,1\n0.00113400000,1\n0.00113500000,1\n0.00113600000,1\n0.00113700000,1\n0.00113800000,0\n0.00113900000,0\n0.00114000000,0\n0.00114100000,0\n0.00114200000,0\n0.00114300000,0\n0.00114400000,0\n0.00114500000,0\n0.00114600000,1\n0.00114700000,1\n0.00114800000,1\n0.00114900000,1\n0.00115000000,1\n0.00115100000,1\n0.00115200000,1\n0.00115300000,1\n0.00115400000,1\n0.00115500000,1\n0.00115600000,1\n0.00115700000,1\n0.00115800000,1\n0.00115900000,1\n0.00116000000,1\n0.00116100000,1\n0.00116200000,1\n0.00116300000,1\n0.00116400000,1\n0.00116500000,1\n0.00116600000,1\n0.00116700000,1\n0.00116800000,1\n0.00116900000,1\n0.00117000000,1\n0.00117100000,1\n0.00117200000,1\n0.00117300000,1\n0.00117400000,1\n0.00117500000,1\n0.00117600000,1\n0.00117700000,1\n0.00117800000,1\n0.00117900000,1\n0.00118000000,1\n0.00118100000,0\n0.00118200000,0\n0.00118300000,0\n0.00118400000,0\n0.00118500000,0\n0.00118600000,0\n0.00118700000,0\n0.00118800000,0\n0.00118900000,0\n0.00119000000,1\n0.00119100000,1\n0.00119200000,1\n0.00119300000,1\n0.00119400000,1\n0.00119500000,1\n0.00119600000,1\n0.00119700000,1\n0.00119800000,1\n0.00119900000,1\n0.00120000000,1\n0.00120100000,1\n0.00120200000,1\n0.00120300000,1\n0.00120400000,1\n0.00120500000,1\n0.00120600000,1\n0.00120700000,0\n0.00120800000,0\n0.00120900000,0\n0.00121000000,0\n0.00121100000,0\n0.00121200000,0\n0.00121300000,0\n0.00121400000,0\n0.00121500000,0\n0.00121600000,1\n0.00121700000,1\n0.00121800000,1\n0.00121900000,1\n0.00122000000,1\n0.00122100000,1\n0.00122200000,1\n0.00122300000,1\n0.00122400000,1\n0.00122500000,1\n0.00122600000,1\n0.00122700000,1\n0.00122800000,1\n0.00122900000,1\n0.00123000000,1\n0.00123100000,1\n0.00123200000,1\n0.00123300000,0\n0.00123400000,0\n0.00123500000,0\n0.00123600000,0\n0.00123700000,0\n0.00123800000,0\n0.00123900000,0\n0.00124000000,0\n0.00124100000,0\n0.00124200000,0\n0.00124300000,0\n0.00124400000,0\n0.00124500000,0\n0.00124600000,0\n0.00124700000,0\n0.00124800000,0\n0.00124900000,0\n0.00125000000,1\n0.00125100000,1\n0.00125200000,1\n0.00125300000,1\n0.00125400000,1\n0.00125500000,1\n0.00125600000,1\n0.00125700000,1\n0.00125800000,1\n0.00125900000,0\n0.00126000000,0\n0.00126100000,0\n0.00126200000,0\n0.00126300000,0\n0.00126400000,0\n0.00126500000,0\n0.00126600000,0\n0.00126700000,0\n0.00126800000,0\n0.00126900000,0\n0.00127000000,0\n0.00127100000,0\n0.00127200000,0\n0.00127300000,0\n0.00127400000,0\n0.00127500000,0\n0.00127600000,0\n0.00127700000,1\n0.00127800000,1\n0.00127900000,1\n0.00128000000,1\n0.00128100000,1\n0.00128200000,1\n0.00128300000,1\n0.00128400000,1\n0.00128500000,1\n0.00128600000,1\n0.00128700000,1\n0.00128800000,1\n0.00128900000,1\n0.00129000000,1\n0.00129100000,1\n0.00129200000,1\n0.00129300000,1\n0.00129400000,1\n0.00129500000,1\n0.00129600000,1\n0.00129700000,1\n0.00129800000,1\n0.00129900000,1\n0.00130000000,1\n0.00130100000,1\n0.00130200000,1\n0.00130300000,0\n0.00130400000,0\n0.00130500000,0\n0.00130600000,0\n0.00130700000,0\n0.00130800000,0\n0.00130900000,0\n0.00131000000,0\n0.00131100000,1\n0.00131200000,1\n0.00131300000,1\n0.00131400000,1\n0.00131500000,1\n0.00131600000,1\n0.00131700000,1\n0.00131800000,1\n0.00131900000,1\n0.00132000000,1\n0.00132100000,1\n0.00132200000,1\n0.00132300000,1\n0.00132400000,1\n0.00132500000,1\n0.00132600000,1\n0.00132700000,1\n0.00132800000,1\n0.00132900000,0\n0.00133000000,0\n0.00133100000,0\n0.00133200000,0\n0.00133300000,0\n0.00133400000,0\n0.00133500000,0\n0.00133600000,0\n0.00133700000,1\n0.00133800000,1\n0.00133900000,1\n0.00134000000,1\n0.00134100000,1\n0.00134200000,1\n0.00134300000,1\n0.00134400000,1\n0.00134500000,1\n0.00134600000,1\n0.00134700000,1\n0.00134800000,1\n0.00134900000,1\n0.00135000000,1\n0.00135100000,1\n0.00135200000,1\n0.00135300000,1\n0.00135400000,1\n0.00135500000,1\n0.00135600000,1\n0.00135700000,1\n0.00135800000,1\n0.00135900000,1\n0.00136000000,1\n0.00136100000,1\n0.00136200000,1\n0.00136300000,0\n0.00136400000,0\n0.00136500000,0\n0.00136600000,0\n0.00136700000,0\n0.00136800000,0\n0.00136900000,0\n0.00137000000,0\n0.00137100000,0\n0.00137200000,0\n0.00137300000,0\n0.00137400000,0\n0.00137500000,0\n0.00137600000,0\n0.00137700000,0\n0.00137800000,0\n0.00137900000,0\n0.00138000000,0\n0.00138100000,1\n0.00138200000,1\n0.00138300000,1\n0.00138400000,1\n0.00138500000,1\n0.00138600000,1\n0.00138700000,1\n0.00138800000,1\n0.00138900000,1\n0.00139000000,1\n0.00139100000,1\n0.00139200000,1\n0.00139300000,1\n0.00139400000,1\n0.00139500000,1\n0.00139600000,1\n0.00139700000,1\n0.00139800000,0\n0.00139900000,0\n0.00140000000,0\n0.00140100000,0\n0.00140200000,0\n0.00140300000,0\n0.00140400000,0\n0.00140500000,0\n0.00140600000,0\n0.00140700000,1\n0.00140800000,1\n0.00140900000,1\n0.00141000000,1\n0.00141100000,1\n0.00141200000,1\n0.00141300000,1\n0.00141400000,1\n0.00141500000,1\n0.00141600000,1\n0.00141700000,1\n0.00141800000,1\n0.00141900000,1\n0.00142000000,1\n0.00142100000,1\n0.00142200000,1\n0.00142300000,1\n0.00142400000,0\n0.00142500000,0\n0.00142600000,0\n0.00142700000,0\n0.00142800000,0\n0.00142900000,0\n0.00143000000,0\n0.00143100000,0\n0.00143200000,0\n0.00143300000,1\n0.00143400000,1\n0.00143500000,1\n0.00143600000,1\n0.00143700000,1\n0.00143800000,1\n0.00143900000,1\n0.00144000000,1\n0.00144100000,0\n0.00144200000,0\n0.00144300000,0\n0.00144400000,0\n0.00144500000,0\n0.00144600000,0\n0.00144700000,0\n0.00144800000,0\n0.00144900000,0\n0.00145000000,1\n0.00145100000,1\n0.00145200000,1\n0.00145300000,1\n0.00145400000,1\n0.00145500000,1\n0.00145600000,1\n0.00145700000,1\n0.00145800000,1\n0.00145900000,0\n0.00146000000,0\n0.00146100000,0\n0.00146200000,0\n0.00146300000,0\n0.00146400000,0\n0.00146500000,0\n0.00146600000,0\n0.00146700000,0\n0.00146800000,0\n0.00146900000,0\n0.00147000000,0\n0.00147100000,0\n0.00147200000,0\n0.00147300000,0\n0.00147400000,0\n0.00147500000,0\n0.00147600000,1\n0.00147700000,1\n0.00147800000,1\n0.00147900000,1\n0.00148000000,1\n0.00148100000,1\n0.00148200000,1\n0.00148300000,1\n0.00148400000,1\n0.00148500000,1\n0.00148600000,1\n0.00148700000,1\n0.00148800000,1\n0.00148900000,1\n0.00149000000,1\n0.00149100000,1\n0.00149200000,1\n0.00149300000,1\n0.00149400000,0\n0.00149500000,0\n0.00149600000,0\n0.00149700000,0\n0.00149800000,0\n0.00149900000,0\n0.00150000000,0\n0.00150100000,0\n0.00150200000,1\n0.00150300000,1\n0.00150400000,1\n0.00150500000,1\n0.00150600000,1\n0.00150700000,1\n0.00150800000,1\n0.00150900000,1\n0.00151000000,1\n0.00151100000,1\n0.00151200000,1\n0.00151300000,1\n0.00151400000,1\n0.00151500000,1\n0.00151600000,1\n0.00151700000,1\n0.00151800000,1\n0.00151900000,1\n0.00152000000,0\n0.00152100000,0\n0.00152200000,0\n0.00152300000,0\n0.00152400000,0\n0.00152500000,0\n0.00152600000,0\n0.00152700000,0\n0.00152800000,1\n0.00152900000,1\n0.00153000000,1\n0.00153100000,1\n0.00153200000,1\n0.00153300000,1\n0.00153400000,1\n0.00153500000,1\n0.00153600000,1\n0.00153700000,0\n0.00153800000,0\n0.00153900000,0\n0.00154000000,0\n0.00154100000,0\n0.00154200000,0\n0.00154300000,0\n0.00154400000,0\n0.00154500000,0\n0.00154600000,0\n0.00154700000,0\n0.00154800000,0\n0.00154900000,0\n0.00155000000,0\n0.00155100000,0\n0.00155200000,0\n0.00155300000,0\n0.00155400000,0\n0.00155500000,0\n0.00155600000,0\n0.00155700000,0\n0.00155800000,0\n0.00155900000,0\n0.00156000000,0\n0.00156100000,0\n0.00156200000,0\n0.00156300000,0\n0.00156400000,0\n0.00156500000,0\n0.00156600000,0\n0.00156700000,0\n0.00156800000,0\n0.00156900000,0\n0.00157000000,0\n0.00157100000,0\n0.00157200000,1\n0.00157300000,1\n0.00157400000,1\n0.00157500000,1\n0.00157600000,1\n0.00157700000,1\n0.00157800000,1\n0.00157900000,1\n0.00158000000,0\n0.00158100000,0\n0.00158200000,0\n0.00158300000,0\n0.00158400000,0\n0.00158500000,0\n0.00158600000,0\n0.00158700000,0\n0.00158800000,0\n0.00158900000,0\n0.00159000000,0\n0.00159100000,0\n0.00159200000,0\n0.00159300000,0\n0.00159400000,0\n0.00159500000,0\n0.00159600000,0\n0.00159700000,0\n0.00159800000,1\n0.00159900000,1\n0.00160000000,1\n0.00160100000,1\n0.00160200000,1\n0.00160300000,1\n0.00160400000,1\n0.00160500000,1\n0.00160600000,1\n0.00160700000,1\n0.00160800000,1\n0.00160900000,1\n0.00161000000,1\n0.00161100000,1\n0.00161200000,1\n0.00161300000,1\n0.00161400000,1\n0.00161500000,0\n0.00161600000,0\n0.00161700000,0\n0.00161800000,0\n0.00161900000,0\n0.00162000000,0\n0.00162100000,0\n0.00162200000,0\n0.00162300000,0\n0.00162400000,1\n0.00162500000,1\n0.00162600000,1\n0.00162700000,1\n0.00162800000,1\n0.00162900000,1\n0.00163000000,1\n0.00163100000,1\n0.00163200000,0\n0.00163300000,0\n0.00163400000,0\n0.00163500000,0\n0.00163600000,0\n0.00163700000,0\n0.00163800000,0\n0.00163900000,0\n0.00164000000,0\n0.00164100000,1\n0.00164200000,1\n0.00164300000,1\n0.00164400000,1\n0.00164500000,1\n0.00164600000,1\n0.00164700000,1\n0.00164800000,1\n0.00164900000,1\n0.00165000000,1\n0.00165100000,1\n0.00165200000,1\n0.00165300000,1\n0.00165400000,1\n0.00165500000,1\n0.00165600000,1\n0.00165700000,1\n0.00165800000,0\n0.00165900000,0\n0.00166000000,0\n0.00166100000,0\n0.00166200000,0\n0.00166300000,0\n0.00166400000,0\n0.00166500000,0\n0.00166600000,0\n0.00166700000,0\n0.00166800000,0\n0.00166900000,0\n0.00167000000,0\n0.00167100000,0\n0.00167200000,0\n0.00167300000,0\n0.00167400000,0\n0.00167500000,0\n0.00167600000,0\n0.00167700000,0\n0.00167800000,0\n0.00167900000,0\n0.00168000000,0\n0.00168100000,0\n0.00168200000,0\n0.00168300000,0\n0.00168400000,0\n0.00168500000,0\n0.00168600000,0\n0.00168700000,0\n0.00168800000,0\n0.00168900000,0\n0.00169000000,0\n0.00169100000,0\n0.00169200000,0\n0.00169300000,1\n0.00169400000,1\n0.00169500000,1\n0.00169600000,1\n0.00169700000,1\n0.00169800000,1\n0.00169900000,1\n0.00170000000,1\n0.00170100000,1\n0.00170200000,1\n0.00170300000,1\n0.00170400000,1\n0.00170500000,1\n0.00170600000,1\n0.00170700000,1\n0.00170800000,1\n0.00170900000,1\n0.00171000000,1\n0.00171100000,0\n0.00171200000,0\n0.00171300000,0\n0.00171400000,0\n0.00171500000,0\n0.00171600000,0\n0.00171700000,0\n0.00171800000,0\n0.00171900000,0\n0.00172000000,0\n0.00172100000,0\n0.00172200000,0\n0.00172300000,0\n0.00172400000,0\n0.00172500000,0\n0.00172600000,0\n0.00172700000,0\n0.00172800000,1\n0.00172900000,1\n0.00173000000,1\n0.00173100000,1\n0.00173200000,1\n0.00173300000,1\n0.00173400000,1\n0.00173500000,1\n0.00173600000,1\n0.00173700000,0\n0.00173800000,0\n0.00173900000,0\n0.00174000000,0\n0.00174100000,0\n0.00174200000,0\n0.00174300000,0\n0.00174400000,0\n0.00174500000,1\n0.00174600000,1\n0.00174700000,1\n0.00174800000,1\n0.00174900000,1\n0.00175000000,1\n0.00175100000,1\n0.00175200000,1\n0.00175300000,1\n0.00175400000,0\n0.00175500000,0\n0.00175600000,0\n0.00175700000,0\n0.00175800000,0\n0.00175900000,0\n0.00176000000,0\n0.00176100000,0\n0.00176200000,0\n0.00176300000,0\n0.00176400000,0\n0.00176500000,0\n0.00176600000,0\n0.00176700000,0\n0.00176800000,0\n0.00176900000,0\n0.00177000000,0\n0.00177100000,0\n0.00177200000,0\n0.00177300000,0\n0.00177400000,0\n0.00177500000,0\n0.00177600000,0\n0.00177700000,0\n0.00177800000,0\n0.00177900000,0\n0.00178000000,0\n0.00178100000,0\n0.00178200000,0\n0.00178300000,0\n0.00178400000,0\n0.00178500000,0\n0.00178600000,0\n0.00178700000,0\n0.00178800000,0\n0.00178900000,1\n0.00179000000,1\n0.00179100000,1\n0.00179200000,1\n0.00179300000,1\n0.00179400000,1\n0.00179500000,1\n0.00179600000,1\n0.00179700000,1\n0.00179800000,1\n0.00179900000,1\n0.00180000000,1\n0.00180100000,1\n0.00180200000,1\n0.00180300000,1\n0.00180400000,1\n0.00180500000,1\n0.00180600000,1\n0.00180700000,1\n0.00180800000,1\n0.00180900000,1\n0.00181000000,1\n0.00181100000,1\n0.00181200000,1\n0.00181300000,1\n0.00181400000,1\n0.00181500000,1\n0.00181600000,1\n0.00181700000,1\n0.00181800000,1\n0.00181900000,1\n0.00182000000,1\n0.00182100000,1\n0.00182200000,1\n0.00182300000,1\n0.00182400000,1\n0.00182500000,1\n0.00182600000,1\n0.00182700000,1\n0.00182800000,1\n0.00182900000,1\n0.00183000000,1\n0.00183100000,1\n0.00183200000,1\n0.00183300000,1\n0.00183400000,1\n0.00183500000,1\n0.00183600000,1\n0.00183700000,1\n0.00183800000,1\n0.00183900000,1\n0.00184000000,1\n0.00184100000,1\n0.00184200000,1\n0.00184300000,1\n0.00184400000,1\n0.00184500000,1\n0.00184600000,1\n0.00184700000,1\n0.00184800000,1\n0.00184900000,1\n0.00185000000,1\n0.00185100000,1\n0.00185200000,1\n0.00185300000,1\n0.00185400000,1\n0.00185500000,1\n0.00185600000,1\n0.00185700000,1\n0.00185800000,1\n0.00185900000,1\n0.00186000000,1\n0.00186100000,1\n0.00186200000,1\n0.00186300000,1\n0.00186400000,1\n0.00186500000,1\n0.00186600000,1\n0.00186700000,1\n0.00186800000,1\n0.00186900000,1\n0.00187000000,1\n0.00187100000,1\n0.00187200000,1\n0.00187300000,1\n0.00187400000,1\n0.00187500000,1\n0.00187600000,1\n0.00187700000,1\n0.00187800000,1\n0.00187900000,1\n0.00188000000,1\n0.00188100000,1\n0.00188200000,1\n0.00188300000,1\n0.00188400000,1\n0.00188500000,1\n0.00188600000,1\n0.00188700000,1\n0.00188800000,1\n0.00188900000,1\n0.00189000000,1\n0.00189100000,1\n0.00189200000,1\n",
                    "protocol": "uart",
                    "dataBits": "8",
                    "parity": "none",
                    "stopBits": "1"
                  }
                },
                "example2": {
                  "summary": "I²C EEPROM write, repeated-START read and a NACK (sigrok CSV)",
                  "value": {
                    "csv": "; CSV, generated by a sigrok-compatible exporter (synthetic example)\n; Channels (2/2): SCL, SDA\n; Samplerate: 1 MHz\nTime(s),SCL,SDA\n0.00000000,1,1\n0.00000100000000,1,1\n0.00000200000000,1,1\n0.00000300000000,1,1\n0.00000400000000,1,1\n0.00000500000000,1,1\n0.00000600000000,1,1\n0.00000700000000,1,1\n0.00000800000000,1,1\n0.00000900000000,1,1\n0.0000100000000,1,1\n0.0000110000000,1,1\n0.0000120000000,1,1\n0.0000130000000,1,1\n0.0000140000000,1,1\n0.0000150000000,1,1\n0.0000160000000,1,1\n0.0000170000000,1,1\n0.0000180000000,1,1\n0.0000190000000,1,1\n0.0000200000000,1,1\n0.0000210000000,1,1\n0.0000220000000,1,1\n0.0000230000000,1,1\n0.0000240000000,1,1\n0.0000250000000,1,1\n0.0000260000000,1,1\n0.0000270000000,1,1\n0.0000280000000,1,1\n0.0000290000000,1,1\n0.0000300000000,1,1\n0.0000310000000,1,1\n0.0000320000000,1,1\n0.0000330000000,1,1\n0.0000340000000,1,1\n0.0000350000000,1,1\n0.0000360000000,1,1\n0.0000370000000,1,1\n0.0000380000000,1,1\n0.0000390000000,1,1\n0.0000400000000,1,1\n0.0000410000000,1,1\n0.0000420000000,1,1\n0.0000430000000,1,1\n0.0000440000000,1,1\n0.0000450000000,1,1\n0.0000460000000,1,1\n0.0000470000000,1,1\n0.0000480000000,1,1\n0.0000490000000,1,1\n0.0000500000000,1,0\n0.0000510000000,1,0\n0.0000520000000,1,0\n0.0000530000000,0,0\n0.0000540000000,0,0\n0.0000550000000,0,1\n0.0000560000000,0,1\n0.0000570000000,0,1\n0.0000580000000,1,1\n0.0000590000000,1,1\n0.0000600000000,1,1\n0.0000610000000,1,1\n0.0000620000000,1,1\n0.0000630000000,0,1\n0.0000640000000,0,1\n0.0000650000000,0,1\n0.0000660000000,0,0\n0.0000670000000,0,0\n0.0000680000000,1,0\n0.0000690000000,1,0\n0.0000700000000,1,0\n0.0000710000000,1,0\n0.0000720000000,1,0\n0.0000730000000,0,0\n0.0000740000000,0,0\n0.0000750000000,0,0\n0.0000760000000,0,1\n0.0000770000000,0,1\n0.0000780000000,1,1\n0.0000790000000,1,1\n0.0000800000000,1,1\n0.0000810000000,1,1\n0.0000820000000,1,1\n0.0000830000000,0,1\n0.0000840000000,0,1\n0.0000850000000,0,0\n0.0000860000000,0,0\n0.0000870000000,0,0\n0.0000880000000,1,0\n0.0000890000000,1,0\n0.0000900000000,1,0\n0.0000910000000,1,0\n0.0000920000000,1,0\n0.0000930000000,0,0\n0.0000940000000,0,0\n0.0000950000000,0,0\n0.0000960000000,0,0\n0.0000970000000,0,0\n0.0000980000000,1,0\n0.0000990000000,1,0\n0.000100000000,1,0\n0.000101000000,1,0\n0.000102000000,1,0\n0.000103000000,0,0\n0.000104000000,0,0\n0.000105000000,0,0\n0.000106000000,0,0\n0.000107000000,0,0\n0.000108000000,1,0\n0.000109000000,1,0\n0.000110000000,1,0\n0.000111000000,1,0\n0.000112000000,1,0\n0.000113000000,0,0\n0.000114000000,0,0\n0.000115000000,0,0\n0.000116000000,0,0\n0.000117000000,0,0\n0.000118000000,1,0\n0.000119000000,1,0\n0.000120000000,1,0\n0.000121000000,1,0\n0.000122000000,1,0\n0.000123000000,0,0\n0.000124000000,0,0\n0.000125000000,0,0\n0.000126000000,0,0\n0.000127000000,0,0\n0.000128000000,1,0\n0.000129000000,1,0\n0.000130000000,1,0\n0.000131000000,1,0\n0.000132000000,1,0\n0.000133000000,0,0\n0.000134000000,0,0\n0.000135000000,0,0\n0.000136000000,0,0\n0.000137000000,0,0\n0.000138000000,1,0\n0.000139000000,1,0\n0.000140000000,1,0\n0.000141000000,1,0\n0.000142000000,1,0\n0.000143000000,0,0\n0.000144000000,0,0\n0.000145000000,0,0\n0.000146000000,0,0\n0.000147000000,0,0\n0.000148000000,1,0\n0.000149000000,1,0\n0.000150000000,1,0\n0.000151000000,1,0\n0.000152000000,1,0\n0.000153000000,0,0\n0.000154000000,0,0\n0.000155000000,0,0\n0.000156000000,0,0\n0.000157000000,0,0\n0.000158000000,1,0\n0.000159000000,1,0\n0.000160000000,1,0\n0.000161000000,1,0\n0.000162000000,1,0\n0.000163000000,0,0\n0.000164000000,0,0\n0.000165000000,0,0\n0.000166000000,0,0\n0.000167000000,0,0\n0.000168000000,1,0\n0.000169000000,1,0\n0.000170000000,1,0\n0.000171000000,1,0\n0.000172000000,1,0\n0.000173000000,0,0\n0.000174000000,0,0\n0.000175000000,0,0\n0.000176000000,0,0\n0.000177000000,0,0\n0.000178000000,1,0\n0.000179000000,1,0\n0.000180000000,1,0\n0.000181000000,1,0\n0.000182000000,1,0\n0.000183000000,0,0\n0.000184000000,0,0\n0.000185000000,0,0\n0.000186000000,0,0\n0.000187000000,0,0\n0.000188000000,1,0\n0.000189000000,1,0\n0.000190000000,1,0\n0.000191000000,1,0\n0.000192000000,1,0\n0.000193000000,0,0\n0.000194000000,0,0\n0.000195000000,0,0\n0.000196000000,0,0\n0.000197000000,0,0\n0.000198000000,1,0\n0.000199000000,1,0\n0.000200000000,1,0\n0.000201000000,1,0\n0.000202000000,1,0\n0.000203000000,0,0\n0.000204000000,0,0\n0.000205000000,0,0\n0.000206000000,0,0\n0.000207000000,0,0\n0.000208000000,1,0\n0.000209000000,1,0\n0.000210000000,1,0\n0.000211000000,1,0\n0.000212000000,1,0\n0.000213000000,0,0\n0.000214000000,0,0\n0.000215000000,0,0\n0.000216000000,0,0\n0.000217000000,0,0\n0.000218000000,1,0\n0.000219000000,1,0\n0.000220000000,1,0\n0.000221000000,1,0\n0.000222000000,1,0\n0.000223000000,0,0\n0.000224000000,0,0\n0.000225000000,0,0\n0.000226000000,0,0\n0.000227000000,0,0\n0.000228000000,1,0\n0.000229000000,1,0\n0.000230000000,1,0\n0.000231000000,1,0\n0.000232000000,1,0\n0.000233000000,0,0\n0.000234000000,0,0\n0.000235000000,0,0\n0.000236000000,0,0\n0.000237000000,0,0\n0.000238000000,1,0\n0.000239000000,1,0\n0.000240000000,1,0\n0.000241000000,1,0\n0.000242000000,1,0\n0.000243000000,0,0\n0.000244000000,0,0\n0.000245000000,0,0\n0.000246000000,0,0\n0.000247000000,0,0\n0.000248000000,1,0\n0.000249000000,1,0\n0.000250000000,1,0\n0.000251000000,1,0\n0.000252000000,1,0\n0.000253000000,0,0\n0.000254000000,0,0\n0.000255000000,0,0\n0.000256000000,0,0\n0.000257000000,0,0\n0.000258000000,1,0\n0.000259000000,1,0\n0.000260000000,1,0\n0.000261000000,1,0\n0.000262000000,1,0\n0.000263000000,0,0\n0.000264000000,0,0\n0.000265000000,0,0\n0.000266000000,0,1\n0.000267000000,0,1\n0.000268000000,1,1\n0.000269000000,1,1\n0.000270000000,1,1\n0.000271000000,1,1\n0.000272000000,1,1\n0.000273000000,0,1\n0.000274000000,0,1\n0.000275000000,0,1\n0.000276000000,0,0\n0.000277000000,0,0\n0.000278000000,1,0\n0.000279000000,1,0\n0.000280000000,1,0\n0.000281000000,1,0\n0.000282000000,1,0\n0.000283000000,0,0\n0.000284000000,0,0\n0.000285000000,0,0\n0.000286000000,0,0\n0.000287000000,0,0\n0.000288000000,1,0\n0.000289000000,1,0\n0.000290000000,1,0\n0.000291000000,1,0\n0.000292000000,1,0\n0.000293000000,0,0\n0.000294000000,0,0\n0.000295000000,0,0\n0.000296000000,0,0\n0.000297000000,0,0\n0.000298000000,1,0\n0.000299000000,1,0\n0.000300000000,1,0\n0.000301000000,1,0\n0.000302000000,1,0\n0.000303000000,0,0\n0.000304000000,0,0\n0.000305000000,0,0\n0.000306000000,0,0\n0.000307000000,0,0\n0.000308000000,1,0\n0.000309000000,1,0\n0.000310000000,1,0\n0.000311000000,1,0\n0.000312000000,1,0\n0.000313000000,0,0\n0.000314000000,0,0\n0.000315000000,0,0\n0.000316000000,0,0\n0.000317000000,0,0\n0.000318000000,1,0\n0.000319000000,1,0\n0.000320000000,1,0\n0.000321000000,1,0\n0.000322000000,1,0\n0.000323000000,0,0\n0.000324000000,0,0\n0.000325000000,0,0\n0.000326000000,0,1\n0.000327000000,0,1\n0.000328000000,1,1\n0.000329000000,1,1\n0.000330000000,1,1\n0.000331000000,1,0\n0.000332000000,1,0\n0.000333000000,0,0\n0.000334000000,0,0\n0.000335000000,0,0\n0.000336000000,0,1\n0.000337000000,0,1\n0.000338000000,1,1\n0.000339000000,1,1\n0.000340000000,1,1\n0.000341000000,1,1\n0.000342000000,1,1\n0.000343000000,0,1\n0.000344000000,0,1\n0.000345000000,0,1\n0.000346000000,0,0\n0.000347000000,0,0\n0.000348000000,1,0\n0.000349000000,1,0\n0.000350000000,1,0\n0.000351000000,1,0\n0.000352000000,1,0\n0.000353000000,0,0\n0.000354000000,0,0\n0.000355000000,0,0\n0.000356000000,0,1\n0.000357000000,0,1\n0.000358000000,1,1\n0.000359000000,1,1\n0.000360000000,1,1\n0.000361000000,1,1\n0.000362000000,1,1\n0.000363000000,0,1\n0.000364000000,0,1\n0.000365000000,0,1\n0.000366000000,0,0\n0.000367000000,0,0\n0.000368000000,1,0\n0.000369000000,1,0\n0.000370000000,1,0\n0.000371000000,1,0\n0.000372000000,1,0\n0.000373000000,0,0\n0.000374000000,0,0\n0.000375000000,0,0\n0.000376000000,0,0\n0.000377000000,0,0\n0.000378000000,1,0\n0.000379000000,1,0\n0.000380000000,1,0\n0.000381000000,1,0\n0.000382000000,1,0\n0.000383000000,0,0\n0.000384000000,0,0\n0.000385000000,0,0\n0.000386000000,0,0\n0.000387000000,0,0\n0.000388000000,1,0\n0.000389000000,1,0\n0.000390000000,1,0\n0.000391000000,1,0\n0.000392000000,1,0\n0.000393000000,0,0\n0.000394000000,0,0\n0.000395000000,0,0\n0.000396000000,0,0\n0.000397000000,0,0\n0.000398000000,1,0\n0.000399000000,1,0\n0.000400000000,1,0\n0.000401000000,1,0\n0.000402000000,1,0\n0.000403000000,0,0\n0.000404000000,0,0\n0.000405000000,0,0\n0.000406000000,0,1\n0.000407000000,0,1\n0.000408000000,1,1\n0.000409000000,1,1\n0.000410000000,1,1\n0.000411000000,1,1\n0.000412000000,1,1\n0.000413000000,0,1\n0.000414000000,0,1\n0.000415000000,0,1\n0.000416000000,0,0\n0.000417000000,0,0\n0.000418000000,1,0\n0.000419000000,1,0\n0.000420000000,1,0\n0.000421000000,1,0\n0.000422000000,1,0\n0.000423000000,0,0\n0.000424000000,0,0\n0.000425000000,0,0\n0.000426000000,0,0\n0.000427000000,0,0\n0.000428000000,1,0\n0.000429000000,1,0\n0.000430000000,1,0\n0.000431000000,1,0\n0.000432000000,1,0\n0.000433000000,0,0\n0.000434000000,0,0\n0.000435000000,0,0\n0.000436000000,0,1\n0.000437000000,0,1\n0.000438000000,1,1\n0.000439000000,1,1\n0.000440000000,1,1\n0.000441000000,1,1\n0.000442000000,1,1\n0.000443000000,0,1\n0.000444000000,0,1\n0.000445000000,0,1\n0.000446000000,0,0\n0.000447000000,0,0\n0.000448000000,1,0\n0.000449000000,1,0\n0.000450000000,1,0\n0.000451000000,1,0\n0.000452000000,1,0\n0.000453000000,0,0\n0.000454000000,0,0\n0.000455000000,0,0\n0.000456000000,0,0\n0.000457000000,0,0\n0.000458000000,1,0\n0.000459000000,1,0\n0.000460000000,1,0\n0.000461000000,1,0\n0.000462000000,1,0\n0.000463000000,0,0\n0.000464000000,0,0\n0.000465000000,0,0\n0.000466000000,0,0\n0.000467000000,0,0\n0.000468000000,1,0\n0.000469000000,1,0\n0.000470000000,1,0\n0.000471000000,1,0\n0.000472000000,1,0\n0.000473000000,0,0\n0.000474000000,0,0\n0.000475000000,0,0\n0.000476000000,0,0\n0.000477000000,0,0\n0.000478000000,1,0\n0.000479000000,1,0\n0.000480000000,1,0\n0.000481000000,1,0\n0.000482000000,1,0\n0.000483000000,0,0\n0.000484000000,0,0\n0.000485000000,0,0\n0.000486000000,0,1\n0.000487000000,0,1\n0.000488000000,1,1\n0.000489000000,1,1\n0.000490000000,1,1\n0.000491000000,1,1\n0.000492000000,1,1\n0.000493000000,0,1\n0.000494000000,0,1\n0.000495000000,0,1\n0.000496000000,0,0\n0.000497000000,0,0\n0.000498000000,1,0\n0.000499000000,1,0\n0.000500000000,1,0\n0.000501000000,1,0\n0.000502000000,1,0\n0.000503000000,0,0\n0.000504000000,0,0\n0.000505000000,0,0\n0.000506000000,0,0\n0.000507000000,0,0\n0.000508000000,1,0\n0.000509000000,1,0\n0.000510000000,1,0\n0.000511000000,1,0\n0.000512000000,1,0\n0.000513000000,0,0\n0.000514000000,0,0\n0.000515000000,0,0\n0.000516000000,0,0\n0.000517000000,0,0\n0.000518000000,1,0\n0.000519000000,1,0\n0.000520000000,1,0\n0.000521000000,1,0\n0.000522000000,1,0\n0.000523000000,0,0\n0.000524000000,0,0\n0.000525000000,0,0\n0.000526000000,0,0\n0.000527000000,0,0\n0.000528000000,1,0\n0.000529000000,1,0\n0.000530000000,1,0\n0.000531000000,1,0\n0.000532000000,1,0\n0.000533000000,0,0\n0.000534000000,0,0\n0.000535000000,0,0\n0.000536000000,0,0\n0.000537000000,0,0\n0.000538000000,1,0\n0.000539000000,1,0\n0.000540000000,1,0\n0.000541000000,1,0\n0.000542000000,1,0\n0.000543000000,0,0\n0.000544000000,0,0\n0.000545000000,0,0\n0.000546000000,0,1\n0.000547000000,0,1\n0.000548000000,1,1\n0.000549000000,1,1\n0.000550000000,1,1\n0.000551000000,1,1\n0.000552000000,1,1\n0.000553000000,0,1\n0.000554000000,0,1\n0.000555000000,0,1\n0.000556000000,0,0\n0.000557000000,0,0\n0.000558000000,1,0\n0.000559000000,1,0\n0.000560000000,1,0\n0.000561000000,1,0\n0.000562000000,1,0\n0.000563000000,0,0\n0.000564000000,0,0\n0.000565000000,0,0\n0.000566000000,0,1\n0.000567000000,0,1\n0.000568000000,1,1\n0.000569000000,1,1\n0.000570000000,1,1\n0.000571000000,1,1\n0.000572000000,1,1\n0.000573000000,0,1\n0.000574000000,0,1\n0.000575000000,0,1\n0.000576000000,0,1\n0.000577000000,0,1\n0.000578000000,1,1\n0.000579000000,1,1\n0.000580000000,1,1\n0.000581000000,1,1\n0.000582000000,1,1\n0.000583000000,0,1\n0.000584000000,0,1\n0.000585000000,0,1\n0.000586000000,0,1\n0.000587000000,0,1\n0.000588000000,1,1\n0.000589000000,1,1\n0.000590000000,1,1\n0.000591000000,1,1\n0.000592000000,1,1\n0.000593000000,0,1\n0.000594000000,0,1\n0.000595000000,0,1\n0.000596000000,0,1\n0.000597000000,0,1\n0.000598000000,1,1\n0.000599000000,1,1\n0.000600000000,1,1\n0.000601000000,1,1\n0.000602000000,1,1\n0.000603000000,0,1\n0.000604000000,0,1\n0.000605000000,0,1\n0.000606000000,0,0\n0.000607000000,0,0\n0.000608000000,1,0\n0.000609000000,1,0\n0.000610000000,1,0\n0.000611000000,1,1\n0.000612000000,1,1\n0.000613000000,1,1\n0.000614000000,1,1\n0.000615000000,1,1\n0.000616000000,1,1\n0.000617000000,1,1\n0.000618000000,1,1\n0.000619000000,1,1\n0.000620000000,1,1\n0.000621000000,1,1\n0.000622000000,1,1\n0.000623000000,1,0\n0.000624000000,1,0\n0.000625000000,1,0\n0.000626000000,0,0\n0.000627000000,0,0\n0.000628000000,0,0\n0.000629000000,0,0\n0.000630000000,0,0\n0.000631000000,1,0\n0.000632000000,1,0\n0.000633000000,1,0\n0.000634000000,1,0\n0.000635000000,1,0\n0.000636000000,0,0\n0.000637000000,0,0\n0.000638000000,0,1\n0.000639000000,0,1\n0.000640000000,0,1\n0.000641000000,1,1\n0.000642000000,1,1\n0.000643000000,1,1\n0.000644000000,1,1\n0.000645000000,1,1\n0.000646000000,0,1\n0.000647000000,0,1\n0.000648000000,0,1\n0.000649000000,0,1\n0.000650000000,0,1\n0.000651000000,1,1\n0.000652000000,1,1\n0.000653000000,1,1\n0.000654000000,1,1\n0.000655000000,1,1\n0.000656000000,0,1\n0.000657000000,0,1\n0.000658000000,0,1\n0.000659000000,0,1\n0.000660000000,0,1\n0.000661000000,1,1\n0.000662000000,1,1\n0.000663000000,1,1\n0.000664000000,1,1\n0.000665000000,1,1\n0.000666000000,0,1\n0.000667000000,0,1\n0.000668000000,0,1\n0.000669000000,0,1\n0.000670000000,0,1\n0.000671000000,1,1\n0.000672000000,1,1\n0.000673000000,1,1\n0.000674000000,1,1\n0.000675000000,1,1\n0.000676000000,0,1\n0.000677000000,0,1\n0.000678000000,0,0\n0.000679000000,0,0\n0.000680000000,0,0\n0.000681000000,1,0\n0.000682000000,1,0\n0.000683000000,1,0\n0.000684000000,1,0\n0.000685000000,1,0\n0.000686000000,0,0\n0.000687000000,0,0\n0.000688000000,0,0\n0.000689000000,0,0\n0.000690000000,0,0\n0.000691000000,1,0\n0.000692000000,1,0\n0.000693000000,1,0\n0.000694000000,1,0\n0.000695000000,1,0\n0.000696000000,0,0\n0.000697000000,0,0\n0.000698000000,0,0\n0.000699000000,0,0\n0.000700000000,0,0\n0.000701000000,1,0\n0.000702000000,1,0\n0.000703000000,1,0\n0.000704000000,1,0\n0.000705000000,1,0\n0.000706000000,0,0\n0.000707000000,0,0\n0.000708000000,0,1\n0.000709000000,0,1\n0.000710000000,0,1\n0.000711000000,1,1\n0.000712000000,1,1\n0.000713000000,1,1\n0.000714000000,1,1\n0.000715000000,1,1\n0.000716000000,0,1\n0.000717000000,0,1\n0.000718000000,0,0\n0.000719000000,0,0\n0.000720000000,0,0\n0.000721000000,1,0\n0.000722000000,1,0\n0.000723000000,1,1\n0.000724000000,1,1\n0.000725000000,1,1\n0.000726000000,1,1\n0.000727000000,1,1\n0.000728000000,1,1\n0.000729000000,1,1\n0.000730000000,1,1\n0.000731000000,1,1\n0.000732000000,1,1\n0.000733000000,1,1\n0.000734000000,1,1\n0.000735000000,1,1\n0.000736000000,1,1\n0.000737000000,1,1\n0.000738000000,1,1\n0.000739000000,1,1\n0.000740000000,1,1\n0.000741000000,1,1\n0.000742000000,1,1\n0.000743000000,1,1\n0.000744000000,1,1\n0.000745000000,1,1\n0.000746000000,1,1\n0.000747000000,1,1\n0.000748000000,1,1\n0.000749000000,1,1\n0.000750000000,1,1\n0.000751000000,1,1\n0.000752000000,1,1\n0.000753000000,1,1\n0.000754000000,1,1\n0.000755000000,1,1\n0.000756000000,1,1\n0.000757000000,1,1\n0.000758000000,1,1\n0.000759000000,1,1\n0.000760000000,1,1\n0.000761000000,1,1\n0.000762000000,1,1\n0.000763000000,1,1\n0.000764000000,1,1\n0.000765000000,1,1\n0.000766000000,1,1\n0.000767000000,1,1\n0.000768000000,1,1\n0.000769000000,1,1\n0.000770000000,1,1\n0.000771000000,1,1\n0.000772000000,1,1\n0.000773000000,1,1\n0.000774000000,1,1\n0.000775000000,1,1\n",
                    "protocol": "i2c"
                  }
                },
                "example3": {
                  "summary": "SPI mode 0 JEDEC ID read (one row per change)",
                  "value": {
                    "csv": "Time [s],SCLK,MOSI,MISO,CS\n0.000000000,0,0,0,1\n0.000004000,0,0,0,0\n0.000004500,0,1,1,0\n0.000004750,1,1,1,0\n0.000005250,0,1,1,0\n0.000005313,0,0,1,0\n0.000005750,1,0,1,0\n0.000006250,0,0,1,0\n0.000006750,1,0,1,0\n0.000007250,0,0,1,0\n0.000007313,0,1,1,0\n0.000007750,1,1,1,0\n0.000008250,0,1,1,0\n0.000008750,1,1,1,0\n0.000009250,0,1,1,0\n0.000009750,1,1,1,0\n0.000010250,0,1,1,0\n0.000010750,1,1,1,0\n0.000011250,0,1,1,0\n0.000011750,1,1,1,0\n0.000012250,0,1,1,0\n0.000012312,0,0,1,0\n0.000012750,1,0,1,0\n0.000013250,0,0,1,0\n0.000013750,1,0,1,0\n0.000014250,0,0,1,0\n0.000014750,1,0,1,0\n0.000015250,0,0,1,0\n0.000015312,0,0,0,0\n0.000015750,1,0,0,0\n0.000016250,0,0,0,0\n0.000016312,0,0,1,0\n0.000016750,1,0,1,0\n0.000017250,0,0,1,0\n0.000017750,1,0,1,0\n0.000018250,0,0,1,0\n0.000018750,1,0,1,0\n0.000019250,0,0,1,0\n0.000019750,1,0,1,0\n0.000020250,0,0,1,0\n0.000020312,0,0,0,0\n0.000020750,1,0,0,0\n0.000021250,0,0,0,0\n0.000021312,0,0,1,0\n0.000021750,1,0,1,0\n0.000022250,0,0,1,0\n0.000022312,0,0,0,0\n0.000022750,1,0,0,0\n0.000023250,0,0,0,0\n0.000023750,1,0,0,0\n0.000024250,0,0,0,0\n0.000024750,1,0,0,0\n0.000025250,0,0,0,0\n0.000025750,1,0,0,0\n0.000026250,0,0,0,0\n0.000026750,1,0,0,0\n0.000027250,0,0,0,0\n0.000027750,1,0,0,0\n0.000028250,0,0,0,0\n0.000028750,1,0,0,0\n0.000029250,0,0,0,0\n0.000029750,1,0,0,0\n0.000030250,0,0,0,0\n0.000030750,1,0,0,0\n0.000031250,0,0,0,0\n0.000031312,0,0,1,0\n0.000031750,1,0,1,0\n0.000032250,0,0,1,0\n0.000032750,1,0,1,0\n0.000033250,0,0,1,0\n0.000033312,0,0,0,0\n0.000033750,1,0,0,0\n0.000034250,0,0,0,0\n0.000034750,1,0,0,0\n0.000035250,0,0,0,0\n0.000035750,1,0,0,0\n0.000036250,0,0,0,0\n0.000037000,0,0,0,1\n",
                    "protocol": "spi",
                    "cpol": "auto",
                    "cpha": "0",
                    "wordBits": 8,
                    "bitOrder": "msb",
                    "csActive": "low"
                  }
                },
                "example4": {
                  "summary": "UART 9600 8E1 with one parity error, captured by a scope (Siglent-style CSV)",
                  "value": {
                    "csv": "Record Length,Analog:709\nSample Interval,1.000000E-5\nVertical Units,V\nSource,CH1\nSecond,Value\n0.000000E+0,3.3110\n1.000000E-5,3.3069\n2.000000E-5,3.2777\n3.000000E-5,3.3003\n4.000000E-5,3.2908\n5.000000E-5,3.3290\n6.000000E-5,3.2943\n7.000000E-5,3.2637\n8.000000E-5,3.2477\n9.000000E-5,3.3252\n1.000000E-4,3.2856\n1.100000E-4,3.2755\n1.200000E-4,3.3326\n1.300000E-4,3.3078\n1.400000E-4,3.2930\n1.500000E-4,3.2877\n1.600000E-4,3.2534\n1.700000E-4,3.3104\n1.800000E-4,3.2799\n1.900000E-4,3.3300\n2.000000E-4,3.3215\n2.100000E-4,3.2522\n2.200000E-4,3.2755\n2.300000E-4,3.2123\n2.400000E-4,3.3203\n2.500000E-4,3.2807\n2.600000E-4,3.3180\n2.700000E-4,3.2925\n2.800000E-4,3.2933\n2.900000E-4,3.3013\n3.000000E-4,3.3209\n3.100000E-4,3.3185\n3.200000E-4,3.3349\n3.300000E-4,3.2933\n3.400000E-4,3.3018\n3.500000E-4,3.2967\n3.600000E-4,3.3527\n3.700000E-4,3.3190\n3.800000E-4,3.2375\n3.900000E-4,3.3182\n4.000000E-4,3.3476\n4.100000E-4,3.2924\n4.200000E-4,3.2846\n4.300000E-4,3.3359\n4.400000E-4,3.2892\n4.500000E-4,3.3063\n4.600000E-4,3.2999\n4.700000E-4,3.2737\n4.800000E-4,3.2375\n4.900000E-4,3.3103\n5.000000E-4,3.2943\n5.100000E-4,3.2923\n5.200000E-4,3.3179\n5.300000E-4,3.2279\n5.400000E-4,3.2949\n5.500000E-4,3.2913\n5.600000E-4,3.2985\n5.700000E-4,3.3160\n5.800000E-4,3.2322\n5.900000E-4,3.2486\n6.000000E-4,3.2727\n6.100000E-4,3.2993\n6.200000E-4,3.2842\n6.300000E-4,3.2989\n6.400000E-4,3.3093\n6.500000E-4,3.2875\n6.600000E-4,3.3272\n6.700000E-4,3.3053\n6.800000E-4,3.2872\n6.900000E-4,3.3162\n7.000000E-4,3.2344\n7.100000E-4,3.2580\n7.200000E-4,3.2651\n7.300000E-4,3.3227\n7.400000E-4,3.2519\n7.500000E-4,3.2992\n7.600000E-4,3.2925\n7.700000E-4,3.2754\n7.800000E-4,3.2829\n7.900000E-4,3.2738\n8.000000E-4,3.2930\n8.100000E-4,3.3036\n8.200000E-4,3.3432\n8.300000E-4,3.3162\n8.400000E-4,3.2890\n8.500000E-4,3.2744\n8.600000E-4,3.3605\n8.700000E-4,3.3313\n8.800000E-4,3.3690\n8.900000E-4,3.2702\n9.000000E-4,3.3376\n9.100000E-4,3.3170\n9.200000E-4,3.2895\n9.300000E-4,3.2817\n9.400000E-4,3.2428\n9.500000E-4,3.3500\n9.600000E-4,3.3097\n9.700000E-4,3.3395\n9.800000E-4,3.3072\n9.900000E-4,3.2853\n1.000000E-3,3.3119\n1.010000E-3,3.3472\n1.020000E-3,3.2916\n1.030000E-3,3.2707\n1.040000E-3,3.3035\n1.050000E-3,0.0675\n1.060000E-3,-0.0034\n1.070000E-3,-0.0241\n1.080000E-3,0.0069\n1.090000E-3,-0.0066\n1.100000E-3,-0.0021\n1.110000E-3,-0.0179\n1.120000E-3,-0.0157\n1.130000E-3,0.0135\n1.140000E-3,0.0207\n1.150000E-3,3.3096\n1.160000E-3,3.3310\n1.170000E-3,3.2580\n1.180000E-3,3.2924\n1.190000E-3,3.2957\n1.200000E-3,3.3374\n1.210000E-3,3.2666\n1.220000E-3,3.2826\n1.230000E-3,3.2765\n1.240000E-3,3.3195\n1.250000E-3,3.3215\n1.260000E-3,3.3190\n1.270000E-3,3.3571\n1.280000E-3,3.2220\n1.290000E-3,3.2810\n1.300000E-3,3.2838\n1.310000E-3,3.2792\n1.320000E-3,3.3200\n1.330000E-3,3.2838\n1.340000E-3,3.2693\n1.350000E-3,3.2930\n1.360000E-3,3.3076\n1.370000E-3,3.2650\n1.380000E-3,3.3045\n1.390000E-3,3.2075\n1.400000E-3,3.2863\n1.410000E-3,3.2970\n1.420000E-3,3.3253\n1.430000E-3,3.3097\n1.440000E-3,3.3004\n1.450000E-3,3.2779\n1.460000E-3,3.3189\n1.470000E-3,3.2864\n1.480000E-3,3.2770\n1.490000E-3,3.3247\n1.500000E-3,3.2783\n1.510000E-3,3.3312\n1.520000E-3,3.2962\n1.530000E-3,3.3044\n1.540000E-3,3.2934\n1.550000E-3,3.3031\n1.560000E-3,3.3128\n1.570000E-3,-0.0393\n1.580000E-3,-0.0387\n1.590000E-3,0.0003\n1.600000E-3,0.0033\n1.610000E-3,-0.0799\n1.620000E-3,-0.0056\n1.630000E-3,0.0102\n1.640000E-3,-0.0186\n1.650000E-3,-0.0246\n1.660000E-3,-0.0130\n1.670000E-3,-0.0016\n1.680000E-3,-0.0311\n1.690000E-3,0.0492\n1.700000E-3,-0.0418\n1.710000E-3,0.0304\n1.720000E-3,-0.0141\n1.730000E-3,-0.0040\n1.740000E-3,0.0362\n1.750000E-3,-0.0362\n1.760000E-3,0.0360\n1.770000E-3,0.2416\n1.780000E-3,3.2780\n1.790000E-3,3.3223\n1.800000E-3,3.3272\n1.810000E-3,3.2730\n1.820000E-3,3.3527\n1.830000E-3,3.3173\n1.840000E-3,3.3145\n1.850000E-3,3.2578\n1.860000E-3,3.2538\n1.870000E-3,3.3035\n1.880000E-3,-0.0191\n1.890000E-3,0.0698\n1.900000E-3,-0.0016\n1.910000E-3,-0.0026\n1.920000E-3,0.0433\n1.930000E-3,0.0280\n1.940000E-3,0.0332\n1.950000E-3,0.0264\n1.960000E-3,-0.0299\n1.970000E-3,-0.0291\n1.980000E-3,3.0253\n1.990000E-3,3.2979\n2.000000E-3,3.2890\n2.010000E-3,3.2850\n2.020000E-3,3.3059\n2.030000E-3,3.3017\n2.040000E-3,3.2982\n2.050000E-3,3.2985\n2.060000E-3,3.2892\n2.070000E-3,3.3126\n2.080000E-3,3.2902\n2.090000E-3,3.3093\n2.100000E-3,3.2808\n2.110000E-3,3.2920\n2.120000E-3,3.2540\n2.130000E-3,3.3433\n2.140000E-3,3.2942\n2.150000E-3,3.3239\n2.160000E-3,3.2899\n2.170000E-3,3.2604\n2.180000E-3,3.2621\n2.190000E-3,3.2870\n2.200000E-3,3.3185\n2.210000E-3,3.3069\n2.220000E-3,3.3182\n2.230000E-3,3.3122\n2.240000E-3,3.3093\n2.250000E-3,3.3059\n2.260000E-3,3.2801\n2.270000E-3,3.3128\n2.280000E-3,3.3634\n2.290000E-3,3.2872\n2.300000E-3,0.0457\n2.310000E-3,0.0007\n2.320000E-3,-0.0019\n2.330000E-3,-0.0436\n2.340000E-3,-0.0016\n2.350000E-3,0.0143\n2.360000E-3,0.0512\n2.370000E-3,-0.0097\n2.380000E-3,-0.0235\n2.390000E-3,0.0407\n2.400000E-3,3.3375\n2.410000E-3,3.2940\n2.420000E-3,3.3354\n2.430000E-3,3.3040\n2.440000E-3,3.3158\n2.450000E-3,3.3361\n2.460000E-3,3.3098\n2.470000E-3,3.3433\n2.480000E-3,3.3560\n2.490000E-3,3.3352\n2.500000E-3,3.3074\n2.510000E-3,3.3491\n2.520000E-3,3.3253\n2.530000E-3,3.3053\n2.540000E-3,3.3043\n2.550000E-3,3.3138\n2.560000E-3,3.3739\n2.570000E-3,3.3098\n2.580000E-3,3.3463\n2.590000E-3,3.3156\n2.600000E-3,3.3284\n2.610000E-3,-0.0106\n2.620000E-3,0.0077\n2.630000E-3,0.0558\n2.640000E-3,0.0054\n2.650000E-3,-0.0013\n2.660000E-3,-0.0094\n2.670000E-3,0.0234\n2.680000E-3,0.0236\n2.690000E-3,0.0013\n2.700000E-3,-0.0352\n2.710000E-3,3.3177\n2.720000E-3,3.3122\n2.730000E-3,3.2355\n2.740000E-3,3.3057\n2.750000E-3,3.3082\n2.760000E-3,3.3289\n2.770000E-3,3.3114\n2.780000E-3,3.3291\n2.790000E-3,3.2885\n2.800000E-3,3.2495\n2.810000E-3,3.3026\n2.820000E-3,0.0354\n2.830000E-3,-0.0144\n2.840000E-3,-0.0421\n2.850000E-3,0.0066\n2.860000E-3,-0.0264\n2.870000E-3,-0.0318\n2.880000E-3,0.0444\n2.890000E-3,-0.0072\n2.900000E-3,0.0046\n2.910000E-3,0.0344\n2.920000E-3,-0.0059\n2.930000E-3,0.0048\n2.940000E-3,-0.0049\n2.950000E-3,-0.0177\n2.960000E-3,-0.0524\n2.970000E-3,-0.0435\n2.980000E-3,-0.0042\n2.990000E-3,-0.0007\n3.000000E-3,0.0336\n3.010000E-3,-0.0051\n3.020000E-3,0.2435\n3.030000E-3,3.2843\n3.040000E-3,3.3155\n3.050000E-3,3.3227\n3.060000E-3,3.2804\n3.070000E-3,3.2747\n3.080000E-3,3.2981\n3.090000E-3,3.3108\n3.100000E-3,3.3006\n3.110000E-3,3.2925\n3.120000E-3,3.2658\n3.130000E-3,-0.0219\n3.140000E-3,-0.0246\n3.150000E-3,-0.0507\n3.160000E-3,-0.0082\n3.170000E-3,-0.0372\n3.180000E-3,0.0296\n3.190000E-3,0.0343\n3.200000E-3,0.0490\n3.210000E-3,0.0161\n3.220000E-3,0.0249\n3.230000E-3,-0.0049\n3.240000E-3,-0.0304\n3.250000E-3,0.0460\n3.260000E-3,0.0114\n3.270000E-3,0.0053\n3.280000E-3,0.0053\n3.290000E-3,0.0228\n3.300000E-3,0.0379\n3.310000E-3,0.0198\n3.320000E-3,0.0079\n3.330000E-3,-0.0310\n3.340000E-3,3.3139\n3.350000E-3,3.2436\n3.360000E-3,3.2821\n3.370000E-3,3.2944\n3.380000E-3,3.2675\n3.390000E-3,3.2727\n3.400000E-3,3.2859\n3.410000E-3,3.3212\n3.420000E-3,3.3021\n3.430000E-3,3.3034\n3.440000E-3,3.2657\n3.450000E-3,3.3357\n3.460000E-3,3.3329\n3.470000E-3,3.2783\n3.480000E-3,3.3175\n3.490000E-3,3.3011\n3.500000E-3,3.3335\n3.510000E-3,3.2902\n3.520000E-3,3.2719\n3.530000E-3,3.2719\n3.540000E-3,3.2385\n3.550000E-3,-0.0140\n3.560000E-3,0.0090\n3.570000E-3,-0.0489\n3.580000E-3,0.0342\n3.590000E-3,0.0406\n3.600000E-3,0.0291\n3.610000E-3,-0.0238\n3.620000E-3,-0.0608\n3.630000E-3,0.0326\n3.640000E-3,0.0283\n3.650000E-3,3.3789\n3.660000E-3,3.2935\n3.670000E-3,3.3532\n3.680000E-3,3.3270\n3.690000E-3,3.2962\n3.700000E-3,3.3060\n3.710000E-3,3.3129\n3.720000E-3,3.2826\n3.730000E-3,3.2944\n3.740000E-3,3.3177\n3.750000E-3,1.7286\n3.760000E-3,0.0106\n3.770000E-3,-0.0040\n3.780000E-3,-0.0228\n3.790000E-3,0.0028\n3.800000E-3,0.0724\n3.810000E-3,0.0372\n3.820000E-3,0.0125\n3.830000E-3,0.0196\n3.840000E-3,-0.0380\n3.850000E-3,-0.0120\n3.860000E-3,3.3265\n3.870000E-3,3.3469\n3.880000E-3,3.2834\n3.890000E-3,3.3222\n3.900000E-3,3.2810\n3.910000E-3,3.2978\n3.920000E-3,3.3291\n3.930000E-3,3.2200\n3.940000E-3,3.2990\n3.950000E-3,3.2298\n3.960000E-3,3.3214\n3.970000E-3,3.2997\n3.980000E-3,3.3036\n3.990000E-3,3.2865\n4.000000E-3,3.3471\n4.010000E-3,3.3146\n4.020000E-3,3.3059\n4.030000E-3,3.2653\n4.040000E-3,3.2872\n4.050000E-3,3.2982\n4.060000E-3,3.2479\n4.070000E-3,-0.0043\n4.080000E-3,0.0108\n4.090000E-3,-0.0308\n4.100000E-3,0.0101\n4.110000E-3,0.0051\n4.120000E-3,0.0259\n4.130000E-3,0.0229\n4.140000E-3,-0.0047\n4.150000E-3,0.0475\n4.160000E-3,0.0202\n4.170000E-3,0.0157\n4.180000E-3,-0.0335\n4.190000E-3,-0.0235\n4.200000E-3,-0.0160\n4.210000E-3,-0.0261\n4.220000E-3,0.0450\n4.230000E-3,0.0052\n4.240000E-3,0.0196\n4.250000E-3,-0.0631\n4.260000E-3,-0.0158\n4.270000E-3,0.0036\n4.280000E-3,0.0122\n4.290000E-3,0.0196\n4.300000E-3,-0.0214\n4.310000E-3,-0.0349\n4.320000E-3,-0.0385\n4.330000E-3,0.0039\n4.340000E-3,-0.0207\n4.350000E-3,0.0031\n4.360000E-3,0.0604\n4.370000E-3,-0.0156\n4.380000E-3,0.0508\n4.390000E-3,-0.0352\n4.400000E-3,-0.0466\n4.410000E-3,-0.0756\n4.420000E-3,0.0199\n4.430000E-3,-0.0266\n4.440000E-3,-0.0189\n4.450000E-3,-0.0099\n4.460000E-3,0.0107\n4.470000E-3,0.0292\n4.480000E-3,0.0130\n4.490000E-3,-0.0202\n4.500000E-3,-0.0003\n4.510000E-3,-0.0607\n4.520000E-3,0.0107\n4.530000E-3,0.0075\n4.540000E-3,-0.0262\n4.550000E-3,-0.0060\n4.560000E-3,-0.0009\n4.570000E-3,0.0189\n4.580000E-3,0.0365\n4.590000E-3,3.2993\n4.600000E-3,3.2393\n4.610000E-3,3.2713\n4.620000E-3,3.2955\n4.630000E-3,3.3227\n4.640000E-3,3.3016\n4.650000E-3,3.2816\n4.660000E-3,3.3072\n4.670000E-3,3.2546\n4.680000E-3,3.2702\n4.690000E-3,3.3304\n4.700000E-3,3.3214\n4.710000E-3,3.2977\n4.720000E-3,3.3145\n4.730000E-3,3.3560\n4.740000E-3,3.3299\n4.750000E-3,3.3204\n4.760000E-3,3.2869\n4.770000E-3,3.2657\n4.780000E-3,3.2889\n4.790000E-3,3.2723\n4.800000E-3,-0.0322\n4.810000E-3,0.0074\n4.820000E-3,0.0430\n4.830000E-3,0.0037\n4.840000E-3,0.0229\n4.850000E-3,0.0073\n4.860000E-3,0.0140\n4.870000E-3,0.0183\n4.880000E-3,-0.0466\n4.890000E-3,-0.0022\n4.900000E-3,-0.0082\n4.910000E-3,0.0050\n4.920000E-3,-0.0593\n4.930000E-3,-0.0208\n4.940000E-3,-0.0407\n4.950000E-3,-0.0405\n4.960000E-3,0.0221\n4.970000E-3,0.0236\n4.980000E-3,0.0052\n4.990000E-3,-0.0570\n5.000000E-3,1.6799\n5.010000E-3,3.2933\n5.020000E-3,3.2768\n5.030000E-3,3.2595\n5.040000E-3,3.2934\n5.050000E-3,3.2536\n5.060000E-3,3.2878\n5.070000E-3,3.3372\n5.080000E-3,3.3381\n5.090000E-3,3.2979\n5.100000E-3,3.2085\n5.110000E-3,0.0114\n5.120000E-3,0.0019\n5.130000E-3,0.0110\n5.140000E-3,0.0215\n5.150000E-3,-0.0260\n5.160000E-3,-0.0034\n5.170000E-3,0.0172\n5.180000E-3,-0.0366\n5.190000E-3,0.0019\n5.200000E-3,0.0191\n5.210000E-3,3.2502\n5.220000E-3,3.2563\n5.230000E-3,3.3339\n5.240000E-3,3.3252\n5.250000E-3,3.2632\n5.260000E-3,3.2973\n5.270000E-3,3.3031\n5.280000E-3,3.3022\n5.290000E-3,3.3081\n5.300000E-3,3.3010\n5.310000E-3,3.3449\n5.320000E-3,0.0408\n5.330000E-3,-0.0296\n5.340000E-3,-0.0049\n5.350000E-3,-0.0508\n5.360000E-3,-0.0095\n5.370000E-3,-0.0027\n5.380000E-3,-0.0101\n5.390000E-3,0.0188\n5.400000E-3,0.0011\n5.410000E-3,-0.0046\n5.420000E-3,0.0205\n5.430000E-3,0.0125\n5.440000E-3,0.0271\n5.450000E-3,-0.0248\n5.460000E-3,0.0713\n5.470000E-3,-0.0151\n5.480000E-3,-0.0205\n5.490000E-3,-0.0207\n5.500000E-3,0.0014\n5.510000E-3,-0.0393\n5.520000E-3,-0.0627\n5.530000E-3,-0.0179\n5.540000E-3,0.0355\n5.550000E-3,0.0040\n5.560000E-3,-0.0076\n5.570000E-3,0.0240\n5.580000E-3,0.0379\n5.590000E-3,0.0031\n5.600000E-3,0.0312\n5.610000E-3,0.0094\n5.620000E-3,0.0092\n5.630000E-3,0.0291\n5.640000E-3,0.0433\n5.650000E-3,-0.0112\n5.660000E-3,-0.0109\n5.670000E-3,-0.0342\n5.680000E-3,0.0845\n5.690000E-3,0.0276\n5.700000E-3,0.0063\n5.710000E-3,0.0237\n5.720000E-3,0.0254\n5.730000E-3,-0.0340\n5.740000E-3,0.0223\n5.750000E-3,0.0006\n5.760000E-3,-0.0168\n5.770000E-3,-0.0251\n5.780000E-3,-0.0317\n5.790000E-3,-0.0197\n5.800000E-3,-0.0172\n5.810000E-3,0.0472\n5.820000E-3,0.0045\n5.830000E-3,-0.0117\n5.840000E-3,3.2485\n5.850000E-3,3.2830\n5.860000E-3,3.3288\n5.870000E-3,3.3151\n5.880000E-3,3.2715\n5.890000E-3,3.2457\n5.900000E-3,3.2875\n5.910000E-3,3.2719\n5.920000E-3,3.2944\n5.930000E-3,3.2938\n5.940000E-3,3.2573\n5.950000E-3,3.2858\n5.960000E-3,3.3046\n5.970000E-3,3.2988\n5.980000E-3,3.2358\n5.990000E-3,3.3192\n6.000000E-3,3.2801\n6.010000E-3,3.3002\n6.020000E-3,3.2908\n6.030000E-3,3.3431\n6.040000E-3,3.2981\n6.050000E-3,3.3282\n6.060000E-3,3.2776\n6.070000E-3,3.2667\n6.080000E-3,3.3355\n6.090000E-3,3.2813\n6.100000E-3,3.2905\n6.110000E-3,3.2274\n6.120000E-3,3.3279\n6.130000E-3,3.2650\n6.140000E-3,3.3357\n6.150000E-3,3.2788\n6.160000E-3,3.3130\n6.170000E-3,3.2932\n6.180000E-3,3.3109\n6.190000E-3,3.3023\n6.200000E-3,3.2865\n6.210000E-3,3.3220\n6.220000E-3,3.3280\n6.230000E-3,3.2958\n6.240000E-3,3.2991\n6.250000E-3,3.2767\n6.260000E-3,3.2867\n6.270000E-3,3.3200\n6.280000E-3,3.2856\n6.290000E-3,3.3077\n6.300000E-3,3.2741\n6.310000E-3,3.3289\n6.320000E-3,3.3514\n6.330000E-3,3.3504\n6.340000E-3,3.2770\n6.350000E-3,3.2961\n6.360000E-3,3.3198\n6.370000E-3,3.3347\n6.380000E-3,3.3093\n6.390000E-3,3.3007\n6.400000E-3,3.3418\n6.410000E-3,3.3323\n6.420000E-3,3.2782\n6.430000E-3,3.3234\n6.440000E-3,3.2658\n6.450000E-3,3.2714\n6.460000E-3,3.2656\n6.470000E-3,3.2511\n6.480000E-3,3.3066\n6.490000E-3,3.2919\n6.500000E-3,3.3762\n6.510000E-3,3.2722\n6.520000E-3,3.3330\n6.530000E-3,3.3630\n6.540000E-3,3.2744\n6.550000E-3,3.2614\n6.560000E-3,3.2977\n6.570000E-3,3.3238\n6.580000E-3,3.2708\n6.590000E-3,3.2867\n6.600000E-3,3.2514\n6.610000E-3,3.2936\n6.620000E-3,3.2947\n6.630000E-3,3.2986\n6.640000E-3,3.3424\n6.650000E-3,3.2615\n6.660000E-3,3.2205\n6.670000E-3,3.3306\n6.680000E-3,3.3452\n6.690000E-3,3.2633\n6.700000E-3,3.2579\n6.710000E-3,3.3037\n6.720000E-3,3.3160\n6.730000E-3,3.3222\n6.740000E-3,3.3003\n6.750000E-3,3.2766\n6.760000E-3,3.3282\n6.770000E-3,3.3264\n6.780000E-3,3.3027\n6.790000E-3,3.3080\n6.800000E-3,3.3260\n6.810000E-3,3.3114\n6.820000E-3,3.2728\n6.830000E-3,3.2834\n6.840000E-3,3.3011\n6.850000E-3,3.3644\n6.860000E-3,3.2863\n6.870000E-3,3.3189\n6.880000E-3,3.2373\n6.890000E-3,3.2728\n6.900000E-3,3.3169\n6.910000E-3,3.2141\n6.920000E-3,3.2906\n6.930000E-3,3.3295\n6.940000E-3,3.3539\n6.950000E-3,3.3106\n6.960000E-3,3.3429\n6.970000E-3,3.2806\n6.980000E-3,3.2731\n6.990000E-3,3.3062\n7.000000E-3,3.3286\n7.010000E-3,3.3001\n7.020000E-3,3.3191\n7.030000E-3,3.2817\n7.040000E-3,3.3412\n7.050000E-3,3.2903\n7.060000E-3,3.2991\n7.070000E-3,3.2616\n7.080000E-3,3.2605\n",
                    "protocol": "uart",
                    "baud": 9600,
                    "dataBits": "8",
                    "parity": "even",
                    "stopBits": "1"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OhmforgeProtocolDecoderResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tool": {
      "get": {
        "operationId": "getToolDefinition",
        "summary": "Inputs, output schema and examples for this tool",
        "responses": {
          "200": {
            "description": "Tool definition.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Problem": {
        "type": "object",
        "description": "RFC 9457 problem details. 422 responses include per-field `errors`.",
        "required": [
          "type",
          "title",
          "status",
          "detail"
        ],
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "detail": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "field",
                "message"
              ],
              "properties": {
                "field": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "OhmforgeProtocolDecoderInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "file": {
            "title": "Capture file",
            "description": "CSV from a scope (Rigol, Siglent, Keysight, Tektronix or any \"time, channel…\" table), a sigrok/PulseView or logic-analyzer CSV, or a WAV recording; up to 25 MB and 2 million rows. Files are processed in memory and not kept. Upload as {filename, contentType?, contentBase64}. Max 25600 KiB. Accepts .csv,.txt,.tsv,.wav,text/csv,text/plain,audio/wav,audio/x-wav.",
            "type": "object",
            "additionalProperties": false,
            "required": [
              "filename",
              "contentBase64"
            ],
            "properties": {
              "filename": {
                "type": "string"
              },
              "contentType": {
                "type": "string"
              },
              "contentBase64": {
                "type": "string"
              }
            }
          },
          "csv": {
            "title": "Or paste the CSV text",
            "description": "Used when no file is uploaded.",
            "type": "string",
            "maxLength": 200000
          },
          "sampleRate": {
            "title": "Sample rate (only if the file has no time column)",
            "type": "number",
            "minimum": 0.001,
            "maximum": 1000000000000,
            "x-unit": "Hz"
          },
          "protocol": {
            "title": "Protocol",
            "type": "string",
            "enum": [
              "uart",
              "i2c",
              "spi"
            ],
            "default": "uart"
          },
          "rx": {
            "title": "UART: channel to decode",
            "description": "Channel name from the file header, e.g. RX, D0 or CH1. Empty = automatic.",
            "type": "string",
            "maxLength": 60
          },
          "scl": {
            "title": "I²C: SCL channel",
            "type": "string",
            "maxLength": 60
          },
          "sda": {
            "title": "I²C: SDA channel",
            "type": "string",
            "maxLength": 60
          },
          "sclk": {
            "title": "SPI: clock channel",
            "type": "string",
            "maxLength": 60
          },
          "mosi": {
            "title": "SPI: MOSI channel",
            "description": "\"none\" if not captured.",
            "type": "string",
            "maxLength": 60
          },
          "miso": {
            "title": "SPI: MISO channel",
            "description": "\"none\" if not captured.",
            "type": "string",
            "maxLength": 60
          },
          "cs": {
            "title": "SPI: chip-select channel",
            "description": "\"none\" if not captured.",
            "type": "string",
            "maxLength": 60
          },
          "baud": {
            "title": "UART: baud rate",
            "description": "Empty or 0 = detect from the shortest pulses.",
            "type": "integer",
            "minimum": 0,
            "maximum": 20000000,
            "x-unit": "bit/s"
          },
          "dataBits": {
            "title": "UART: data bits",
            "type": "string",
            "enum": [
              "5",
              "6",
              "7",
              "8",
              "9"
            ],
            "default": "8"
          },
          "parity": {
            "title": "UART: parity",
            "type": "string",
            "enum": [
              "none",
              "even",
              "odd",
              "mark",
              "space"
            ],
            "default": "none"
          },
          "stopBits": {
            "title": "UART: stop bits",
            "type": "string",
            "enum": [
              "1",
              "1.5",
              "2"
            ],
            "default": "1"
          },
          "inverted": {
            "title": "UART: inverted line (idle low)",
            "type": "boolean",
            "default": false
          },
          "cpol": {
            "title": "SPI: clock polarity (CPOL)",
            "type": "string",
            "enum": [
              "auto",
              "0",
              "1"
            ],
            "default": "auto"
          },
          "cpha": {
            "title": "SPI: clock phase (CPHA)",
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "default": "0"
          },
          "wordBits": {
            "title": "SPI: bits per word",
            "type": "integer",
            "minimum": 4,
            "maximum": 32,
            "default": 8
          },
          "bitOrder": {
            "title": "SPI: bit order",
            "type": "string",
            "enum": [
              "msb",
              "lsb"
            ],
            "default": "msb"
          },
          "csActive": {
            "title": "SPI: chip select active",
            "type": "string",
            "enum": [
              "low",
              "high"
            ],
            "default": "low"
          },
          "threshold": {
            "title": "Logic threshold for analog channels (optional)",
            "description": "Empty = midway between the low and high levels found in the capture.",
            "type": "number",
            "minimum": -1000,
            "maximum": 1000,
            "x-unit": "V"
          }
        },
        "required": [
          "protocol"
        ]
      },
      "OhmforgeProtocolDecoderResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "protocol",
              "format",
              "mapping",
              "digitized",
              "frameCount",
              "errorCount",
              "frames",
              "uart",
              "i2c",
              "spi"
            ],
            "properties": {
              "protocol": {
                "type": "string",
                "enum": [
                  "uart",
                  "i2c",
                  "spi"
                ]
              },
              "format": {
                "type": "string"
              },
              "mapping": {
                "type": "object",
                "description": "Channel used per role (rx, scl, sda, sclk, mosi, miso, cs).",
                "additionalProperties": {
                  "type": "string"
                }
              },
              "digitized": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "channel",
                    "threshold",
                    "hysteresis"
                  ],
                  "properties": {
                    "channel": {
                      "type": "string"
                    },
                    "threshold": {
                      "type": "number"
                    },
                    "hysteresis": {
                      "type": "number"
                    }
                  }
                }
              },
              "frameCount": {
                "type": "integer"
              },
              "errorCount": {
                "type": "integer"
              },
              "frames": {
                "type": "array",
                "description": "Decoded frames in time order (at most 2000).",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "start",
                    "end",
                    "kind",
                    "value",
                    "text",
                    "info",
                    "errors"
                  ],
                  "properties": {
                    "start": {
                      "type": "number"
                    },
                    "end": {
                      "type": "number"
                    },
                    "kind": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    },
                    "text": {
                      "type": "string"
                    },
                    "info": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "framing",
                          "parity",
                          "break",
                          "truncated",
                          "nack",
                          "unexpected-nack",
                          "incomplete",
                          "cpol-mismatch",
                          "no-stop"
                        ]
                      }
                    }
                  }
                }
              },
              "uart": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": false,
                "required": [
                  "baud",
                  "measuredBaud",
                  "standardBaud",
                  "format",
                  "text"
                ],
                "properties": {
                  "baud": {
                    "type": "number"
                  },
                  "measuredBaud": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "standardBaud": {
                    "type": [
                      "boolean",
                      "null"
                    ]
                  },
                  "format": {
                    "type": "string"
                  },
                  "text": {
                    "type": "string",
                    "description": "Bytes without errors as text (Latin-1)."
                  }
                }
              },
              "i2c": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": false,
                "required": [
                  "sclFrequencyHz",
                  "speedClass",
                  "starts",
                  "stops",
                  "transactions"
                ],
                "properties": {
                  "sclFrequencyHz": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "speedClass": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "starts": {
                    "type": "integer"
                  },
                  "stops": {
                    "type": "integer"
                  },
                  "transactions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "start",
                        "address",
                        "tenBit",
                        "read",
                        "data",
                        "acked",
                        "repeatedStart",
                        "errors",
                        "note"
                      ],
                      "properties": {
                        "start": {
                          "type": "number"
                        },
                        "address": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "tenBit": {
                          "type": "boolean"
                        },
                        "read": {
                          "type": [
                            "boolean",
                            "null"
                          ]
                        },
                        "data": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "acked": {
                          "type": "boolean"
                        },
                        "repeatedStart": {
                          "type": "boolean"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "note": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    }
                  }
                }
              },
              "spi": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": false,
                "required": [
                  "mode",
                  "cpol",
                  "cpha",
                  "detectedCpol",
                  "clockFrequencyHz",
                  "transfers"
                ],
                "properties": {
                  "mode": {
                    "type": "integer"
                  },
                  "cpol": {
                    "type": "integer"
                  },
                  "cpha": {
                    "type": "integer"
                  },
                  "detectedCpol": {
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "clockFrequencyHz": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "transfers": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "index",
                        "start",
                        "end",
                        "mosi",
                        "miso",
                        "errors"
                      ],
                      "properties": {
                        "index": {
                          "type": "integer"
                        },
                        "start": {
                          "type": "number"
                        },
                        "end": {
                          "type": "number"
                        },
                        "mosi": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "miso": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      }
    }
  }
}