mcu_hi3321_watch/tjd/driver/charger/charger_api.h
2025-05-26 20:15:20 +08:00

29 lines
453 B
C

#ifndef CHARGER_API_H
#define CHARGER_API_H
#include <stdint.h>
#ifdef __cplusplus
#if __cplusplus
extern "C"
{
#endif
#endif
struct charger_class_ops
{
uint32_t (*open)(void);
uint32_t (*close)(void);
uint32_t (*sample_event)(uint32_t *battery);
float (*sample_status_event)(void);
};
struct charger_class_ops *tjd_driver_charger_get_ops(void);
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif
#endif