CAN DragonEmSA

API Reference

The CAN Dragon SDK exposes two public API surfaces:

APIHeader / AssemblyLanguageError model
C APIEmSACAN.h / EmSACAN.dllC99Return codes (emsacan_result_t)
C# WrapperEmSACANNET.dll.NET 6+Exceptions (EmSACANException)

Both APIs call the same native library underneath. The Program Flow guide applies to both.

Choose your API

Core lifecycle functions

StepC APIC# API
InitializeEmSACAN_StartupEmSACANLibrary.Startup
EnumerateEmSACAN_EnumerateInterfacesEmSACANLibrary.EnumerateInterfaces
ConnectEmSACAN_ConnectCanDragonDevice.Connect
ConfigureEmSACAN_WriteParameterWriteChannelConfig
Open portEmSACAN_OpenChannelOpenChannel
TransmitEmSACAN_WriteWrite
ReceiveEmSACAN_ReadRead
Close portEmSACAN_CloseChannelCloseChannel
DisconnectEmSACAN_DisconnectDispose
ShutdownEmSACAN_ShutdownEmSACANLibrary.Shutdown