]> sigrok.org Git - libsigrok.git/blobdiff - output/chronovu_la8.c
sr: Random cosmetics, fix/amend Doxygen comments.
[libsigrok.git] / output / chronovu_la8.c
index 993d29fcdcf3e6169219c45d41bc5597deebfb54..bb7fe4e75516e74b88a398c9e463369c3c21ae29 100644 (file)
@@ -36,6 +36,7 @@ struct context {
  * Check if the given samplerate is supported by the LA8 hardware.
  *
  * @param samplerate The samplerate (in Hz) to check.
+ *
  * @return 1 if the samplerate is supported/valid, 0 otherwise.
  */
 static int is_valid_samplerate(uint64_t samplerate)
@@ -61,6 +62,7 @@ static int is_valid_samplerate(uint64_t samplerate)
  * Max. value for divcount: 0xfe (2550ns sample period, 392.15kHz samplerate).
  *
  * @param samplerate The samplerate in Hz.
+ *
  * @return The divcount value as needed by the hardware, or 0xff upon errors.
  */
 static uint8_t samplerate_to_divcount(uint64_t samplerate)
@@ -122,7 +124,7 @@ static int init(struct sr_output *o)
 
        num_probes = g_slist_length(o->device->probes);
 
-       if (sr_device_has_hwcap(o->device, SR_HWCAP_SAMPLERATE)) {
+       if (sr_dev_has_hwcap(o->device, SR_HWCAP_SAMPLERATE)) {
                samplerate = *((uint64_t *) o->device->plugin->get_device_info(
                                o->device->plugin_index, SR_DI_CUR_SAMPLERATE));
                /* TODO: Error checks. */