1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct w1_reg_num</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="W1: Dallas' 1-wire bus"><link rel="up" href="w1_internal.html#w1.h" title="drivers/w1/w1.h"><link rel="prev" href="w1_internal.html" title="Chapter 1. W1 API internal to the kernel"><link rel="next" href="API-struct-w1-slave.html" title="struct w1_slave"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct w1_reg_num</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="w1_internal.html">Prev</a> </td><th width="60%" align="center">drivers/w1/w1.h</th><td width="20%" align="right"> <a accesskey="n" href="API-struct-w1-slave.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-w1-reg-num"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct w1_reg_num — 2 broken out slave device id 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> 4struct w1_reg_num { 5#if defined(__LITTLE_ENDIAN_BITFIELD) 6 __u64 family:8; 7 __u64 id:48; 8 __u64 crc:8; 9#elif defined(__BIG_ENDIAN_BITFIELD) 10 __u64 crc:8; 11 __u64 id:48; 12 __u64 family:8; 13#else 14#error "Please fix <asm/byteorder.h>" 15#endif 16}; </pre></div><div class="refsect1"><a name="idp1110711804"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">family</span></dt><dd><p> 17identifies the type of device 18 </p></dd><dt><span class="term">id</span></dt><dd><p> 19along with family is the unique device id 20 </p></dd><dt><span class="term">crc</span></dt><dd><p> 21checksum of the other bytes 22 </p></dd><dt><span class="term">crc</span></dt><dd><p> 23checksum of the other bytes 24 </p></dd><dt><span class="term">id</span></dt><dd><p> 25along with family is the unique device id 26 </p></dd><dt><span class="term">family</span></dt><dd><p> 27identifies the type of device 28 </p></dd></dl></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="w1_internal.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="w1_internal.html#w1.h">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-struct-w1-slave.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 1. W1 API internal to the kernel </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">struct w1_slave</span></td></tr></table></div></body></html> 29