TMTouchReset Overview Group

The TMTouchReset API call performs the Reset function on the 1-Wire network, resetting all of the devices on the 1-Wire network. The function returns the result of the operation.

short far pascal TMTouchReset(

long session_handle      // session handle for the desired 1-Wire network

For a description of the above types, see the TMEX Type Descriptions.



Specifies the session handle returned from the API function TMExtendedStartSession that specifies the desired 1-Wire network port. This parameter is required by most TMEX API functions.

Return Value

0 => No presence pulse detected.
1 => Non-alarming presence pulse detected.
2 => Alarming presence pulse detected. (not available on all platforms)
3 => 1-Wire network is shorted.
5 => TMTouchReset not supported
<0 => TMEX Hardware Specific Error Return Codes

Code Example

See Also

TMSetup, TMTouchByte