diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2017-02-21 22:10:35 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2017-02-21 23:37:30 +0100 |
commit | 4564e8e53af85e696a58e43677bae87470c52771 (patch) | |
tree | 1dd21978ab5437e9f8692f59825f6e83b4e94972 /libsigrokdecode.h | |
parent | 9bac00e0b211579935640bb4d6fed988d2d148c4 (diff) | |
download | libsigrokdecode-4564e8e53af85e696a58e43677bae87470c52771.tar.gz libsigrokdecode-4564e8e53af85e696a58e43677bae87470c52771.zip |
Clarify that {start,end,cur}_samplenum are absolute numbers.
Diffstat (limited to 'libsigrokdecode.h')
-rw-r--r-- | libsigrokdecode.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libsigrokdecode.h b/libsigrokdecode.h index a2055e2..8d1d5ae 100644 --- a/libsigrokdecode.h +++ b/libsigrokdecode.h @@ -235,10 +235,10 @@ struct srd_decoder_inst { GArray *match_array; /** Absolute start sample number. */ - uint64_t start_samplenum; + uint64_t abs_start_samplenum; /** Absolute end sample number. */ - uint64_t end_samplenum; + uint64_t abs_end_samplenum; /** Pointer to the buffer/chunk of input samples. */ const uint8_t *inbuf; @@ -247,7 +247,7 @@ struct srd_decoder_inst { uint64_t inbuflen; /** Absolute current samplenumber. */ - uint64_t cur_samplenum; + uint64_t abs_cur_samplenum; /** Array of "old" (previous sample) pin values. */ GArray *old_pins_array; @@ -312,7 +312,7 @@ SRD_API int srd_session_start(struct srd_session *sess); SRD_API int srd_session_metadata_set(struct srd_session *sess, int key, GVariant *data); SRD_API int srd_session_send(struct srd_session *sess, - uint64_t start_samplenum, uint64_t end_samplenum, + uint64_t abs_start_samplenum, uint64_t abs_end_samplenum, const uint8_t *inbuf, uint64_t inbuflen, uint64_t unitsize); SRD_API int srd_session_destroy(struct srd_session *sess); SRD_API int srd_pd_output_callback_add(struct srd_session *sess, |