NHS31xx SW API
memorymanager.h
1 /*
2  * Copyright 2016-2017 NXP
3  * This software is owned or controlled by NXP and may only be used strictly
4  * in accordance with the applicable license terms. By expressly accepting
5  * such terms or by downloading, installing, activating and/or otherwise using
6  * the software, you are agreeing that you have read, and that you agree to
7  * comply with and are bound by, such license terms. If you do not agree to
8  * be bound by the applicable license terms, then you may not retain, install,
9  * activate or otherwise use the software.
10  */
11 
12 #ifndef MEMORYMENAGER_H_
13 #define MEMORYMENAGER_H_
14 
37 #define MEMORY_EVENTSIZE 9
38 
39 #define MEMORY_MAXEVENTS 35
40 
42 #define THERAPYINSTANCE_SLOTSIZE 26
43 #define RHYTHM_SLOTSIZE 80
44 #define SENSEINSTANCE_SLOTSIZE 40
45 
48 typedef enum MEMORY_SLOT_ID {
53 
55 void Memory_Init(void);
56 
61 void Memory_DeInit(void);
62 
66 void Memory_StartTherapy(void);
67 
74 void Memory_StoreData(MEMORY_SLOT_ID_T slot, const void* pSrc, int size);
75 
82 void Memory_GetStoredData(MEMORY_SLOT_ID_T slot, void* pDst, int size);
83 
95 void Memory_StoreIntakeString(int intakeNr, uint32_t startTime, uint32_t intakeTime, int group, bool positional,
96  int initialCount, int pill);
97 
103 const char* Memory_GetIntakeString(int intakeNr);
104 
113 void Memory_StoreEvent(int eventNr, uint8_t *pEvent);
114 
123 const uint8_t* Memory_GetEvents(void);
124 
126 #endif
void Memory_GetStoredData(MEMORY_SLOT_ID_T slot, void *pDst, int size)
void Memory_StoreEvent(int eventNr, uint8_t *pEvent)
Definition: memorymanager.h:50
const char * Memory_GetIntakeString(int intakeNr)
Definition: memorymanager.h:49
void Memory_StartTherapy(void)
void Memory_Init(void)
void Memory_DeInit(void)
const uint8_t * Memory_GetEvents(void)
void Memory_StoreData(MEMORY_SLOT_ID_T slot, const void *pSrc, int size)
MEMORY_SLOT_ID_T
Definition: memorymanager.h:48
Definition: memorymanager.h:51
void Memory_StoreIntakeString(int intakeNr, uint32_t startTime, uint32_t intakeTime, int group, bool positional, int initialCount, int pill)