[fidldoc] Updating fidl reference docs
diff --git a/sdk/fidl/fuchsia.lowpan.test/README.md b/sdk/fidl/fuchsia.lowpan.test/README.md
index dfbb197..49d4cab 100644
--- a/sdk/fidl/fuchsia.lowpan.test/README.md
+++ b/sdk/fidl/fuchsia.lowpan.test/README.md
@@ -9,6 +9,26 @@
*Defined in [fuchsia.lowpan.test/device_test.fidl](https://fuchsia.googlesource.com/fuchsia/+/master/sdk/fidl/fuchsia.lowpan.test/device_test.fidl#12)*
+### GetCounters {#fuchsia.lowpan.test/DeviceTest.GetCounters}
+
+<p>Returns a snapshot of the counters without resetting the counters.</p>
+
+#### Request
+<table>
+ <tr><th>Name</th><th>Type</th></tr>
+ </table>
+
+
+#### Response
+<table>
+ <tr><th>Name</th><th>Type</th></tr>
+ <tr>
+ <td><code>counters</code></td>
+ <td>
+ <code><a class='link' href='#Counters'>Counters</a></code>
+ </td>
+ </tr></table>
+
### GetCurrentChannel {#fuchsia.lowpan.test/DeviceTest.GetCurrentChannel}
<p>Returns the current channel index for the radio.</p>
@@ -254,6 +274,27 @@
<tr><th>Name</th><th>Type</th></tr>
</table>
+### ResetCounters {#fuchsia.lowpan.test/DeviceTest.ResetCounters}
+
+<p>Resets all of the counters to zero returning the counter values
+immediately prior.</p>
+
+#### Request
+<table>
+ <tr><th>Name</th><th>Type</th></tr>
+ </table>
+
+
+#### Response
+<table>
+ <tr><th>Name</th><th>Type</th></tr>
+ <tr>
+ <td><code>counters</code></td>
+ <td>
+ <code><a class='link' href='#Counters'>Counters</a></code>
+ </td>
+ </tr></table>
+
## **STRUCTS**
@@ -265,7 +306,7 @@
### MacAddressFilterMode {#MacAddressFilterMode}
Type: <code>int32</code>
-*Defined in [fuchsia.lowpan.test/device_test.fidl](https://fuchsia.googlesource.com/fuchsia/+/master/sdk/fidl/fuchsia.lowpan.test/device_test.fidl#96)*
+*Defined in [fuchsia.lowpan.test/device_test.fidl](https://fuchsia.googlesource.com/fuchsia/+/master/sdk/fidl/fuchsia.lowpan.test/device_test.fidl#211)*
<p>Describes the address filtering mode of the interface.</p>
@@ -300,10 +341,39 @@
## **TABLES**
+### Counters {#Counters}
+
+
+*Defined in [fuchsia.lowpan.test/device_test.fidl](https://fuchsia.googlesource.com/fuchsia/+/master/sdk/fidl/fuchsia.lowpan.test/device_test.fidl#71)*
+
+<p>Table describing all counters.</p>
+<p>May be empty if no counters are supported.</p>
+
+
+<table>
+ <tr><th>Ordinal</th><th>Name</th><th>Type</th><th>Description</th></tr>
+ <tr id="Counters.mac_tx">
+ <td>1</td>
+ <td><code>mac_tx</code></td>
+ <td>
+ <code><a class='link' href='#MacCounters'>MacCounters</a></code>
+ </td>
+ <td><p>MAC Counters for TX</p>
+</td>
+ </tr><tr id="Counters.mac_rx">
+ <td>2</td>
+ <td><code>mac_rx</code></td>
+ <td>
+ <code><a class='link' href='#MacCounters'>MacCounters</a></code>
+ </td>
+ <td><p>MAC Counters for RX</p>
+</td>
+ </tr></table>
+
### MacAddressFilterItem {#MacAddressFilterItem}
-*Defined in [fuchsia.lowpan.test/device_test.fidl](https://fuchsia.googlesource.com/fuchsia/+/master/sdk/fidl/fuchsia.lowpan.test/device_test.fidl#65)*
+*Defined in [fuchsia.lowpan.test/device_test.fidl](https://fuchsia.googlesource.com/fuchsia/+/master/sdk/fidl/fuchsia.lowpan.test/device_test.fidl#180)*
<p>An item in the MAC filter list.</p>
@@ -334,7 +404,7 @@
### MacAddressFilterSettings {#MacAddressFilterSettings}
-*Defined in [fuchsia.lowpan.test/device_test.fidl](https://fuchsia.googlesource.com/fuchsia/+/master/sdk/fidl/fuchsia.lowpan.test/device_test.fidl#81)*
+*Defined in [fuchsia.lowpan.test/device_test.fidl](https://fuchsia.googlesource.com/fuchsia/+/master/sdk/fidl/fuchsia.lowpan.test/device_test.fidl#196)*
@@ -362,10 +432,245 @@
</td>
</tr></table>
+### MacCounters {#MacCounters}
+
+
+*Defined in [fuchsia.lowpan.test/device_test.fidl](https://fuchsia.googlesource.com/fuchsia/+/master/sdk/fidl/fuchsia.lowpan.test/device_test.fidl#82)*
+
+<p>Counters associated with the MAC layer.</p>
+<p>Some counters are only valid for RX or TX.</p>
+
+
+<table>
+ <tr><th>Ordinal</th><th>Name</th><th>Type</th><th>Description</th></tr>
+ <tr id="MacCounters.total">
+ <td>1</td>
+ <td><code>total</code></td>
+ <td>
+ <code>uint32</code>
+ </td>
+ <td><p>The total number of frames</p>
+</td>
+ </tr><tr id="MacCounters.unicast">
+ <td>2</td>
+ <td><code>unicast</code></td>
+ <td>
+ <code>uint32</code>
+ </td>
+ <td><p>The total number of unicast frames</p>
+</td>
+ </tr><tr id="MacCounters.broadcast">
+ <td>3</td>
+ <td><code>broadcast</code></td>
+ <td>
+ <code>uint32</code>
+ </td>
+ <td><p>The total number of broadcast frames</p>
+</td>
+ </tr><tr id="MacCounters.ack_requested">
+ <td>4</td>
+ <td><code>ack_requested</code></td>
+ <td>
+ <code>uint32</code>
+ </td>
+ <td><p>The number of frames with ack request</p>
+</td>
+ </tr><tr id="MacCounters.acked">
+ <td>5</td>
+ <td><code>acked</code></td>
+ <td>
+ <code>uint32</code>
+ </td>
+ <td><p>The number of frames that were acked</p>
+</td>
+ </tr><tr id="MacCounters.no_ack_requested">
+ <td>6</td>
+ <td><code>no_ack_requested</code></td>
+ <td>
+ <code>uint32</code>
+ </td>
+ <td><p>The number of frames without ack request</p>
+</td>
+ </tr><tr id="MacCounters.data">
+ <td>7</td>
+ <td><code>data</code></td>
+ <td>
+ <code>uint32</code>
+ </td>
+ <td><p>The number of data frames</p>
+</td>
+ </tr><tr id="MacCounters.data_poll">
+ <td>8</td>
+ <td><code>data_poll</code></td>
+ <td>
+ <code>uint32</code>
+ </td>
+ <td><p>The number of data poll frames</p>
+</td>
+ </tr><tr id="MacCounters.beacon">
+ <td>9</td>
+ <td><code>beacon</code></td>
+ <td>
+ <code>uint32</code>
+ </td>
+ <td><p>The number of beacon frames</p>
+</td>
+ </tr><tr id="MacCounters.beacon_request">
+ <td>10</td>
+ <td><code>beacon_request</code></td>
+ <td>
+ <code>uint32</code>
+ </td>
+ <td><p>The number of beacon request frames</p>
+</td>
+ </tr><tr id="MacCounters.other">
+ <td>11</td>
+ <td><code>other</code></td>
+ <td>
+ <code>uint32</code>
+ </td>
+ <td><p>The number of other types of frames</p>
+</td>
+ </tr><tr id="MacCounters.address_filtered">
+ <td>12</td>
+ <td><code>address_filtered</code></td>
+ <td>
+ <code>uint32</code>
+ </td>
+ <td><p>The number of frames filtered by address filter (allowlist
+or denylist).</p>
+</td>
+ </tr><tr id="MacCounters.retries">
+ <td>13</td>
+ <td><code>retries</code></td>
+ <td>
+ <code>uint32</code>
+ </td>
+ <td><p>The number of retransmission attempts.
+TX only.</p>
+</td>
+ </tr><tr id="MacCounters.direct_max_retry_expiry">
+ <td>14</td>
+ <td><code>direct_max_retry_expiry</code></td>
+ <td>
+ <code>uint32</code>
+ </td>
+ <td><p>The number of expired retransmission retries for direct message.
+TX only.</p>
+</td>
+ </tr><tr id="MacCounters.indirect_max_retry_expiry">
+ <td>15</td>
+ <td><code>indirect_max_retry_expiry</code></td>
+ <td>
+ <code>uint32</code>
+ </td>
+ <td><p>The number of expired retransmission retries for indirect message
+TX only.</p>
+</td>
+ </tr><tr id="MacCounters.dest_addr_filtered">
+ <td>16</td>
+ <td><code>dest_addr_filtered</code></td>
+ <td>
+ <code>uint32</code>
+ </td>
+ <td><p>The number of received frames filtered by destination check.
+RX only.</p>
+</td>
+ </tr><tr id="MacCounters.duplicated">
+ <td>17</td>
+ <td><code>duplicated</code></td>
+ <td>
+ <code>uint32</code>
+ </td>
+ <td><p>The number of received duplicated frames.
+RX only.</p>
+</td>
+ </tr><tr id="MacCounters.err_no_frame">
+ <td>18</td>
+ <td><code>err_no_frame</code></td>
+ <td>
+ <code>uint32</code>
+ </td>
+ <td><p>The number of received frames with no or malformed content.
+RX only.</p>
+</td>
+ </tr><tr id="MacCounters.err_unknown_neighbor">
+ <td>19</td>
+ <td><code>err_unknown_neighbor</code></td>
+ <td>
+ <code>uint32</code>
+ </td>
+ <td><p>The number of received frames from unknown neighbor.
+RX only.</p>
+</td>
+ </tr><tr id="MacCounters.err_invalid_src_addr">
+ <td>20</td>
+ <td><code>err_invalid_src_addr</code></td>
+ <td>
+ <code>uint32</code>
+ </td>
+ <td><p>The number of received frames whose source address is invalid.
+RX only.</p>
+</td>
+ </tr><tr id="MacCounters.err_sec">
+ <td>21</td>
+ <td><code>err_sec</code></td>
+ <td>
+ <code>uint32</code>
+ </td>
+ <td><p>The number of received frames with security error.
+RX only.</p>
+</td>
+ </tr><tr id="MacCounters.err_fcs">
+ <td>22</td>
+ <td><code>err_fcs</code></td>
+ <td>
+ <code>uint32</code>
+ </td>
+ <td><p>The number of received frames with FCS error.
+RX only.</p>
+</td>
+ </tr><tr id="MacCounters.err_cca">
+ <td>23</td>
+ <td><code>err_cca</code></td>
+ <td>
+ <code>uint32</code>
+ </td>
+ <td><p>The number of CCA failures.
+TX only.</p>
+</td>
+ </tr><tr id="MacCounters.err_abort">
+ <td>24</td>
+ <td><code>err_abort</code></td>
+ <td>
+ <code>uint32</code>
+ </td>
+ <td><p>The number of frame transmission failures due to abort error.
+TX only.</p>
+</td>
+ </tr><tr id="MacCounters.err_busy_channel">
+ <td>25</td>
+ <td><code>err_busy_channel</code></td>
+ <td>
+ <code>uint32</code>
+ </td>
+ <td><p>The number of frames that were dropped due to a busy channel.
+TX only.</p>
+</td>
+ </tr><tr id="MacCounters.err_other">
+ <td>26</td>
+ <td><code>err_other</code></td>
+ <td>
+ <code>uint32</code>
+ </td>
+ <td><p>The number of frames that encountered some other error.</p>
+</td>
+ </tr></table>
+
### NeighborInfo {#NeighborInfo}
-*Defined in [fuchsia.lowpan.test/device_test.fidl](https://fuchsia.googlesource.com/fuchsia/+/master/sdk/fidl/fuchsia.lowpan.test/device_test.fidl#119)*
+*Defined in [fuchsia.lowpan.test/device_test.fidl](https://fuchsia.googlesource.com/fuchsia/+/master/sdk/fidl/fuchsia.lowpan.test/device_test.fidl#234)*
<p>Neighbor Table Entry</p>
<p>See also: https://github.com/openthread/wpantund/blob/8db2a71c9597e08949dfc38d8c10f830e3de565c/third_party/openthread/src/ncp/spinel.h#L2356-L2373</p>
@@ -480,7 +785,7 @@
<table>
<tr><th>Name</th><th>Value</th><th>Type</th><th>Description</th></tr><tr id="MAX_FILTERED">
- <td><a href="https://fuchsia.googlesource.com/fuchsia/+/master/sdk/fidl/fuchsia.lowpan.test/device_test.fidl#79">MAX_FILTERED</a></td>
+ <td><a href="https://fuchsia.googlesource.com/fuchsia/+/master/sdk/fidl/fuchsia.lowpan.test/device_test.fidl#194">MAX_FILTERED</a></td>
<td>
<code>100</code>
</td>
@@ -505,7 +810,7 @@
<table>
<tr><th>Name</th><th>Value</th><th>Description</th></tr><tr id="MacAddress">
- <td><a href="https://fuchsia.googlesource.com/fuchsia/+/master/sdk/fidl/fuchsia.lowpan.test/device_test.fidl#62">MacAddress</a></td>
+ <td><a href="https://fuchsia.googlesource.com/fuchsia/+/master/sdk/fidl/fuchsia.lowpan.test/device_test.fidl#177">MacAddress</a></td>
<td>
<code>vector</code>[<code>8</code>]</td>
<td><p>LoWPAN MAC address</p>