/* Unloads the Lawicel CANUSBDRV DLL and resets the API function pointers.  */
static void CanUsbLibUnloadDll(void)
/* Unloads the Lawicel CANUSBDRV DLL and resets the API function pointers.  */
static void CanUsbLibUnloadDll(void)
{
  canUsbLibFuncOpenPtr = NULL;
  canUsbLibFuncClosePtr = NULL;
  canUsbLibFuncWritePtr = NULL;
  canUsbLibFuncStatusPtr = NULL;
  canUsbLibFuncSetReceiveCallBackPtr = NULL;
  canUsbCanHandle = 0;
  if (canUsbDllHandle != NULL) 
  {
    (void)FreeLibrary(canUsbDllHandle);
    canUsbDllHandle = NULL;
  }
}