SmartSnippets DA1459x SDK
Data Structures | Macros | Enumerations | Functions

Current Time Service implementation API. More...

#include <stdint.h>
#include <ble_service.h>
#include <svc_types.h>

Go to the source code of this file.

Data Structures

struct  cts_current_time_t
 
struct  cts_local_time_info_t
 
struct  cts_ref_time_info_t
 
struct  cts_callbacks_t
 

Macros

#define CTS_ADJUST_REASON_VALID_VALUES_MASK
 

Enumerations

enum  cts_error
 
enum  cts_adjust_reason_t
 
enum  cts_dst_t
 
enum  cts_ref_time_source_t
 

Functions

ble_service_tcts_init (const cts_local_time_info_t *info, const cts_callbacks_t *cb)
 
void cts_notify_time (ble_service_t *svc, uint16_t conn_idx, const cts_current_time_t *time)
 
void cts_notify_time_all (ble_service_t *svc, const cts_current_time_t *time)
 
void cts_set_local_time_info (ble_service_t *svc, const cts_local_time_info_t *info)
 
void cts_get_time_cfm (ble_service_t *svc, uint16_t conn_idx, att_error_t status, const cts_current_time_t *time)
 
void cts_set_time_cfm (ble_service_t *svc, uint16_t conn_idx, att_error_t status)
 
void cts_set_local_time_info_cfm (ble_service_t *svc, uint16_t conn_idx, att_error_t status)
 
void cts_get_ref_time_info_cfm (ble_service_t *svc, uint16_t conn_idx, att_error_t status, const cts_ref_time_info_t *info)
 
__STATIC_INLINE int8_t cts_get_time_zone (int8_t h, uint8_t m)
 
__STATIC_INLINE bool cts_get_time_zone_offset (int8_t tz, int8_t *h, int8_t *m)
 
__STATIC_INLINE bool cts_is_current_time_valid (const cts_current_time_t *time)
 
__STATIC_INLINE bool cts_is_local_time_info_valid (const cts_local_time_info_t *info)
 

Detailed Description

Current Time Service implementation API.

Copyright (C) 2015-2018 Renesas Electronics Corporation and/or its affiliates. All rights reserved. Confidential Information.

This software ("Software") is supplied by Renesas Electronics Corporation and/or its affiliates ("Renesas"). Renesas grants you a personal, non-exclusive, non-transferable, revocable, non-sub-licensable right and license to use the Software, solely if used in or together with Renesas products. You may make copies of this Software, provided this copyright notice and disclaimer ("Notice") is included in all such copies. Renesas reserves the right to change or discontinue the Software at any time without notice.

THE SOFTWARE IS PROVIDED "AS IS". RENESAS DISCLAIMS ALL WARRANTIES OF ANY KIND, WHETHER EXPRESS, IMPLIED, OR STATUTORY, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. TO THE MAXIMUM EXTENT PERMITTED UNDER LAW, IN NO EVENT SHALL RENESAS BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE, EVEN IF RENESAS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. USE OF THIS SOFTWARE MAY BE SUBJECT TO TERMS AND CONDITIONS CONTAINED IN AN ADDITIONAL AGREEMENT BETWEEN YOU AND RENESAS. IN CASE OF CONFLICT BETWEEN THE TERMS OF THIS NOTICE AND ANY SUCH ADDITIONAL LICENSE AGREEMENT, THE TERMS OF THE AGREEMENT SHALL TAKE PRECEDENCE. BY CONTINUING TO USE THIS SOFTWARE, YOU AGREE TO THE TERMS OF THIS NOTICE.IF YOU DO NOT AGREE TO THESE TERMS, YOU ARE NOT PERMITTED TO USE THIS SOFTWARE.