.. _dev-sample: Device Sample Format ===================== Data passed over the read or write streams are transmitted in unit packets, or "samples". Read Samples ------------- These are the samples produced by the devices and sent through the :ref:`read stream ` to the controller. Read samples MUST have the following format: :: uint64 hubclk_cnt var payload - ``hubclk_cnt``: Hub Clock Counter. This is the common counter for all devices in a :ref:`Hub `, indicating the time of sample capture. - ``payload``: :ref:`Device-specific` data. This data MUST be :ref:`Read Sample Size ` - 8 bytes long. Write samples ------------- These are the samples generated by the host and sent to the devices trough the :ref:`write stream `. Write samples MUST have the following format. :: var payload - ``payload``: :ref:`Device-specific` data. This data MUST be :ref:`Write Sample Size ` bytes long.