NHS31xx SW API
sense.h
1
/*
2
* Copyright 2016-2017,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 SENSE_H
13
#define SENSE_H
14
33
#define SENSE_MAX_GROUP_COUNT 6
34
36
#define SENSE_INSTANCE_SIZE 40
37
39
typedef
struct
{
40
uint32_t
time
;
41
uint8_t
group
;
42
int
initialPillCount
;
43
bool
positional
;
44
uint32_t
pill
;
47
}
SENSE_PILL_REMOVAL_INFO_T
;
48
59
typedef
void (*
Sense_RemovalCb_t
)(
const
SENSE_PILL_REMOVAL_INFO_T
*pInfo);
60
67
int
Sense_StartTherapy
(
void
*pInstance);
68
79
int
Sense_SensePillRemoval
(
void
*pInstance,
Sense_RemovalCb_t
cb);
80
82
#endif
SENSE_PILL_REMOVAL_INFO_T::initialPillCount
int initialPillCount
Definition:
sense.h:42
SENSE_PILL_REMOVAL_INFO_T::pill
uint32_t pill
Definition:
sense.h:44
Sense_SensePillRemoval
int Sense_SensePillRemoval(void *pInstance, Sense_RemovalCb_t cb)
Sense_StartTherapy
int Sense_StartTherapy(void *pInstance)
SENSE_PILL_REMOVAL_INFO_T
Definition:
sense.h:39
SENSE_PILL_REMOVAL_INFO_T::group
uint8_t group
Definition:
sense.h:41
SENSE_PILL_REMOVAL_INFO_T::positional
bool positional
Definition:
sense.h:43
SENSE_PILL_REMOVAL_INFO_T::time
uint32_t time
Definition:
sense.h:40
Sense_RemovalCb_t
void(* Sense_RemovalCb_t)(const SENSE_PILL_REMOVAL_INFO_T *pInfo)
Definition:
sense.h:59
sw
nss
app_demo_dp_tadherence
mods
sense
sense.h
Generated on Tue Oct 20 2020 08:17:10 for NHS31xx SW API by
1.8.14