summaryrefslogtreecommitdiff
path: root/src/status.erl
blob: 3c419a37bece6fb767aa457081360f7d3f81dcce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-module(status).

-export([decode/1, encode/0, value/1]).

-include("CSTA-system-status.hrl").

decode(Data) ->
	'CSTA-system-status':decode('SystemStatusArg', Data).

encode() ->
	'CSTA-system-status':encode('SystemStatusRes', {noData, []}).

value({ok, #'SystemStatusArg'{systemStatus = Status}}) ->
	Status;

value(Data) ->
	value(decode(Data)).