stc_rpncalc/src/calc.h

31 lines
461 B
C
Raw Normal View History

2019-04-01 01:20:28 +02:00
/*
* calc.h
*
* Created on: Mar 28, 2019
*/
#ifndef SRC_CALC_H_
#define SRC_CALC_H_
#include <stdint.h>
#include "decn/decn.h"
#ifdef __cplusplus
extern "C" {
#endif
2019-04-01 01:20:28 +02:00
void process_cmd(char cmd);
void push_decn(const char* signif_str, exp_t exponent, uint8_t no_lift);
2019-04-01 01:20:28 +02:00
void clear_x(void);
void set_x(const char* signif_str, exp_t exponent);
2019-04-01 01:20:28 +02:00
__xdata dec80* get_x(void);
__xdata dec80* get_y(void);
#ifdef __cplusplus
}
#endif
2019-04-01 01:20:28 +02:00
#endif /* SRC_CALC_H_ */