TMProgramPulse Code Example

long session_handle;
short result;

/* session_handle set from a call to TMExtendedStartSession */
...

/* set up an EPROM for programming and get to the point of sending
   programming pulse */
result = TMProgramPulse(session_handle);

if (result == 1)
{
   /* pulse sent to 1-Wire network */
   ...
}
else
{
   /* error sending pulse */
   ...
}

/* close the session with a call to TMEndSession */
...