BeRTOS
|
00001 00038 #ifndef KBLOCK_RAM_H 00039 #define KBLOCK_RAM_H 00040 00041 #include "kblock.h" 00042 00043 00044 typedef struct KBlockRam 00045 { 00046 KBlock b; 00047 uint8_t *membuf; 00048 } KBlockRam; 00049 00050 #define KBT_KBLOCKRAM MAKE_ID('K', 'B', 'R', 'M') 00051 00052 00053 INLINE KBlockRam *KBLOCKRAM_CAST(KBlock *b) 00054 { 00055 ASSERT(b->priv.type == KBT_KBLOCKRAM); 00056 return (KBlockRam *)b; 00057 } 00058 00059 void kblockram_init(KBlockRam *ram, void *buf, size_t size, size_t block_size, bool buffered, bool hwbuffered); 00060 00061 #endif /* KBLOCK_RAM_H */