sl_decode_sl_alarm_type subroutine

Purpose

Decodes a signaling interface data type for generating text messages.

Library

The signaling interface library (libsl.a).

C syntax

#include <slsigpr.h>
...
char * sl_decode_sl_alarm_type
( SL_ALARM_TYPE sl_alarm_type
); 

Description

Returns a pointer to an ASCII string version of a signaling interface alarm suitable for printing or adding to a message, for example, “SL_ALARM_AIS”.

Parameters

sl_alarm_type
An alarm value.

Return values

unknown SL_ALARM_TYPE
The value of sl_alarm_type is not a valid member of the SL_ALARM_TYPE enumeration.
other values
The alarm value ended as a NULL-terminated ASCII string, for example, “SL_ALARM_RAI”.

Related information