Battery interface.h

From wizarPOS
Revision as of 03:23, 9 April 2018 by Mahong (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
  /*************************************************************************
   > File Name: battery_interface.h
   > Author:
   > Mail:
   > Created Time: Fri 15 Jan 2016 09:31:10 AM CST
   ************************************************************************/
  
  #ifndef _BATTERY_INTERFACE_H
  #define _BATTERY_INTERFACE_H
  #ifdef __cplusplus
  extern "C" {
  #endif
  
  typedef int (*battery_open)(void);
  
  typedef int (*battery_close)(void);
  
  typedef int (*battery_query_info)(int *capacity, int *voltage);
  
  #ifdef __cplusplus
  }
  #endif
  #endif