2024-06-13 22:07:19 +02:00
|
|
|
#ifndef BCD_H_
|
|
|
|
#define BCD_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
uint8_t bcd_add(__idata uint8_t *v1, __idata uint8_t *v2,uint8_t len) __reentrant;
|
|
|
|
void bcd_9cpl(__idata uint8_t *v1, uint8_t len) __reentrant;
|
|
|
|
void bcd_shr(__idata uint8_t *v, uint8_t len, uint8_t d) __reentrant;
|
|
|
|
void bcd_invert(__idata uint8_t *v1, uint8_t len);
|
|
|
|
void bcd_addbyte(__idata uint8_t *v1, uint8_t len, uint8_t b) __reentrant;
|
|
|
|
uint8_t bcd_getsig(__idata uint8_t*v, uint8_t len);
|
|
|
|
|
2024-07-01 20:48:39 +02:00
|
|
|
void long_tobcd(__idata uint8_t *binval, __idata uint8_t *bcdval, uint8_t binlen, uint8_t bcdlen) __reentrant;
|
|
|
|
|
2024-06-13 22:07:19 +02:00
|
|
|
#endif
|
|
|
|
|