Moneybox interface.h: Difference between revisions
(Created page with " #ifndef MONEY_SERVICE_INTERFACE_H_ #define MONEY_SERVICE_INTERFACE_H_ #ifdef __cplusplus extern "C" { #endif /** * open the money box device * @retur...") |
No edit summary |
||
Line 1: | Line 1: | ||
<syntaxhighlight lang="c"> | |||
#ifndef MONEY_SERVICE_INTERFACE_H_ | #ifndef MONEY_SERVICE_INTERFACE_H_ | ||
#define MONEY_SERVICE_INTERFACE_H_ | #define MONEY_SERVICE_INTERFACE_H_ | ||
Line 43: | Line 44: | ||
#endif /* MONEY_SERVICE_INTERFACE_H_ */ | #endif /* MONEY_SERVICE_INTERFACE_H_ */ | ||
</syntaxhighlight > |
Latest revision as of 03:23, 9 April 2018
#ifndef MONEY_SERVICE_INTERFACE_H_
#define MONEY_SERVICE_INTERFACE_H_
#ifdef __cplusplus
extern "C"
{
#endif
/**
* open the money box device
* @return value : < 0 : error code
* >= 0 : success;
*/
typedef int (*moneybox_open)();
/*
* close the money box device
* @return value : < 0 : error code
* >= 0 : success;
*/
typedef int (*moneybox_close)();
/*
* open money box
* @return value : < 0 : error code;
* >= 0 : success
*/
typedef int (*moneybox_ctrl)();
/*
* enable or disable hardware
* @param[in] : unsigned typedef int (* nEable : 1 : enable, 0 : disable
* return value : >= 0 : success
* < 0 : error code
*/
typedef int (*moneybox_setEnable)(unsigned int nEnable);
#ifdef __cplusplus
}
#endif
#endif /* MONEY_SERVICE_INTERFACE_H_ */