view include/TaskManager/DmaBuffer.h @ 107:ce5755f544c1 cvs

Initial revision
author chiaki
date Tue, 04 Mar 2008 18:06:44 +0900
parents 7492eb28b577
children 028ffc9c0375
line wrap: on
line source

#ifndef INCLUDED_DMA_BUFFER
#define INCLUDED_DMA_BUFFER

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

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

#endif