TMProgramPulse Overview Group

The TMProgramPulse API call requires a hardware adapter that supports programming voltage such as the DS9097E COM serial port brick adapter. It should be used only if there is a 1-Wire EPROM device on the 1-Wire network. This function puts out a 480 microsecond 12 volt pulse on the 1-Wire network to program EPROM bits in a 1-Wire EPROM device such as the DS1982. WARNING!! if an NV-RAM, EEPROM or memory-less 1-Wire device is on the 1-Wire network, damage may occur from the 12 volt pulse.


short far pascal TMProgramPulse(

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

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

Parameters

session_handle

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

1 => 480us 12 volt pulse sent to 1-Wire network.

<0 => TMEX Hardware Specific Error Return Code

Code Example

See Also

TMProgramByte