view TaskManager/kernel/ppe/DmaBuffer.h @ 0:04e28d8d3c6f

first commit
author Daiki KINJYO <e085722@ie.u-ryukyu.ac.jp>
date Mon, 08 Nov 2010 01:23:25 +0900
parents
children
line wrap: on
line source

#ifndef INCLUDED_DMA_BUFFER
#define INCLUDED_DMA_BUFFER

#include "base.h"

class DmaBuffer {
public:
    /* constructor */
    DmaBuffer(int size = 4);
    ~DmaBuffer(void);

    BASE_NEW_DELETE(DmaBuffer);

    /* variables */
    void *buffer[2];
    int flag; // variable that select buffer[0 or 1]
    
    /* functions */
    void swap_buffer(void);
    void get_buffer(void*);
}  ;

#endif