49 lines
1.6 KiB
C
49 lines
1.6 KiB
C
/****************************************************************************
|
|
* This file is part of the project AqHome.
|
|
* AqHome (c) by 2023 Martin Preuss, all rights reserved.
|
|
*
|
|
* The license for this file can be found in the file COPYING which you
|
|
* should have received along with this file.
|
|
****************************************************************************/
|
|
|
|
#ifndef AQH_MSG_IPC_DATA_MULTIDATA_H
|
|
#define AQH_MSG_IPC_DATA_MULTIDATA_H
|
|
|
|
|
|
#include <aqhome/api.h>
|
|
|
|
#include <aqhome/data/value.h>
|
|
|
|
#include <gwenhywfar/msg_ipc.h>
|
|
|
|
|
|
#define AQH_MSGDATA_MULTIDATA_TAGS_VALUE 0xc1
|
|
#define AQH_MSGDATA_MULTIDATA_TAGS_DATA 0xc2
|
|
|
|
|
|
|
|
AQHOME_API GWEN_MSG *AQH_MultiDataDataIpcMsg_new(uint16_t code,
|
|
uint32_t msgId, uint32_t refMsgId,
|
|
const AQH_VALUE *value, const uint64_t *i64Ptr, int numOfDataPoints);
|
|
AQHOME_API GWEN_MSG *AQH_MultiDataDataIpcMsg_newForOne(uint16_t code,
|
|
uint32_t msgId, uint32_t refMsgId,
|
|
const AQH_VALUE *value, uint64_t timeStamp, double dataPoint);
|
|
|
|
AQHOME_API void AQH_MultiDataDataIpcMsg_Parse(GWEN_MSG *msg, int doCopy);
|
|
AQHOME_API AQH_VALUE *AQH_MultiDataDataIpcMsg_ReadValue(const GWEN_MSG *msg);
|
|
AQHOME_API AQH_VALUE *AQH_ValuesDataIpcMsg_ReadFirstValue(const GWEN_MSG *msg);
|
|
AQHOME_API void AQH_ValuesDataIpcMsg_GetDatapoints(const GWEN_MSG *msg, const uint64_t **pDataPtr, uint64_t *pNumberOfPoints);
|
|
|
|
AQHOME_API void AQH_MultiDataDataIpcMsg_DumpToBuffer(const GWEN_MSG *msg, GWEN_BUFFER *dbuf, const char *sText);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|