summaryrefslogtreecommitdiff
path: root/csta.erl
blob: ca5fb09320a0a49bbeccc3b36b49d003419658f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
-module(csta).

-export([lines/1, decode/1, status/0, snapshot/1]).

-include("CSTA-escape-service.hrl").
-include("CSTA-snapshot-device.hrl").
-include("CSTA-device-identifiers.hrl").

decode(Data) ->
	'CSTA-escape-service':decode('EscapeArgument', Data).

lines(co) ->
	lines(networkInterface);

lines(ext) ->
	lines(station);

lines(Device) ->
	'CSTA-escape-service':encode('EscapeArgument', #'EscapeArgument'{
		privateData = {private,
		{kmeSystemData, {getSystemData, {request, {deviceList,
		{category, {standardDevice, Device}}}}}}}}).

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

snapshot(Device) ->
	'CSTA-snapshot-device':encode('SnapshotDeviceArgument',
		#'SnapshotDeviceArgument'{
		   snapshotObject = #'DeviceID'{
			deviceIdentifier = {deviceNumber, Device}}}).