SENA Rhio10 User Manual

Page 90

Advertising
background image

90

Parameter when reaction event is received :

WPARAM

: Command transfer status flag (ESF_SET_DELAY_PULSE)

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)

eg. :

In case of Set command :

SRHIOSetting sSetData;

sSetData.sInput.eDelayPulse = ESOF_SETTING;

memset(sSetData.sInput.cDelayPulse,'\0',

sizeof(sSetData.sInput.cDelayPulse));

memcpy(sSetData.sInput.cDelayPulse, "0050000000”, 10)

RHIO_SndCmd_SetDelayPulse(sSetData, 1);

In case of Set Clear command :

SRHIOSetting sSetData;

sSetData.sInput.eDelayPulse = ESOF_CLEAR;

RHIO_SndCmd_SetDelayPulse(sSetData, 1);

RHIO_SndCmd_GetDelayPulse

Description : Used to send the command to check whether it is possible to get the Delay/Pulse

of an input port

Function Prototype :

extern "C" __declspec(dllexport) bool RHIO_SndCmd_GetDelayPulse

(int iPortNum);

Parameter :

int iPortNum : Input port number to check

Return : TRUE if successful, False if failed.

Parameter when reaction event is received :

WPARAM

: Command transfer status flag (ESF_MON_DELAY_PULSE)

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 Delay/Pulse on setting.

eg. : RHIO_SndCmd_GetDelayPulse(1);

Advertising