Commit f7e17e84 authored by Kubisch Daniel's avatar Kubisch Daniel
Browse files

Added external function to change parameters (SerialPortTypes.set_port_parameter(name,value,port))


Signed-off-by: default avatarKubisch Daniel <daniel.kubisch@ericsson.com>
parent 15ce8de2
......@@ -30,6 +30,17 @@ namespace SerialPortTypes {
}
// Implementation of the external function <set_parameter>.
void set__port__parameter(const CHARSTRING& parameter_name, const CHARSTRING& parameter_value, SerialPort& serial_port) {
serial_port.set_parameter(parameter_name, parameter_value);
const char* device_file_name = serial_port.get_device_file_name();
printf("Device File Name: %s\n", device_file_name);
}
char* SerialPort::get_device_file_name(){
return param_device_file;
}
void SerialPort::set_parameter(const char * parameter_name,
const char * parameter_value)
{
......
......@@ -29,6 +29,10 @@ namespace SerialPortTypes {
SerialPort(const char *par_port_name = NULL);
~SerialPort();
void set__port__parameter(const CHARSTRING& parameter_name, const CHARSTRING& parameter_value, SerialPort& serial_port);
char* get_device_file_name();
void set_parameter(const char *parameter_name,
const char *parameter_value);
......
......@@ -22,4 +22,6 @@ module SerialPortTypes {
in
SerialPortMessage;
}
public external function set_port_parameter(in charstring parameter_name, in charstring parameter_value, SerialPort serial_port);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment