MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/driver/chipset/PackagerAD7685.hh
2024-06-07 11:12:56 +03:00

32 lines
967 B
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* PackagerAD7685.h
*
* Created on: 2 авг. 2019 г.
* Author: LeonidTitov
*/
#ifndef SOURCE_DRIVER_CHIPSET_PACKAGERAD7685_H_
#define SOURCE_DRIVER_CHIPSET_PACKAGERAD7685_H_
#include <cstddef>
#include <stdint.h>
namespace driver { namespace chipset {
struct PackagerAD7685 {
typedef uint16_t Data; //!<Тип данных используемых пользователем для хранения полезной информации.
typedef uint16_t Frame; //!<Тип данных отправляемый и получаемый по линии связи.
static const std::size_t FrameSize; //!<Фиксированная длина кадра данных передаваемая по линии связи для расширителя портов.
struct Packager {
Frame pack( Data ) const;
Data unpack( Frame ) const;
};
};
}}
#endif /* SOURCE_DRIVER_CHIPSET_PACKAGERAD7685_H_ */