CAN DragonEmSA
functionSerial Number and Firmware

EmSACAN_FirmwareUpdateGetActive

Prototype

emsacan_result_t EmSACAN_FirmwareUpdateGetActive(
    emsacan_handle_t Handle,
    uint8_t *pActive );

Description

Queries whether the firmware update worker thread is running.

Parameters

ParameterDirectionTypeDescription
Handleinemsacan_handle_tSession handle from EmSACAN_Connect.
pActiveoutuint8_tReceives 1 while the worker is active, 0 otherwise.

Example

uint8_t active = 0;
if (EmSACAN_FirmwareUpdateGetActive(handle, &active) == EMSACAN_OK && active)
    { /* update still in progress */ }

See also