uCOS Memory Functions

OSMemCreate

  • Memory block is allocated before call.
  • Pass pointer to memory block, number of blocks, and size of each block.
  • Returns a pointer to a memory control block.

Example

OS_MEM *comBuf;
INT8U commPartion[100][32]; // 100 * 32 bytes
INT8U err;

commBuf = OSMenCreate(commPartion, 100, 32, &err);

OSMemGet

../_images/OSMemGet.png

OSMemPut

../_images/OSMemPut.png

OSMemQuery

../_images/OSMemQuery.png

Table Of Contents

Previous topic

Memory Partitioner

Next topic

Drivers

This Page