forked from haraldwolff/avr-fw-modules
42 lines
697 B
C
42 lines
697 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
struct fp_00_08;
|
|
struct fp_08_08;
|
|
struct fp_24_08;
|
|
|
|
struct fp_00_08 {
|
|
uint16_t value;
|
|
|
|
#if defined(__cplusplus)
|
|
fp_00_08& operator =(long v);
|
|
fp_00_08& operator =(fp_08_08& src);
|
|
fp_00_08& operator =(fp_24_08& src);
|
|
#endif
|
|
};
|
|
|
|
struct fp_08_08 {
|
|
uint32_t value;
|
|
|
|
#if defined(__cplusplus)
|
|
fp_08_08& operator =(long v);
|
|
fp_08_08& operator =(fp_00_08& src);
|
|
fp_08_08& operator =(fp_24_08& src);
|
|
#endif
|
|
};
|
|
|
|
struct fp_24_08 {
|
|
uint64_t value;
|
|
|
|
#if defined(__cplusplus)
|
|
fp_24_08& operator =(fp_00_08& src);
|
|
fp_24_08& operator =(fp_08_08& src);
|
|
#endif
|
|
};
|
|
|
|
typedef struct fp_00_08 fp0008_t;
|
|
typedef struct fp_08_08 fp0808_t;
|
|
typedef struct fp_24_08 fp2408_t;
|
|
|