{"provider":"ROCADS","service":"ROCADS Engineering API","version":"0.5.0","environment":"production","documentation":"https://api.rocads.com.mx/openapi.json","payment_protocol":"x402","services":[{"id":"stm32-timer","name":"STM32 Timer & PWM Calculator","category":"embedded-systems","method":"GET","endpoint":"https://api.rocads.com.mx/v1/embedded/stm32/timer","description":"Calculate STM32 edge-aligned upcounting PWM PSC, ARR, CCR and C register/HAL snippets.","payment":{"scheme":"exact","price":"$0.01","currency":"USDC","network":"eip155:8453"},"required_parameters":["timer_clock_hz","frequency_hz","duty_percent"],"optional_parameters":["timer","timer_bits","channel"],"examples":[{"method":"GET","url":"https://api.rocads.com.mx/v1/embedded/stm32/timer?timer_clock_hz=84000000&frequency_hz=5600&duty_percent=50","expected_status_before_payment":402}]},{"id":"stm32-clock-tree","name":"STM32 Clock Tree Calculator","category":"embedded-systems","method":"GET","endpoint":"https://api.rocads.com.mx/v1/embedded/stm32/clock-tree","description":"Calculate STM32F103/F407 RCC clock tree including PLL, SYSCLK, AHB, APB and timer clocks. Feed tim_apb1 or tim_apb2 into the PWM calculator timer_clock_hz parameter.","payment":{"scheme":"exact","price":"$0.015","currency":"USDC","network":"eip155:8453"},"required_parameters":["model"],"optional_parameters":["sysclk_source","hse_hz","pll_source","pll_mul","pllm","plln","pllp","pllq","ahb_div","apb1_div","apb2_div"],"examples":[{"method":"GET","url":"https://api.rocads.com.mx/v1/embedded/stm32/clock-tree?model=stm32f407&hse_hz=8000000&pll_source=hse&pllm=8&plln=336&pllp=2&pllq=7&ahb_div=1&apb1_div=4&apb2_div=2","expected_status_before_payment":402}]},{"id":"rc-filter","name":"ROCADS RC Filter Designer","category":"analog-electronics","method":"GET","endpoint":"https://api.rocads.com.mx/v1/electronics/rc-filter","description":"Design or analyze first-order passive RC filters; cutoff, magnitude, phase, settling, commercial E-series values and PWM fundamental attenuation. Ideal unloaded model; not total PWM ripple.","payment":{"scheme":"exact","price":"$0.015","currency":"USDC","network":"eip155:8453"},"required_parameters":[],"parameter_rules":"Design mode requires cutoff_hz; analyze mode requires resistor_ohms and capacitor_f. Mode defaults based on cutoff_hz presence.","optional_parameters":["type","mode","cutoff_hz","resistor_ohms","capacitor_f","resistor_series","signal_hz","pwm_hz","duty_percent"],"examples":[{"method":"GET","url":"https://api.rocads.com.mx/v1/electronics/rc-filter?type=lowpass&cutoff_hz=200&resistor_ohms=10000&resistor_series=E24&pwm_hz=5600&duty_percent=50","expected_status_before_payment":402}]},{"id":"json-validator","name":"json-validator","category":"fast-services","method":"POST","endpoint":"https://api.rocads.com.mx/v1/tools/json-validator","description":"Validate JSON data against a supplied JSON Schema (draft-07 subset via Ajv)","payment":{"scheme":"exact","price":"$0.002","currency":"USDC","network":"eip155:8453"},"required_parameters":["schema","data"],"optional_parameters":[],"examples":[{"method":"POST","url":"https://api.rocads.com.mx/v1/tools/json-validator","content_type":"application/json","body":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"integer"}}},"data":{"id":42}},"expected_status_before_payment":402}]},{"id":"data-sanitizer","name":"data-sanitizer","category":"fast-services","method":"POST","endpoint":"https://api.rocads.com.mx/v1/tools/data-sanitizer","description":"Trim strings, normalize whitespace and optionally remove null values recursively","payment":{"scheme":"exact","price":"$0.003","currency":"USDC","network":"eip155:8453"},"required_parameters":["data"],"optional_parameters":["trim","normalize_whitespace","remove_nulls"],"examples":[{"method":"POST","url":"https://api.rocads.com.mx/v1/tools/data-sanitizer","content_type":"application/json","body":{"data":{"name":"  ROCADS  ","unused":null},"trim":true,"remove_nulls":true},"expected_status_before_payment":402}]},{"id":"unit-converter","name":"unit-converter","category":"fast-services","method":"POST","endpoint":"https://api.rocads.com.mx/v1/tools/unit-converter","description":"Convert engineering units with dimensional compatibility checks","payment":{"scheme":"exact","price":"$0.002","currency":"USDC","network":"eip155:8453"},"required_parameters":["value","from","to"],"optional_parameters":[],"examples":[{"method":"POST","url":"https://api.rocads.com.mx/v1/tools/unit-converter","content_type":"application/json","body":{"value":25.4,"from":"mm","to":"in"},"expected_status_before_payment":402}]},{"id":"crc-calculator","name":"crc-calculator","category":"fast-services","method":"POST","endpoint":"https://api.rocads.com.mx/v1/tools/crc-calculator","description":"Calculate CRC16 Modbus, CRC32 IEEE, XOR8 and SHA256 for hex-encoded bytes","payment":{"scheme":"exact","price":"$0.002","currency":"USDC","network":"eip155:8453"},"required_parameters":["algorithm","hex"],"optional_parameters":[],"examples":[{"method":"POST","url":"https://api.rocads.com.mx/v1/tools/crc-calculator","content_type":"application/json","body":{"algorithm":"crc16-modbus","hex":"313233343536373839"},"expected_status_before_payment":402}]},{"id":"csv-inspector","name":"csv-inspector","category":"fast-services","method":"POST","endpoint":"https://api.rocads.com.mx/v1/tools/csv-inspector","description":"Inspect CSV headers, rows, column types and inconsistent row widths","payment":{"scheme":"exact","price":"$0.003","currency":"USDC","network":"eip155:8453"},"required_parameters":["csv"],"optional_parameters":["delimiter"],"examples":[{"method":"POST","url":"https://api.rocads.com.mx/v1/tools/csv-inspector","content_type":"application/json","body":{"csv":"name,age\nAna,25\nLuis,30","delimiter":","},"expected_status_before_payment":402}]}]}