30 lines
542 B
C
30 lines
542 B
C
#ifndef SERVICE_CHARGER_H
|
|
#define SERVICE_CHARGER_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
#if __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
#endif
|
|
|
|
typedef enum
|
|
{
|
|
CHARGER_STATUS_NOT_CHARGING = 0, // 未充电
|
|
CHARGER_STATUS_CHARGING, // 充电中
|
|
} charger_status_t;
|
|
|
|
uint32_t tjd_service_charger_open(void);
|
|
void tjd_service_charger_close(void);
|
|
uint8_t tjd_service_charger_get_battery(void);
|
|
charger_status_t tjd_service_charger_get_charger_status(void);
|
|
|
|
#ifdef __cplusplus
|
|
#if __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
#endif |