You are here: SwitchKit® Development Environment - Installation and Maintenance Guide > 5 Building a Configuration File > Configuration Message Syntax
The following is a syntax explanation of the CSP configuration messages.
MessageName(
Parameter = Value,
Parameter = Value,
Parameter = Value);
• Enter configuration parameters as provided through the source code.
• Configuration values depend on the customer specifications but must be in a valid range.
• If the message name is followed by empty parentheses, no parameters are required.
To place comments after a message in your configuration file, put a pound symbol (#) at the beginning of the comment. Comments can be placed immediately after the end of the message or on a separate line, as follows:
MessageName(Parameter = Value); # comment
or
MessageName (Parameter = Value, Parameter = Value);
# comment
To specify a data array as an argument, simply list all the bytes individually, separated by a colon (:). The Number of Data Locations must precede the data array. Example to do a SystemConfig with a data array of the bytes 0x01 0x00 0x0A:
SystemConfig(ConfigType = 0x03, Data = 0x01:0x00:0x0A);
To make the parameters easier to distinguish, message formats are presented in the documentation for the API messages in the following manner:
MessageName (
0001 Parameter = Value,
0002 Parameter = Value,
0003 Parameter = Value);
You can enter messages in the configuration file in this format or in one string, as long as the syntax is correct.
Example
The format of the AnswerSuperviseConfig message is as follows:
AnswerSuperviseConfig(
0004 Node = integer,
0005 Range = StartSpan:StartChan - EndSpan:EndChan,
0006 AnswerMode = integer);
To configure spans 0-1 on Node 1 to propagate answer to distant end, you would enter the following:
AnswerSuperviseConfig(
0007 Node = 1,
0008 Range = 0:0 - 1:23,
0009 AnswerMode = 1);