summaryrefslogtreecommitdiffstats
path: root/src/canutil/write.h
blob: 1b086dbe7b9df650717160226550614b700beeb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef __WRITE_H__
#define __WRITE_H__

#include <stdint.h>
#include <stdbool.h>

#ifdef __cplusplus
extern "C" {
#endif

uint64_t encodeFloat(float value, uint8_t bitPosition, uint8_t bitSize,
                float factor, float offset);

uint64_t encodeBoolean(bool value, uint8_t bitPosition, uint8_t bitSize,
                float factor, float offset);

#ifdef __cplusplus
}
#endif

#endif // __WRITE_H__