libwsx
libwsx
WSwan extra library for the Wonderful toolchain
Toggle main menu visibility
Loading...
Searching...
No Matches
bcd.h
Go to the documentation of this file.
1
20
21
#ifndef LIBWSX_BCD_H_
22
#define LIBWSX_BCD_H_
23
24
#include <stdint.h>
25
29
36
uint8_t
wsx_bcd8_to_int
(uint8_t value) __attribute__((
const
));
37
44
uint16_t
wsx_bcd16_to_int
(uint16_t value) __attribute__((
const
));
45
52
uint8_t
wsx_int_to_bcd8
(uint8_t value) __attribute__((
const
));
53
54
#endif
/* LIBWSX_BCD_H_ */
wsx_bcd8_to_int
uint8_t wsx_bcd8_to_int(uint8_t value)
Transform an 8-bit packed BCD number to an integer.
wsx_bcd16_to_int
uint16_t wsx_bcd16_to_int(uint16_t value)
Transform a 16-bit packed BCD number to an integer.
wsx_int_to_bcd8
uint8_t wsx_int_to_bcd8(uint8_t value)
Transform an 8-bit integer to a packed BCD number.
include
wsx
bcd.h
Generated by
1.18.0