DLN_DEVICE_REMOVED_EV

The DLN_DEVICE_REMOVED event is generated when a device is removed from a server. The event contains the handle to the removed device.

 typedef struct
 {
    DLN_MSG_HEADER header;
 } __PACKED_ATTR DLN_DEVICE_REMOVED_EV;

Parameters:

header

Defines the DLN message header DLN_MSG_HEADER. The event header contains the following fields:

  • size - The size of the message. It is equal to the size of the DLN_DEVICE_REMOVED_EV structure.
  • msgId - Defines the message. For the DLN_DEVICE_REMOVED_EV event it is set to 0x002E. The DLN_MSG_ID_DEVICE_REMOVED_EV constant can be used.
  • echoCounter - A freerunning counter. It shows the number of events sent by the device. The echoCounter is reset when its value reaches 0xFFFF (65536).
  • handle - A handle to the DLN-series adapter. Can be either a handle to a specific device (stream) or the HDLN_ALL_DEVICES value.