Cordio Stack and Cordio Profiles
r2p3-02rel0
Main Page
Usage and Description
Reference
wsps_api.h
Go to the documentation of this file.
1
/*************************************************************************************************/
2
/*!
3
* \file
4
*
5
* \brief Weight Scale profile sensor.
6
*
7
* Copyright (c) 2012-2018 Arm Ltd. All Rights Reserved.
8
* ARM Ltd. confidential and proprietary.
9
*
10
* IMPORTANT. Your use of this file is governed by a Software License Agreement
11
* ("Agreement") that must be accepted in order to download or otherwise receive a
12
* copy of this file. You may not use or copy this file for any purpose other than
13
* as described in the Agreement. If you do not agree to all of the terms of the
14
* Agreement do not use this file and delete all copies in your possession or control;
15
* if you do not have a copy of the Agreement, you must contact ARM Ltd. prior
16
* to any use, copying or further distribution of this software.
17
*/
18
/*************************************************************************************************/
19
#ifndef WSPS_API_H
20
#define WSPS_API_H
21
22
#include "
wsf_timer.h
"
23
#include "
att_api.h
"
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
29
/*! \addtogroup WEIGHT_SCALE_PROFILE
30
* \{ */
31
32
/*************************************************************************************************/
33
/*!
34
* \brief Weight scale measurement complete.
35
*
36
* \param connId DM connection identifier.
37
* \param wsmCccIdx Index of weight scale measurement CCC descriptor in CCC descriptor
38
* handle table.
39
*
40
* \return None.
41
*/
42
/*************************************************************************************************/
43
void
WspsMeasComplete
(
dmConnId_t
connId,
uint8_t
wsmCccIdx);
44
45
/*************************************************************************************************/
46
/*!
47
* \brief Set the weight scale measurement flags.
48
*
49
* \param flags Weight scale measurement flags.
50
*
51
* \return None.
52
*/
53
/*************************************************************************************************/
54
void
WspsSetWsmFlags
(
uint8_t
flags);
55
56
/*! \} */
/* WEIGHT_SCALE_PROFILE */
57
58
#ifdef __cplusplus
59
};
60
#endif
61
62
#endif
/* WSPS_API_H */
WspsSetWsmFlags
void WspsSetWsmFlags(uint8_t flags)
Set the weight scale measurement flags.
dmConnId_t
uint8_t dmConnId_t
Connection identifier.
Definition:
dm_api.h:501
WspsMeasComplete
void WspsMeasComplete(dmConnId_t connId, uint8_t wsmCccIdx)
Weight scale measurement complete.
wsf_timer.h
Timer service.
att_api.h
Attribute protocol client and server API.
uint8_t
unsigned char uint8_t
Unsigned 8-bit value.
Definition:
wsf_types.h:63
Copyright © 2017-2018 Arm Ltd. All rights reserved.
Arm Confidential
Cordio Stack and Cordio Profiles