ndcs.h
Go to the documentation of this file.
1 
56 #ifndef __NDCS_H__
57 #define __NDCS_H__
58 
59 #include "gr55xx_sys.h"
60 #include "ble_prf_types.h"
61 #include "custom_config.h"
62 #include <stdint.h>
63 #include <stdbool.h>
64 
69 #define NDCS_CONNECTION_MAX (10 < CFG_MAX_CONNECTIONS ?\
70  10 : CFG_MAX_CONNECTIONS)
71 #define NDCS_TIME_WITH_DST_VAL_LEN 8
72 #define NDCS_CHAR_FULL 0x07
80 typedef enum
81 {
94 typedef struct
95 {
114 sdk_err_t ndcs_service_init(uint8_t char_mask);
115 
124 
135 #endif
136 
NDCS_DST_OFFSET_DOUB_DAYLIGHT_TIME
@ NDCS_DST_OFFSET_DOUB_DAYLIGHT_TIME
Definition: ndcs.h:85
ndcs_time_dst_t::dst_offset
ndcs_dst_offset_t dst_offset
Definition: ndcs.h:97
ndcs_dst_offset_update
void ndcs_dst_offset_update(ndcs_dst_offset_t dst_offset)
Update DST offset.
ndcs_service_init
sdk_err_t ndcs_service_init(uint8_t char_mask)
Initialize an NDCS instance and add in the DB.
ndcs_time_dst_t::date_time
prf_date_time_t date_time
Definition: ndcs.h:96
gr55xx_sys.h
GR55XX System API.
NDCS_DST_OFFSET_STANDAR_TIME
@ NDCS_DST_OFFSET_STANDAR_TIME
Definition: ndcs.h:82
ble_prf_types.h
Profile/Service Common Types.
sdk_err_t
uint16_t sdk_err_t
SDK API result type.
Definition: ble_error.h:243
prf_date_time_t
The date and time structure. The packed size is 7 bytes.
Definition: ble_prf_types.h:101
NDCS_DST_OFFSET_DAYLIGHT_TIME
@ NDCS_DST_OFFSET_DAYLIGHT_TIME
Definition: ndcs.h:84
ndcs_day_time_update
void ndcs_day_time_update(prf_date_time_t *p_day_time)
Update day time.
NDCS_DST_OFFSET_HALF_HOUR
@ NDCS_DST_OFFSET_HALF_HOUR
Definition: ndcs.h:83
ndcs_time_dst_t
Time with DST.
Definition: ndcs.h:95
ndcs_dst_offset_t
ndcs_dst_offset_t
Daylight Saving Time Offset.
Definition: ndcs.h:81