ASCII Serial Com
Serial communication library between computers, microcontrollers, FPGAs, etc. Uses only ASCII. Not the most efficient protocol, but meant to be easy to read
Loading...
Searching...
No Matches
cmock.h
1/* ==========================================
2 CMock Project - Automatic Mock Generation for C
3 Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
4 [Released under MIT License. Please refer to license.txt for details]
5========================================== */
6
7#ifndef CMOCK_FRAMEWORK_H
8#define CMOCK_FRAMEWORK_H
9
10#include "cmock_internals.h"
11
12#define CMOCK_VERSION_MAJOR 2
13#define CMOCK_VERSION_MINOR 5
14#define CMOCK_VERSION_BUILD 2
15#define CMOCK_VERSION \
16 ((CMOCK_VERSION_MAJOR << 16) | (CMOCK_VERSION_MINOR << 8) | \
17 CMOCK_VERSION_BUILD)
18
19/* should be big enough to index full range of CMOCK_MEM_MAX */
20#ifndef CMOCK_MEM_INDEX_TYPE
21#include <stddef.h>
22#define CMOCK_MEM_INDEX_TYPE size_t
23#endif
24
25#define CMOCK_GUTS_NONE (0)
26
27/*-------------------------------------------------------
28 * Memory API
29 *-------------------------------------------------------*/
30CMOCK_MEM_INDEX_TYPE CMock_Guts_MemNew(CMOCK_MEM_INDEX_TYPE size);
31CMOCK_MEM_INDEX_TYPE CMock_Guts_MemChain(CMOCK_MEM_INDEX_TYPE root_index,
32 CMOCK_MEM_INDEX_TYPE obj_index);
33CMOCK_MEM_INDEX_TYPE
34CMock_Guts_MemNext(CMOCK_MEM_INDEX_TYPE previous_item_index);
35CMOCK_MEM_INDEX_TYPE CMock_Guts_MemEndOfChain(CMOCK_MEM_INDEX_TYPE root_index);
36
37void *CMock_Guts_GetAddressFor(CMOCK_MEM_INDEX_TYPE index);
38
39CMOCK_MEM_INDEX_TYPE CMock_Guts_MemBytesCapacity(void);
40CMOCK_MEM_INDEX_TYPE CMock_Guts_MemBytesFree(void);
41CMOCK_MEM_INDEX_TYPE CMock_Guts_MemBytesUsed(void);
42void CMock_Guts_MemFreeAll(void);
43void CMock_Guts_MemFreeFinal(void);
44
45#endif /* end of CMOCK_FRAMEWORK_H */