summaryrefslogtreecommitdiffstats
path: root/src/canutil/write.h
blob: 85a5c1a05ca8b11df24d02389f31d952f958c08d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef __WRITE_H__
#define __WRITE_H__

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

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

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

#endif // __WRITE_H__