API Reference
The CAN Dragon SDK exposes two public API surfaces:
| API | Header / Assembly | Language | Error model |
|---|---|---|---|
| C API | EmSACAN.h / EmSACAN.dll | C99 | Return codes (emsacan_result_t) |
| C# Wrapper | EmSACANNET.dll | .NET 6+ | Exceptions (EmSACANException) |
Both APIs call the same native library underneath. The Program Flow guide applies to both.
Choose your API
C API (EmSACAN.h)
Native library for C/C++ applications. Return-code error handling, wide-string serial numbers, direct struct access.
C# Wrapper (EmSACANNET)
Managed wrapper for .NET applications. Exception-based errors, IDisposable sessions, typed helpers.
Core lifecycle functions
Related guides
- Quick Start — six-step path to your first CAN frame
- Threading — concurrency rules
- Distribution — runtime file deployment
