Files
vrpmdv-yocto-recipes/recipes-vrpmdv/recipes-base/vrpmdv-rtservice/files/include/IChannelDesc.h
Markus Lehr 68a4f6bcbe get data from Kernel driver
1st version of the json file with the header
2024-06-24 20:34:18 +02:00

46 lines
679 B
C++

/*
* Copyright (c) 2024 Markus Lehr.
*
*
* SPDX-License-Identifier: Owend property of Markus Lehr
*
*/
#ifndef RTS_INCLUDE_ICHANNELDESC_H_
#define RTS_INCLUDE_ICHANNELDESC_H_
#include <string>
#include <list>
enum VALUEFORMAT {
UINT32 = 0,
INT32,
FLOAT,
DOUBLE,
};
class IChannelDesc
{
virtual u_int32_t GetId() = 0;
virtual const std::string& GetName() = 0;
virtual VALUEFORMAT GetValueFormat() = 0;
/**
* return the length of the data that is neeeded for one value of the channel in UINT32
*
*/
virtual u_int32_t GetValueByteSpace() = 0;
};
#endif /* RTS_INCLUDE_ICHANNELDESC_H_ */