All 1-Wire device data sheets describe two sets of commands. The first set, referred to as ROM Function Commands, are used for device identification and selection. The second set is often called Memory Function Commands but may contain other non-memory operations. A ROM Function Command must be completed each time a device is selected to get it ready for a Memory Function Command.
The 1-Wire APIs created by Maxim Integrated – now part of Analog Devices – utilize these commands to do operations with 1-Wire devices. Sometimes it is not always obvious what commands are being named. This white paper maps the commands presented in the data sheets to the API functions. Where specific API functions are not available, a technique is presented to translate the commands using the generic communications API functions.