Changeset 521 for soft/giet_vm/giet_libs/mwmr_channel.h
- Timestamp:
- Mar 10, 2015, 3:14:52 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_libs/mwmr_channel.h
r479 r521 32 32 /////////////////////////////////////////////////////////////////////////////////// 33 33 // MWMR channel structure 34 // The data buffer size is defined to obtain sizeof(mwmr_channel_t) = 4096 bytes.35 // The actual buffer size cannot be larger than 4072 bytes (1018 words).36 34 /////////////////////////////////////////////////////////////////////////////////// 37 35 38 36 typedef struct mwmr_channel_s 39 37 { 40 user_lock_t lock; // exclusive access lock 41 unsigned int ptr; // index of the first valid data word 42 unsigned int ptw; // index of the first empty slot 43 unsigned int sts; // number of words available 44 unsigned int depth; // max number of words in the channel 45 unsigned int width; // number of words in an item 46 unsigned int* data; // circular buffer base address 38 user_lock_t lock; // exclusive access lock 39 unsigned int sts; // number of words available 40 unsigned int ptr; // index of the first valid data word 41 unsigned int ptw; // index of the first empty slot 42 unsigned int depth; // max number of words in the channel 43 unsigned int width; // number of words in an item 44 unsigned int* data; // circular buffer base address 45 unsigned int padding[10]; // for 64 bytes alignment 47 46 } mwmr_channel_t; 48 47
Note: See TracChangeset
for help on using the changeset viewer.