Battery interface.h: Difference between revisions

From wizarPOS
(Created page with " /************************************************************************* > File Name: battery_interface.h > Author: > Mail: > Created Time: Fri 15 Jan 2016 09:...")
 
No edit summary
 
Line 1: Line 1:
  <syntaxhighlight lang="c">
   /*************************************************************************
   /*************************************************************************
   > File Name: battery_interface.h
   > File Name: battery_interface.h
Line 22: Line 23:
   #endif
   #endif
   #endif
   #endif
  </syntaxhighlight >

Latest revision as of 03:23, 9 April 2018

  /*************************************************************************
   > 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