X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=libsigrok-internal.h;h=d7d740d822000685f5d56fc4ef24a6da9e26f851;hb=f0de2dd0fa67b61e755b04657b132282acc1c9a0;hp=13ee2652d7dd58402e1b048a77313286aa6fa31d;hpb=f754c1469188a5e1a82c98532cb21b334530a91a;p=libsigrok.git diff --git a/libsigrok-internal.h b/libsigrok-internal.h index 13ee2652..d7d740d8 100644 --- a/libsigrok-internal.h +++ b/libsigrok-internal.h @@ -273,6 +273,7 @@ SR_PRIV int sr_atol(const char *str, long *ret); SR_PRIV int sr_atoi(const char *str, int *ret); SR_PRIV int sr_atod(const char *str, double *ret); SR_PRIV int sr_atof(const char *str, float *ret); +SR_PRIV int sr_atof_ascii(const char *str, float *ret); /*--- hardware/common/serial.c ----------------------------------------------*/ @@ -364,6 +365,8 @@ enum { SCPI_CMD_SET_DIG_POD_STATE, SCPI_CMD_GET_ANALOG_DATA, SCPI_CMD_GET_DIG_DATA, + SCPI_CMD_GET_SAMPLE_RATE, + SCPI_CMD_GET_SAMPLE_RATE_LIVE, }; struct sr_scpi_hw_info { @@ -453,6 +456,9 @@ struct es519xx_info { SR_PRIV gboolean sr_es519xx_2400_11b_packet_valid(const uint8_t *buf); SR_PRIV int sr_es519xx_2400_11b_parse(const uint8_t *buf, float *floatval, struct sr_datafeed_analog *analog, void *info); +SR_PRIV gboolean sr_es519xx_2400_11b_altfn_packet_valid(const uint8_t *buf); +SR_PRIV int sr_es519xx_2400_11b_altfn_parse(const uint8_t *buf, + float *floatval, struct sr_datafeed_analog *analog, void *info); SR_PRIV gboolean sr_es519xx_19200_11b_5digits_packet_valid(const uint8_t *buf); SR_PRIV int sr_es519xx_19200_11b_5digits_parse(const uint8_t *buf, float *floatval, struct sr_datafeed_analog *analog, void *info);