![Sena Rhio10 User Manual Download Page 89](http://html1.mh-extra.com/html/sena/rhio10/rhio10_user-manual_1237630089.webp)
89
RHIO_SndCmd_GetMACRO
Description :
Used to send the command to check whether it is possible to get the MACRO of
an input port
Function Prototype :
extern "C" __declspec(dllexport) bool RHIO_SndCmd_GetMACRO
(int iPortNum);
Parameter :
int iPortNum : Input port number to check
Return :
TRUE if successful, False if failed.
Parameter when reaction event is received :
WPARAM
: Comm and transfer status Flag (ESF_MON_MACRO)
LPARAM
: Control status flag of the command (False if Time Out Error)
(0x30:Normal operation, 0x39:Abnormal operation, 0x31:Not the Set Mode, 0x32:Not set)
※
When reaction event is received, get data using RHIO_GetSettingData function and
check the MACRO on setting.
eg. :
RHIO_SndCmd_GetMACRO(1);
RHIO_SndCmd_SetDelayPulse
Description :
Used to send the command to set the Delay/Pulse of an input port
Function Prototype :
extern "C" __declspec(dllexport) bool RHIO_SndCmd_SetDelayPulse
(SRHIOSetting sSetData, int iPortNum);
Parameter :
SRHIOSetting sSetData : Data to set
SRHIOSetting.sInput.eDelayPulse : Flag to determine to set or clear
(ESOF_CLEAR, ESOF_SETTING)
SRHIOSetting.sInput.cDelayPulse : Time string in 10 bytes
Byte Size
5(ON Time)
5(OFF Time)
Operation Set
“00000” ~ “50000”
“00000” ~ “50000”
int iPortNum : Input port number to set
Return :
TRUE if successful, False if failed.