SENA Rhio10 User Manual
Page 93
93
RHIO_SndCmd_GetPortEnable
Description : Used to send the command to check whether it is possible to get the
Enable/Disable Port data of all the ports
Function Prototype :
extern "C" __declspec(dllexport) bool RHIO_SndCmd_GetPortEnable();
Parameter : None
Return : TRUE if successful, False if failed.
Parameter when reaction event is received :
WPARAM
: Command transfer status flag (ESF_MON_ENABLE)
LPARAM
: Control status flag of the command (False if Time Out Error)
(0x30:Normal operation, 0x39:Abnormal operation, 0x31:Not the Set Mode)
※ When reaction event is received, get data using RHIO_GetSettingData function and
check the Enable/Disable Port on setting.
eg. : RHIO_SndCmd_GetPortEnable();
RHIO_SndCmd_SetPwrStopEnable
Description : Used to send the command to enable/disable the Power Failure Recovery of all
the input ports
Function Prototype :
extern "C" __declspec(dllexport) bool RHIO_SndCmd_SetPwrStopEnable
(SRHIOSetting sSetData);
Parameter :
SRHIOSetting sSetData : Data to set
SRHIOSetting.sOutput.sEnablePowerStop[10] : Enable/Disable Power
Failure Recovery of the input port (Enable:true, Disable:false)
Return : TRUE if successful, False if failed.
Parameter when reaction event is received :
WPARAM
: Commnad transfer status flag (ESF_SET_PWR_STOP)
LPARAM
: Control status flag of the command (False if Time Out Error)
(0x30:Normal operation, 0x39:Abnormal operation, 0x31:Not the Set Mode)
eg. :
SRHIOSetting sSetData;
for(int index = 0; index < 10; index++)
sSetData.sOutput.sEnablePowerStop[index] = true;
RHIO_SndCmd_SetPortEnable(sSetData);