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;
43  bool positional;
44  uint32_t pill;
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
int initialPillCount
Definition: sense.h:42
uint32_t pill
Definition: sense.h:44
int Sense_SensePillRemoval(void *pInstance, Sense_RemovalCb_t cb)
int Sense_StartTherapy(void *pInstance)
Definition: sense.h:39
uint8_t group
Definition: sense.h:41
bool positional
Definition: sense.h:43
uint32_t time
Definition: sense.h:40
void(* Sense_RemovalCb_t)(const SENSE_PILL_REMOVAL_INFO_T *pInfo)
Definition: sense.h:59