58 lines
1.4 KiB
C
58 lines
1.4 KiB
C
|
|
||
|
|
||
|
/******************************************************************************
|
||
|
|
||
|
*(C) Copyright 2018 EIGENCOMM International Ltd.
|
||
|
|
||
|
* All Rights Reserved
|
||
|
|
||
|
******************************************************************************
|
||
|
* Filename: charge.h
|
||
|
*
|
||
|
* Description: header of charge.c. api for charge status detect
|
||
|
*
|
||
|
* History: 2021.05.07 initiated by Zhao Weiqi
|
||
|
*
|
||
|
* Notes:
|
||
|
*
|
||
|
******************************************************************************/
|
||
|
|
||
|
#ifndef CHARGE_H
|
||
|
#define CHARGE_H
|
||
|
|
||
|
/*----------------------------------------------------------------------------*
|
||
|
* INCLUDES *
|
||
|
*----------------------------------------------------------------------------*/
|
||
|
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
|
||
|
/*----------------------------------------------------------------------------*
|
||
|
* MACROS *
|
||
|
*----------------------------------------------------------------------------*/
|
||
|
|
||
|
|
||
|
|
||
|
/*----------------------------------------------------------------------------*
|
||
|
* DATA TYPE DEFINITION *
|
||
|
*----------------------------------------------------------------------------*/
|
||
|
typedef enum
|
||
|
{
|
||
|
CHARGE_STATUS_DISCONNECT = 0,
|
||
|
CHARGE_STATUS_CHARGING = 1,
|
||
|
CHARGE_STATUS_FINISH = 2,
|
||
|
}chargeStatus_e;
|
||
|
|
||
|
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif
|
||
|
|
||
|
|