NHS31xx SW API
therapy.h
1 /*
2  * Copyright 2016,2020 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 THERAPY_H_
13 #define THERAPY_H_
14 
41 #define THERAPY_MAX_REMOVALS 36
42 
43 #pragma pack(push, 1)
44 
47 typedef struct THERAPY_PILLREMOVAL_INFO_S {
52  uint32_t time;
53 
57  uint8_t group;
58 
67  uint32_t position;
69 #pragma pack(pop)
70 
75 typedef enum THERAPY_STATE {
80 
85 void Therapy_Init(void);
86 
91 void Therapy_DeInit(void);
92 
97 
102 uint32_t Therapy_GetStartTime(void);
103 
108 uint32_t Therapy_GetCheckPeriod(void);
109 
115 
120 int Therapy_GetIntakeCount(void);
121 
127 uint32_t Therapy_GetLastIntakeTime(void);
128 
134 void Therapy_Start(uint32_t start, uint32_t interval);
135 
140 void Therapy_Reset(void);
141 
147 void Therapy_Stop(void);
148 
154 void Therapy_Update(void);
155 
156 #endif
int Therapy_GetInitialPillCount(void)
int Therapy_GetIntakeCount(void)
uint32_t time
Definition: therapy.h:52
void Therapy_Stop(void)
Definition: therapy.h:76
void Therapy_Start(uint32_t start, uint32_t interval)
void Therapy_DeInit(void)
uint32_t Therapy_GetStartTime(void)
void Therapy_Reset(void)
uint32_t Therapy_GetCheckPeriod(void)
uint32_t position
Definition: therapy.h:67
uint32_t Therapy_GetLastIntakeTime(void)
Definition: therapy.h:78
Definition: therapy.h:47
THERAPY_STATE_T
Definition: therapy.h:75
THERAPY_STATE_T Therapy_GetState(void)
void Therapy_Init(void)
void Therapy_Update(void)
uint8_t group
Definition: therapy.h:57
Definition: therapy.h:77