libwsx libwsx
WSwan extra library for the Wonderful toolchain
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
36uint8_t wsx_bcd8_to_int(uint8_t value);
37
44uint16_t wsx_bcd16_to_int(uint16_t value);
45
52uint8_t wsx_int_to_bcd8(uint8_t value);
53
54#endif /* LIBWSX_BCD_H_ */
uint8_t wsx_bcd8_to_int(uint8_t value)
Transform an 8-bit packed BCD number to an integer.
uint16_t wsx_bcd16_to_int(uint16_t value)
Transform a 16-bit packed BCD number to an integer.
uint8_t wsx_int_to_bcd8(uint8_t value)
Transform an 8-bit integer to a packed BCD number.