support9.xml 5.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <section id="support-procrastination">
  2. <title>
  3. Procrastination Functions
  4. </title>
  5. <para>
  6. Procrastinations functions wait for specific events to occur or fail to occur.
  7. </para>
  8. <section id="WaitForAssoc">
  9. <title>
  10. WaitForAssoc
  11. </title>
  12. <funcsynopsis>
  13. <funcprototype>
  14. <funcdef>signed <function>WaitForAssoc</function></funcdef>
  15. <paramdef>struct plc * <parameter>plc</parameter></paramdef>
  16. </funcprototype>
  17. </funcsynopsis>
  18. <para>
  19. Poll a powerline device using <constant>VS_NW_INFO</constant> messages until the device forms or joins a network. The host ethernet interface, destination hardware address and source hardware address are specified in structure <varname>plc</varname>. It calls either <link linkend='WaitForAssoc1'>WaitForAssoc1</link> or <link linkend='WaitForAssoc2'>WaitForAssoc2</link> to procrastinate based on the <varname>hardwareID</varname> member of structure <varname>plc</varname>. The function is declared in <ulink url='plc.h.html'>plc.h</ulink> and defined in file <ulink url='WaitForAssoc.c.html'>WaitForAssoc.c</ulink>. Struct <varname>plc</varname> is declared in file <ulink url='plc.h.html'>plc.h</ulink> and defined in file <ulink url='plc.c.html'>plc.c</ulink>.
  20. </para>
  21. </section>
  22. <section id="WaitForAssoc1">
  23. <title>
  24. WaitForAssoc1
  25. </title>
  26. <funcsynopsis>
  27. <funcprototype>
  28. <funcdef>signed <function>WaitForAssoc1</function></funcdef>
  29. <paramdef>struct plc * <parameter>plc</parameter></paramdef>
  30. </funcprototype>
  31. </funcsynopsis>
  32. <para>
  33. Poll a 200mbs powerline device using <constant>VS_NW_INFO</constant> version <constant>0</constant> messages until the device joins or forms a network. The host ethernet interface, destination hardware address and source hardware address are specified in structure <varname>plc</varname>. The function is declared in file <ulink url='plc.h.html'>plc.h</ulink> and defined in file <ulink url='WaitForAssoc1.c.html'>WaitForAssoc1.c</ulink>. Struct <varname>plc</varname> is declared in file <ulink url='plc.h.html'>plc.h</ulink> and defined in file <ulink url='plc.c.html'>plc.c</ulink>.
  34. </para>
  35. </section>
  36. <section id="WaitForAssoc2">
  37. <title>
  38. WaitForAssoc2
  39. </title>
  40. <funcsynopsis>
  41. <funcprototype>
  42. <funcdef>signed <function>WaitForAssoc2</function></funcdef>
  43. <paramdef>struct plc * <parameter>plc</parameter></paramdef>
  44. </funcprototype>
  45. </funcsynopsis>
  46. <para>
  47. Poll a 1000mbs powerline device using <constant>VS_NW_INFO</constant> version <constant>1</constant> messages until the device joins or forms a network. The host ethernet interface, destination hardware address and source hardware address are specified in structure <varname>plc</varname>. Structure <varname>plc</varname> is declared in file <ulink url='plc.h.html'>plc.h</ulink> and defined in file <ulink url='plc.c.html'>plc.c</ulink>. The function is declared in file <ulink url='plc.h.html'>plc.h</ulink> and defined in file <ulink url='WaitForAssoc2.c.html'>WaitForAssoc2.c</ulink>.
  48. </para>
  49. </section>
  50. <section id="WaitForReset">
  51. <title>
  52. WaitForReset
  53. </title>
  54. <funcsynopsis>
  55. <funcprototype>
  56. <funcdef>signed <function>WaitForReset</function></funcdef>
  57. <paramdef>struct plc * <parameter>plc</parameter></paramdef>
  58. </funcprototype>
  59. </funcsynopsis>
  60. <para>
  61. Poll a powerline device using <constant>VS_SW_VER</constant> messages until the device stops responding. The host ethernet interface, destination hardware address and source hardware address are specified in structure <varname>plc</varname>. Structure <varname>plc</varname> is declared in file <ulink url='plc.h.html'>plc.h</ulink> and define in file <ulink url='plc.c.html'>plc.c</ulink>. The function is declared in <ulink url='plc.h.html'>plc.h</ulink> and defined in file <ulink url='WaitForReset.c.html'>WaitForReset.c</ulink>.
  62. </para>
  63. </section>
  64. <section id="WaitForStart">
  65. <title>
  66. WaitForStart
  67. </title>
  68. <funcsynopsis>
  69. <funcprototype>
  70. <funcdef>signed <function>WaitForStart</function></funcdef>
  71. <paramdef>struct plc * <parameter>plc</parameter></paramdef>
  72. <paramdef>char <parameter>firmware</parameter></paramdef>
  73. <paramdef>size_t <parameter>length</parameter></paramdef>
  74. </funcprototype>
  75. </funcsynopsis>
  76. <para>
  77. Poll a powerline device using <constant>VS_SW_VER</constant> messages until the device responds. The host ethernet interface, destination hardware address and source hardware address are specified in structure <varname>plc</varname>. Update the <varname>hardwareID</varname> member of the <varname>plc</varname> structure. Return the firmware revision string contained in the confirmation message. Structure <varname>plc</varname> is declared in file <ulink url='plc.h.html'>plc.h</ulink> and defined in file <ulink url='plc.c.html'>plc.c</ulink>. The function is declared in file <ulink url='plc.h.html'>plc.h</ulink> and defined in file <ulink url='WaitForStart.c.html'>WaitForStart.c</ulink>.
  78. </para>
  79. </section>
  80. </section>