Code Review
/
apps
/
agl-service-can-low-level.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Standardize on snake_case naming as this is a C library.
[apps/agl-service-can-low-level.git]
/
src
/
canutil
/
write.h
1
#ifndef __WRITE_H__
2
#define __WRITE_H__
3
4
#include <stdint.h>
5
#include <stdbool.h>
6
7
#ifdef __cplusplus
8
extern "C" {
9
#endif
10
11
uint64_t bitfield_encode_float(float value, uint8_t bit_offset, uint8_t bit_size,
12
float factor, float offset);
13
14
uint64_t bitfield_encode_bool(bool value, uint8_t bit_offset, uint8_t bit_size,
15
float factor, float offset);
16
17
#ifdef __cplusplus
18
}
19
#endif
20
21
#endif // __WRITE_H__