int MXCommon__InitAndStartSynchroTimer ( xsd__unsignedLong  ulTimeBase,
xsd__unsignedLong  ulReloadValue,
xsd__unsignedLong  ulNbrOfCycle,
xsd__unsignedLong  ulGenerateTriggerMode,
xsd__unsignedLong  ulOption01,
xsd__unsignedLong  ulOption02,
xsd__unsignedLong  ulOption03,
xsd__unsignedLong  ulOption04,
struct MXCommon__Response Response 
)
Parameters:
[in] ulTimeBase : Time base of the timer (0 for us, 1 for ms, 2 for s)
[in] ulReloadValue : Timer reload value (0 to 0xFFFF), minimum reload time is 5 us
[in] ulNbrOfCycle : Number of timer cycle

  • 0: continuous
  • > 0: defined number of cycle
[in] ulGenerateTriggerMode :

  • 0: Wait the time overflow to set the synchronisation trigger
  • 1: Set the synchronisation trigger by the start of the timer and after each time overflow
[in] ulOption01 : Define the source of the trigger

  • 0 : Trigger disabled
  • 1 : Enable the hardware digital input trigger
[in] ulOption02 : Define the edge of the hardware trigger who generates a trigger action

  • 1 : rising edge (Only if hardware trigger selected)
  • 2 : falling edge (Only if hardware trigger selected)
  • 3 : Both front (Only if hardware trigger selected)
[in] ulOption03 : Define the number of trigger events before the action occur

  • 1 : all trigger event start the action
  • max value : 65535
[in] ulOption04 : Reserved
[out] Response 
  • sResponse.iReturnValue : Return value
    • 0 : success
    • -1: system error (see syserrno)
    • -2: not available time base
    • -3: timer reload value can not be greater than 65535
    • -4: minimum time reload is 5 us
    • -5: Number of cycle can not be greater than 65535
    • -6: Generate trigger mode error
    • -100: Init timer error
    • -101: Start timer error
  • sResponse.syserrno : System-error code. The value of the libc "errno" code, see MXCommon__Strerror(). May be ENOSYS : Function not implemented.
Return values:
SOAP_OK SOAP call success
otherwise SOAP protocol error