int MSXE371x__IncCounterInitAndEnableIndex ( xsd__unsignedLong  ulReferenceAction,
xsd__unsignedLong  ulIndexOperation,
xsd__unsignedLong  ulAutoMode,
xsd__unsignedLong  ulOption01,
struct MSXE371x__Response Response 
)
Parameters:
[in] ulReferenceAction : Reference action

  • 0: do not use the pin D as reference
  • 1: use the pin D as reference
[in] ulIndexOperation : Index operation

  • 0: latch and clear counter at low edge
  • 1: latch and clear counter at high edge
[in] ulAutoMode : Auto mode

  • 0 : do not use automode (action is done only once)
  • 1 : use automode (action is done continuously)
[in] ulOption01 : set it to 0
[out] Response :
iReturnValue :

  • 0: success
  • -1: means an system error occurred
  • -2: Reference action selection error
  • -3: Index operation selection error
  • -4: Automode selection error
  • -5: Index logic already initialized
  • -100: Write counter compare value kernel function error

syserrno : system-error code (the value of the libc "errno" code)

Returns:
  • 0: SOAP_OK
  • <> 0: See SOAP error