TMOverAccess Code Example

long session_handle;
unsigned char state_buffer[15360];
short result;

/* 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 */
...

/* access the current device */
result = TMOverAccess(session_handle, state_buffer);

if (result == 1)
{
   /* device accessed, in Overdrive and ready for memory operation */
   ...
}
else
{
   /* no device on 1-Wire network or an error */
   ...
}

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