From bff03e36c4ef0fe7f49403bbbcb49d48493293b7 Mon Sep 17 00:00:00 2001 From: Alexander Wenzel Date: Mon, 9 Dec 2013 13:52:31 +0100 Subject: Added new control message timezone. Signed-off-by: Alexander Wenzel --- include/dlt/dlt_common.h | 11 +++++++++++ include/dlt/dlt_protocol.h | 1 + 2 files changed, 12 insertions(+) (limited to 'include/dlt') diff --git a/include/dlt/dlt_common.h b/include/dlt/dlt_common.h index 0740c9e..22710c7 100755 --- a/include/dlt/dlt_common.h +++ b/include/dlt/dlt_common.h @@ -519,6 +519,17 @@ typedef struct char comid[DLT_ID_SIZE]; /**< communication interface */ } PACKED DltServiceConnectionInfo; +/** + * The structure of the DLT Service Timezone + */ +typedef struct +{ + uint32_t service_id; /**< service ID */ + uint8_t status; /**< reponse status */ + int32_t timezone; /**< Timezone in seconds */ + uint8_t isdst; /**< Is daylight saving time */ +} PACKED DltServiceTimezone; + /** * Structure to store filter parameters. * ID are maximal four characters. Unused values are filled with zeros. diff --git a/include/dlt/dlt_protocol.h b/include/dlt/dlt_protocol.h index 7e941fe..09e4adc 100755 --- a/include/dlt/dlt_protocol.h +++ b/include/dlt/dlt_protocol.h @@ -189,6 +189,7 @@ #define DLT_SERVICE_ID_MESSAGE_BUFFER_OVERFLOW 0x14 /**< Service ID: Message buffer overflow */ #define DLT_SERVICE_ID_UNREGISTER_CONTEXT 0xf01 /**< Service ID: Message unregister context */ #define DLT_SERVICE_ID_CONNECTION_INFO 0xf02 /**< Service ID: Message connection info */ +#define DLT_SERVICE_ID_TIMEZONE 0xf03 /**< Service ID: Timezone */ #define DLT_SERVICE_ID_CALLSW_CINJECTION 0xFFF /**< Service ID: Message Injection (minimal ID) */ /* -- cgit v1.2.1