> For the complete documentation index, see [llms.txt](https://docs.andymark.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.andymark.com/ftc-electronics/ftc-sensors/magnetic-switch-am-5746/device-api.md).

# Device API

### C++

[AndyMark FRC CAN API (C++): AM\_CAN\_Mag\_Switch Class Reference](https://andymarkproductsoftware.github.io/amlib-vendordep/documentation/2026/2026.0.3/doxygen-cpp/html/class_a_m___c_a_n___mag___switch.html)

### Java

[AndyMark FRC CAN API (Java): com.andymark.jni.AM\_CAN\_Mag\_Switch Class Reference](https://andymarkproductsoftware.github.io/amlib-vendordep/documentation/2026/2026.0.3/doxygen-Java/html/classcom_1_1andymark_1_1jni_1_1_a_m___c_a_n___mag___switch.html)
