Table 6.1 lists the topics in this clause.
The binding of each SRM function utilitzes the following template:
SRM C Binding Function Name
Abstract Function: SRM Abstract Function Name
ReturnValueDataType SRM_FunctionName (
Parameter0DataType parameter_0_name, /* parameter 0 comment */
Parameter1DataType parameter_1_name, /* parameter 1 comment */
• • •
ParameterNDataType parameter_N_name /* parameter N comment */
);
The SRM C binding function name is formed by a sentinal “SRM_” followed by the name without spaces and with words capitalized. The SRM abstract function name is the name used in ISO/IEC 18026-1.
The return value data type and parameter data types may be found in clause 5 of this part of ISO/IEC 18042 or may be a standard C data type (e.g., void).
The parameter names are formed by using lower case words separated by underscores.
To the right of each parameter declaration is a C comment field which provides a brief description of the parameter. If the comment begins with “OUT”, it means the argument is used as an output parameter; the implementation returns data to the application through this argument. Arguments without “OUT” are input parameters.
Abstract Function: RadianToDegree
void SRM_RadianToDegree (
SRM_Long_Float radian,
SRM_Long_Float *degree
);
Abstract Function: DegreeToRadian
void SRM_DegreeToRadian (
SRM_Long_Float degree,
SRM_Long_Float *radian
);