summaryrefslogtreecommitdiffstats
path: root/src/canutil/write.h
blob: 3d13b1df4eabf3b6cf7809d6a95b94e6124d645a (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 bitfield_encode_float(float value, uint8_t bit_offset, uint8_t bit_size,
                float factor, float offset);

uint64_t bitfield_encode_bool(bool value, uint8_t bit_offset, uint8_t bit_size,
                float factor, float offset);

#ifdef __cplusplus
}
#endif

#endif // __WRITE_H__