The TMFormat API call writes an empty directory into the current device on the 1-Wire network specified by the session handle 'session_handle'.
For a description of the above types, see the TMEX Type Descriptions.
Parameters
session_handle
Specifies the session handle returned from the API function TMExtendedStartSession that specifies the desired 1-Wire network port. This parameter is required by most TMEX API functions.
state_buffer
Specifies a pointer to a memory location that TMEX keeps all of the state information for the 1-Wire networks. This parameter is required by most TMEX API functions.
Return Value
1 => 1-Wire device successfully formatted
<0 => TMEX File Operations Error Return Code
See Also