Skip to content
Start free evaluation

pdcomm_gem_spool_capture_alarm

Function

Builds an S5F1 alarm report and offers it to the spool.

PdcommStatus pdcomm_gem_spool_capture_alarm(PdcommTcpEndpoint *endpoint, uint32_t alarm_id, uint8_t wait, uint64_t now, PdcommGemSpoolWriteInfo *info)

Declared in: #include <pdcomm_gem_spooling.h>

The report uses the current state, category, and text of a registered, enabled alarm and is then captured as in pdcomm_gem_spool_capture().

Parameters

NameDescription
endpointSynchronized endpoint configured as GEM Equipment with a spool and alarms.
alarm_idALID of the alarm.
wait1 to store the S5F1 with the W bit; must be 0 or 1.
nowApplication timestamp stored as the capture time.
infoReceives the outcome. Must not be NULL.

Returns

As pdcomm_gem_spool_capture(); additionally #PDCOMM_INVALID_STATE when alarms are not configured or the alarm is unknown or disabled.