TMExtendedReadPage Code Example
long session_handle;
unsigned char state_buffer[15360], read_buffer[100];
short len;
/* session_handle set from a call to TMExtendedStartSession */
...
/* the internal 8-byte ROM buffer contains a valid ROM that is going to be selected to do a device specific operation */
...
/* attempt to read page 0 of the status memory */
len = TMExtendedReadPage(session_handle, state_buffer, 0, read_buffer, 1);
if (len >= 0)
{
/* success, status page read and its length is len */
...
}
else
{
/* TRANSPORT error reading extended page (did this device have
extended read?) */
...
}
/* close the session with a call to TMEndSession */
...