Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

sys/bankmem.h File Reference

Banked memory management definitions. More...


Defines

#define NUTBANK_COUNT
 Number of memory banks.

#define NUTBANK_START
 Start address of memory banks.

#define NUTBANK_SIZE
 Size of a single memory bank.

#define NUTBANK_SR
 Address of the bank select register.


Functions

__BEGIN_DECLS char * NutSegBufReset (void)
 Reset the segmented buffer.

char * NutSegBufInit (size_t size)
 Initialize the segmented buffer.

char * NutSegBufWriteRequest (size_t *bcp)
 Request segmented buffer space for writing.

char * NutSegBufReadRequest (size_t *bcp)
 Request segmented buffer space for reading.

char * NutSegBufWriteCommit (u_short bc)
 Commit written buffer space.

char * NutSegBufReadCommit (size_t bc)
 Commit read buffer space.

void NutSegBufWriteLast (u_short bc)
 Commit written buffer space and finish write access.

void NutSegBufReadLast (u_short bc)
 Commit written buffer space and finish read access.

u_long NutSegBufAvailable (void)
 Return the available buffer space.

u_long NutSegBufUsed (void)
 Return the used buffer space.


Detailed Description

Banked memory management definitions.


Define Documentation

#define NUTBANK_COUNT
 

Number of memory banks.

For systems without banked memory this is set to zero. Ethernut 2 has 30 memory banks.

#define NUTBANK_SIZE
 

Size of a single memory bank.

For systems without banked memory this is ignored.

#define NUTBANK_SR
 

Address of the bank select register.

For systems without banked memory this is ignored.

#define NUTBANK_START
 

Start address of memory banks.

For systems without banked memory this is ignored.


© 2000-2003 by egnite Software GmbH - visit http://www.ethernut.de/