]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blob - pasdk/test_dsp/io/ioBuff_loc.h
Fixed problem of input task being stuck when input stream stops:
[processor-sdk/performance-audio-sr.git] / pasdk / test_dsp / io / ioBuff_loc.h
2 #include <stdint.h>
4 #define BUFF_STATUS_NORMAL     0 
5 #define BUFF_STATUS_UNDERFLOW  1
6 #define BUFF_STATUS_OVERFLOW   2
8 typedef struct ioBuffInst_s {
10   void *base;
11   void *end;
12   void *read_ptr;
13   void *read_complete_ptr;
14   void *write_ptr;
15   void *write_complete_ptr;
17   uint_least32_t size;
18   int_fast16_t   sync;   /* sync type: ioBUff_READ_SYNC, WRITE_SYNC, NO_SYNC, RW_SYNC */
19   uint_fast32_t  nom_delay;  /* nominal delay as # of MAU's between write and read */
21   uint_fast16_t  status;  /* overflow, underflow, normal */
22   uint_fast16_t  rw_wrap_around;  /* flag to indicate write pointer wraps around 
23                                      but read pointer has not yet */
24 } ioBuffInst_t;