Modules | Macros
Defines
BLE Services » Current Time Service (CTS)

## Modules
| Characteristics Mask
| Bit masks for the initialization of cts_init_t::char_mask.
| Current Time Adjust Reason
| Current Time Service Adjust Reason.

## Macros
#define | CTS_CONNECTION_MAX
#define | CTS_CUR_TIME_VAL_LEN 10
#define | CTS_LOC_TIME_INFO_VAL_LEN 2
#define | CTS_REF_TIME_INFO_VAL_LEN 4
#define | CTS_TIME_YEAR_VALID_VAL_MIN 1582
#define | CTS_TIME_YEAR_VALID_VAL_MAX 9999
#define | CTS_TIME_ZONE_OFFSET_MIN -48
#define | CTS_TIME_ZONE_OFFSET_MAX 56
#define | CTS_TIME_ACCURACY_OUT_RANGE 254
#define | CTS_TIME_ACCURACT_UNKNOWN 255
#define | CTS_ERROR_FIELDS_IGNORED 0x80

## Detailed Description

## Macro Definition Documentation

## ◆ CTS_CONNECTION_MAX

#define CTS_CONNECTION_MAX

Value:
(10 < CFG_MAX_CONNECTIONS ?\
10 : CFG_MAX_CONNECTIONS)

Maximum number of CTS connections.

## ◆ CTS_CUR_TIME_VAL_LEN

#define CTS_CUR_TIME_VAL_LEN 10

Length of current time value.

## ◆ CTS_ERROR_FIELDS_IGNORED

#define CTS_ERROR_FIELDS_IGNORED 0x80

The server ignored one or more fields.

## ◆ CTS_LOC_TIME_INFO_VAL_LEN

#define CTS_LOC_TIME_INFO_VAL_LEN 2

Length of local time information value.

## ◆ CTS_REF_TIME_INFO_VAL_LEN

#define CTS_REF_TIME_INFO_VAL_LEN 4

Length of reference time information value.

## ◆ CTS_TIME_ACCURACT_UNKNOWN

#define CTS_TIME_ACCURACT_UNKNOWN 255

Accuracy Unknown.

## ◆ CTS_TIME_ACCURACY_OUT_RANGE

#define CTS_TIME_ACCURACY_OUT_RANGE 254

Accuracy out of range.

## ◆ CTS_TIME_YEAR_VALID_VAL_MAX

#define CTS_TIME_YEAR_VALID_VAL_MAX 9999

Maximum value of valid year.

## ◆ CTS_TIME_YEAR_VALID_VAL_MIN

#define CTS_TIME_YEAR_VALID_VAL_MIN 1582

Minimum value of valid year.

## ◆ CTS_TIME_ZONE_OFFSET_MAX

#define CTS_TIME_ZONE_OFFSET_MAX 56

Maximum Value of Offset from UTC.

## ◆ CTS_TIME_ZONE_OFFSET_MIN

#define CTS_TIME_ZONE_OFFSET_MIN -48

Minimum Value of Offset from UTC.