TMDoProgramJob Code Example
long session_handle;
unsigned char state_buffer[15360];
short result;
/* session_handle set from a call to TMExtendedStartSession */
...
/* get the unique registration number of the device to communicate with using TMFirst,TMNext,TMRom... */
...
/* TMCreateProgram job called and a successful write operation has been done */
...
do
{
result = TMDoProgramJob(session_handle, state_buffer);
if (result < 0)
{
/* error doing Program Job, prompt user to correct */
...
}
}
while (result != 1);
/* close the session with a call to TMEndSession */
...