![]() |
Cordio Stack and Cordio Profiles
r2p3-02rel0
|
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 | |
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... | |
#define | TEMP_HANDLE_START 0x60 |
Start handle. | |
#define | TEMP_HANDLE_END (TEMP_HANDLE_END_PLUS_ONE - 1) |
End handle. | |
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. | |
anonymous enum |
Temperature service handles.
Definition at line 46 of file svc_temp.h.
void SvcTempAddGroup | ( | void | ) |
Add the services to the attribute server.
void SvcTempRemoveGroup | ( | void | ) |
Remove the services from the attribute server.
void SvcTempCbackRegister | ( | attsWriteCback_t | writeCback | ) |
Register callbacks for the service.
writeCback | Write callback function. |