EmbeddedEtcher
heap.h
Go to the documentation of this file.
1 
9 #ifndef OS_H_HEAP_
10 #define OS_H_HEAP_
11 
12 //--------------Includes-----------------
13 
14 #include"ostypes.h"
15 
16 //--------------Functions----------------
17 
22 void osHeapInit(osHeapNode_t* ioarray);
23 
29 void osHeapHeapify(osHeapNode_t* ioarray, uint8_t iind);
30 
35 void osHeapBuild(osHeapNode_t* ioarray);
36 
43 uint8_t osHeapMaximum(osHeapNode_t* ioarray, osHeapNode_t* iomax);
44 
51 uint8_t osHeapExtractMaximum(osHeapNode_t* ioarray, osHeapNode_t* iomax);
52 
59 uint8_t osHeapInsert(osHeapNode_t* ioarray, osHeapNode_t x);
60 
65 void osHeapPrintS(osHeapNode_t* ioarray);
66 
71 uint8_t osHeapIsEmpty(osHeapNode_t* ioarray);
72 
73 #endif /* OS_H_HEAP_ */
uint8_t osHeapInsert(osHeapNode_t *ioarray, osHeapNode_t x)
Definition: heap.c:155
Definition: ostypes.h:41
void osHeapHeapify(osHeapNode_t *ioarray, uint8_t iind)
Definition: heap.c:90
uint8_t osHeapMaximum(osHeapNode_t *ioarray, osHeapNode_t *iomax)
Definition: heap.c:122
uint8_t osHeapIsEmpty(osHeapNode_t *ioarray)
Definition: heap.c:197
uint8_t osHeapExtractMaximum(osHeapNode_t *ioarray, osHeapNode_t *iomax)
Definition: heap.c:135
Different types the operating system uses are defined here.
void osHeapBuild(osHeapNode_t *ioarray)
Definition: heap.c:114
void osHeapInit(osHeapNode_t *ioarray)
Definition: heap.c:82
void osHeapPrintS(osHeapNode_t *ioarray)
Definition: heap.c:176