> 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/frc-electronics/can-sensors/can-magnetic-switch-am-5746/device-api.md).

# Device API

\
C++​

{% embed url="<https://andymarkproductsoftware.github.io/amlib-vendordep/documentation/2026/2026.0.4/doxygen-cpp/html/class_a_m___c_a_n___mag___switch.html>" %}

### Java

{% embed url="<https://andymarkproductsoftware.github.io/amlib-vendordep/documentation/2026/2026.0.4/doxygen-Java/html/classcom_1_1andymark_1_1jni_1_1_a_m___c_a_n___mag___switch.html>" %}
