Changeset 228 for soft/giet_vm/libs/mwmr_channel.h
- Timestamp:
- Feb 12, 2013, 6:33:31 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/libs/mwmr_channel.h
r200 r228 16 16 17 17 typedef struct mwmr_channel_s { 18 unsigned int ptr;// index of the first valid data word19 unsigned int ptw;// index of the first empty slot20 unsigned int sts;// number of words available21 unsigned int lock;// exclusive access lock22 unsigned int depth;// max number of words in the channel23 unsigned int width; // number of words in an item24 unsigned int data[1018];// circular buffer18 unsigned int ptr; // index of the first valid data word 19 unsigned int ptw; // index of the first empty slot 20 unsigned int sts; // number of words available 21 unsigned int lock; // exclusive access lock 22 unsigned int depth; // max number of words in the channel 23 unsigned int width; // number of words in an item 24 unsigned int data[1018]; // circular buffer 25 25 } mwmr_channel_t; 26 26 … … 29 29 ////////////////////////////////////////////////////////////////////////////// 30 30 31 void mwmr_write( mwmr_channel_t* mwmr, 32 unsigned int* buffer, 33 unsigned int nitems ); 31 void mwmr_write(mwmr_channel_t * mwmr, unsigned int * buffer, unsigned int nitems); 32 void mwmr_read(mwmr_channel_t * mwmr, unsigned int * buffer, unsigned int nitems); 34 33 35 void mwmr_read( mwmr_channel_t* mwmr,36 unsigned int* buffer,37 unsigned int nitems );38 34 #endif 39 35 36 // Local Variables: 37 // tab-width: 4 38 // c-basic-offset: 4 39 // c-file-offsets:((innamespace . 0)(inline-open . 0)) 40 // indent-tabs-mode: nil 41 // End: 42 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=4:softtabstop=4 43
Note: See TracChangeset
for help on using the changeset viewer.