Cordio Stack and Cordio Profiles  r2p3-02rel0
svc_temp.h File Reference

Example temperature sensor service implementation. More...

Go to the source code of this file.

Macros

Configuration Attributes
#define TEMP_ATT_CONFIG_DISABLE   0x00u
 Disable.
 
#define TEMP_ATT_CONFIG_ENABLE   0x01u
 Enable.
 
Values for Period Attributes
#define TEMP_ATT_PERIOD_MAX   250u
 Maximum period.
 
#define TEMP_ATT_PERIOD_DEFAULT   100u
 Default period.
 
#define TEMP_ATT_PERIOD_MIN   10u
 Minimum period.
 
Sizes of Attributes
#define TEMP_SIZE_CONFIG_ATT   1u
 Config Attribute size.
 
#define TEMP_SIZE_PERIOD_ATT   1u
 Period Attribute size.
 
#define TEMP_SIZE_DATA_ATT   6u
 Data Attribute size.
 

Functions

void SvcTempAddGroup (void)
 Add the services to the attribute server. More...
 
void SvcTempRemoveGroup (void)
 Remove the services from the attribute server. More...
 
void SvcTempCbackRegister (attsWriteCback_t writeCback)
 Register callbacks for the service. More...
 

Temperature Service Handles

#define TEMP_HANDLE_START   0x60
 Start handle.
 
#define TEMP_HANDLE_END   (TEMP_HANDLE_END_PLUS_ONE - 1)
 End handle.
 
enum  {
  TEMP_HANDLE_SVC = TEMP_HANDLE_START,
  TEMP_HANDLE_DATA_CHR,
  TEMP_HANDLE_DATA,
  TEMP_HANDLE_DATA_CLIENT_CHR_CONFIG,
  TEMP_HANDLE_DATA_CHR_USR_DESCR,
  TEMP_HANDLE_CONFIG_CHR,
  TEMP_HANDLE_CONFIG,
  TEMP_HANDLE_CONFIG_CHR_USR_DESCR,
  TEMP_HANDLE_PERIOD_CHR,
  TEMP_HANDLE_PERIOD,
  TEMP_HANDLE_PERIOD_CHR_USR_DESCR,
  TEMP_HANDLE_END_PLUS_ONE
}
 Temperature service handles. More...
 

Description

Example temperature sensor service implementation.

Copyright (c) 2015-2018 Arm Ltd. All Rights Reserved. Arm Ltd. confidential and proprietary.

IMPORTANT. Your use of this file is governed by a Software License Agreement ("Agreement") that must be accepted in order to download or otherwise receive a copy of this file. You may not use or copy this file for any purpose other than as described in the Agreement. If you do not agree to all of the terms of the Agreement do not use this file and delete all copies in your possession or control; if you do not have a copy of the Agreement, you must contact Arm Ltd. prior to any use, copying or further distribution of this software.

Definition in file svc_temp.h.