TMCreateProgramJob 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... */
...
/* create a program job because the device is an EPROM
and a write operation is desired */
result = TMCreateProgramJob(session_handle, state_buffer);
if (result == 1)
{
/* TMProgramJob is create, now ready for a write operation
and then calls to TMDoProgramJob */
...
}
else
{
/* error creating TMProgramJob */
...
}
/* close the session with a call to TMEndSession */
...