diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-05-26 19:17:33 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-05-26 19:17:33 +0200 |
commit | 266fd5ef0c45315fc0bf281a15630a9b4765e68c (patch) | |
tree | a34a86d72e25e3c858577feaff7f61c81b026c61 /shared/bin.h | |
parent | e75c48a4d79a838844aab071c81b2879aab2b5ee (diff) |
implement SENS command0.2.0
Diffstat (limited to 'shared/bin.h')
-rw-r--r-- | shared/bin.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/shared/bin.h b/shared/bin.h index 2b65c95..af3a249 100644 --- a/shared/bin.h +++ b/shared/bin.h @@ -32,3 +32,12 @@ uint16_t w2_bin_hton16(uint16_t h16); uint32_t w2_bin_ntoh32(uint32_t n32); /** convert 16-bit value from network (big-endian) to host endian */ uint16_t w2_bin_ntoh16(uint16_t n16); + +/** replace 32-bit value from host endian to network (big-endian) */ +void w2_bin_repl_hton32(uint32_t *h32); +/** replace 16-bit value from host endian to network (big-endian) */ +void w2_bin_repl_hton16(uint16_t *h16); +/** replace 32-bit value from network (big-endian) to host endian */ +void w2_bin_repl_ntoh32(uint32_t *n32); +/** replace 16-bit value from network (big-endian) to host endian */ +void w2_bin_repl_ntoh16(uint16_t *n16); |